Commit Graph

784 Commits

Author SHA1 Message Date
Martin Stransky
a344deacb1 Bug 1287085 - Move GtkInfoBar from gtk3drawing to WidgetCache. r=acomminos 2016-07-19 00:03:00 -04:00
Carsten "Tomcat" Book
8428cd56e3 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
Martin Stransky
23f7a86584 Bug 1287080 - Move Toolbar, Frame and Gripper widgets from gtk3drawing to WidgetCache, r=acomminos 2016-07-18 05:29:00 +02:00
Martin Stransky
70d7e929fe Bug 1287082 - Move GtkExpander widget from gtk3drawing.cpp to WidgetCache, r=acomminos 2016-07-18 04:27:00 +02:00
Andrew Comminos
f2862f5a48 Bug 1287463 - Use a separate X display for non-XRender basic composition paths. r=lsalzman
MozReview-Commit-ID: HQn0nTirgBL

--HG--
extra : rebase_source : 17f6d1137ab2d833e3dd178ecf20b168a261c0bf
2016-07-18 11:49:51 -04:00
Makoto Kato
e2412501ba Bug 1286753 - Candidate window should be located under composing string. r=masayuki
TargetClauseOffset is the offset from start composition offset.  So we should add start composition to calaculate correct rects.

MozReview-Commit-ID: 4qCpKvw2Eb4

--HG--
extra : rebase_source : 1c11d5648987772ee684166ee715340ad90284c0
2016-07-14 15:43:47 +09:00
Andrew Comminos
d9fce16879 Bug 1285561 - Refactor surface blitting on X11. r=jrmuizel
MozReview-Commit-ID: LHbVK8SYGSJ
2016-07-14 10:11:46 -04:00
Andrew Comminos
4ecad4a8e4 Bug 1195359 - Use a new display on the compositor thread when using GLX and the GL compositor. r=lsalzman
MozReview-Commit-ID: G4Yd0p9R1fh
2016-07-12 14:05:17 -04:00
Martin Stransky
3b4124d82a Bug 1215104 - Disable start-up notifications for non-X11 backends, r=karlt
--HG--
extra : rebase_source : 38f6c4853f75c30ea8854ac6cd757b70f23ea8f4
2016-07-11 13:41:00 +02:00
Martin Stransky
97a6dfcff5 Bug 1261576 - render scrollbar thumb as "hovered" to emulate active Gtk thumb style. r=karlt
--HG--
extra : rebase_source : da38d660d48aceaa600ae8bf924c7faa186d9d39
2016-07-11 12:29:00 +02:00
Masayuki Nakano
5173692ed9 Bug 1284422 part.8 Fix odd indent of MOZ_LOG() in nsGtkKeyUtils.cpp (mainly caused by replacing from PR_LOG()) r=m_kato
MozReview-Commit-ID: KOOeJeKiBAF

--HG--
extra : rebase_source : 5ef84002c094438f3ef9d380ddff520d9ff15d98
2016-07-05 18:50:02 +09:00
Masayuki Nakano
84473f8e3e Bug 1284422 part.7 Replace "KeymapWrapper(%p): " with "0x%p " and "%p" with "0x%p" in nsGtkKeyUtils.cpp r=m_kato
MozReview-Commit-ID: 8HcQ4Aj0eqI

--HG--
extra : rebase_source : b88de464c784e4a5c327716c443b1d4c8b32e901
2016-07-06 18:52:23 +09:00
Masayuki Nakano
119993dfbb Bug 1284422 part.6 Reduce indent of MOZ_LOG() in IMContextWrapper.cpp r=m_kato
MozReview-Commit-ID: 4jHFhQiUoHv

--HG--
extra : rebase_source : 2fc68708d048c1e2a0dc9d0a3a05b62ec420b338
2016-07-05 18:44:18 +09:00
Masayuki Nakano
8900028692 Bug 1284422 part.5 Remove "GTKIM: " from log of IMContextWrapper.cpp r=m_kato
MozReview-Commit-ID: 1rn6Azf0gLi

--HG--
extra : rebase_source : b9f4f4013f19565d23e711f4d365b23cdffbca10
2016-07-05 18:41:48 +09:00
Bill McCloskey
b8ababd5ee Bug 1282153 - Remove retaining outparam to GetLayerManager (r=dvander) 2016-06-30 14:30:30 -07:00
Carsten "Tomcat" Book
13ce7275a3 Merge mozilla-central to autoland 2016-06-29 16:22:44 +02:00
Carsten "Tomcat" Book
5c90a99952 merge mozilla-inbound to mozilla-central a=merge 2016-06-29 16:13:05 +02:00
Masayuki Nakano
d9d66b8cff Bug 1282043 IMContextWrapper shouldn't append 0 length clause to TextRangeArray and if IME doesn't specify clause at beginning of the composition, it should insert dummy clause r=m_kato
Here is the patched build's log:

[Main Thread]: I/nsGtkIMModuleWidgets GTKIM: 7fab5a60a2c0 CreateTextRangeArray(aContext=7fab5a7bbbf0, aCompositionString="÷" (Length()=1))
[Main Thread]: W/nsGtkIMModuleWidgets GTKIM: 7fab5a60a2c0   SetTextRange(), FAILED, due to no attr, aTextRange= { mStartOffset=0, mEndOffset=1 }
[Main Thread]: W/nsGtkIMModuleWidgets GTKIM: 7fab5a60a2c0   SetTextRange(), FAILED, due to current clause length is 0
[Main Thread]: E/nsGtkIMModuleWidgets GTKIM: 7fab5a60a2c0   SetTextRange(), FAILED, due to g_utf8_to_utf16() failure (retrieving current clause)
[Main Thread]: W/nsGtkIMModuleWidgets GTKIM: 7fab5a60a2c0   CreateTextRangeArray(), inserting a dummy clause at the beginning of the composition string mStartOffset=0, mEndOffset=1, mRangeType=TextRangeType::eRawClause

iBus Chewing IME has two clauses when user presses Shift+p, one doesn't have pango_attr, the other is empty.  These clauses are not useful in Gecko. Additionally, TextRangeArray assumes that there is a clause at beginning of the composition when there is one or more clauses.  Therefore, this patch tries to insert dummy clause at the beggining of composition in such case.

MozReview-Commit-ID: 3hVGVmvFrhA

--HG--
extra : rebase_source : edbd3a6a1139cffb0d5bfbe0c92bf6870c9a2608
2016-06-28 19:37:03 +09:00
Masayuki Nakano
ef2fb8753d Bug 1282669 Get rid of nsIMEUpdatePreference::DontNotifyChangesCausedByComposition() r=m_kato
I think that we can drop nsIMEUpdatePreference::DontNotifyChangesCausedByComposition(), i.e., nsIMEUpdatePreference::NOTIFY_CHANGES_CAUSED_BY_COMPOSITION because it's now used only by TSFTextStore but TSFTextStore ignores if SelectionChangeDataBase::mCausedByComposition or TextChangeDataBase::mCausedOnlyByComposition is true (for supporting async changes in e10s mode).  So, only issue is, dropping the flag might cause increasing computing TextChangeData cost during composition in TSF mode.  However, now, it's already enough fast and even if it'd cause performance regression, we could add a hack with TextComposition's offset information.  Therefore, we don't need to worry about the performance regression so seriously.

MozReview-Commit-ID: HNT3G4isONj

--HG--
extra : rebase_source : 164231023aa2a17ceab94d92fb49ba0a00dab429
2016-06-28 16:51:59 +09:00
Masayuki Nakano
e1d8dafcd9 Bug 1282668 Get rid of nsIMEUpdatePreference::NOTIFY_SELECTION_CHANGE r=m_kato
Currently, all widgets request selection change notifications to IMEContentObserver.  Additionally, IMEContentObserver needs to listen selection changes for caching latest selection for eQuerySelectedText.  Therefore, it doesn't make sense to keep defining nsIMEUpdatePreference::NOTIFY_SELECTION_CHANGE.

If widgets didn't need selection change notifications, they could just ignore the unnecessary notifications.

Note that all widgets don't need selection change notifications if a plugin has focus and IMEContentObserver cannot observe selection changes in the plugin.  Therefore, if IMEContentObserver is initialized with a plugin, it shouldn't listen selection changes (and doesn't need to notify widgets of selection changes).

MozReview-Commit-ID: FOVFFgA2nOz

--HG--
extra : rebase_source : 3e16d5023835f99f82934e754d2e7db70474f9ee
2016-06-28 15:23:12 +09:00
Makoto Kato
b01777a050 Bug 1280796 - Selection cache should be updated on commit string. r=masayuki
Selection cache might be updated on commit string, so it should be updated correctly.  Also, IMContextWrapper::OnSelectionChange() already has the check for composing using IsComposing().

MozReview-Commit-ID: 2n3f3I3aAjg

--HG--
extra : rebase_source : 5bd43d723a3170864dd7ac05c9101aaedd7dfac6
2016-06-28 10:28:42 +09:00
Andrew Comminos
1956523e8c Bug 1225044 - Workaround GTK windows freezing on unmap. r=karlt
MozReview-Commit-ID: AMLk2Pe05JY

--HG--
extra : rebase_source : 2fbf2d41a7fac2c696e9b85571638eefeb49e0ea
2016-06-24 14:51:28 -04:00
Makoto Kato
a4ac8392bb Bug 1282338 - Fix log output of IMContextWrapper::OnDeleteSurroundingNative. r=masayuki
IMContextWrapper::OnDeleteSurroundingNative should output aOutput and aNChar correctly.

MozReview-Commit-ID: 46UrnGajnTG

--HG--
extra : rebase_source : 7ed7d3f389d492117e835c071bbea00f7ce4ff8d
2016-06-27 10:40:02 +09:00
Martin Stransky
c6f6b7735f Bug 1215104 - Update nsWindow for non-X11 backend. r=karlt 2016-06-22 02:10:00 -04:00
Masayuki Nakano
dead605781 Bug 1281391 IMContextWrapper and nsGtkKeyUtils should use LazyLogModule instead of PR_NewLogModule() for making MOZ_LOG* aware r=m_kato
MozReview-Commit-ID: 5xqIfFmakvq

--HG--
extra : rebase_source : 825b0b667d5200ba8d8c07ddbb3ea98f499ebd79
2016-06-22 16:31:37 +09:00
Carsten "Tomcat" Book
c2b7d7ae22 Merge mozilla-central to mozilla-inbound 2016-06-22 13:46:46 +02:00
Carsten "Tomcat" Book
3c9bce3256 merge mozilla-inbound to mozilla-central a=merge 2016-06-22 13:44:52 +02:00
Oliver Henshaw
e76445cfb6 Bug 694570 - (3/4) - Stop using libgnome and libgnomeui on Linux. r=acomminos
(Based on original patch by Chris Coulson.)

Replace session management through libgnome with direct use of libSM and
libICE. This allows xsmp session restore on gtk2 and gtk3 builds.

Changes in behaviour:
- It now only sends the "session-save" notification when the save style
is SmSaveLocal or SmSaveBoth. Saving internal state with a save style of
SmSaveGlobal is actually incorrect. This means that Firefox now
distinguishes between a normal session exit and a session exit with
session saving enabled.
- As "quit-application-requested" might pop up a dialog, it only does
  this if the interact style is not SmInteractStyleNone
- "quit-application-requested" is only sent after sending
  SmcInteractRequest and receiving an interact message.
- It defers closing the connection to the session manager until
  the destructor, i.e after the "web-workers-shutdown" async shutdown
  phase completes. This means that firefox shouldn't be killed too early
  and lose data (*).

* It still might be killed prematurely if it takes too long to quit and
  the session manager decides to timeout, but that's another story.
2016-06-20 08:13:00 +02:00
Nathan Froyd
fff70b0253 Bug 1280964 - fix gtk+2 build problems in widget/gtk/; r=karlt 2016-06-21 02:28:34 -04:00
Karl Tomlinson
4cd71ef94b bug 1280951 copy tooltip style context and cache that instead of widget r=stransky+263117
MozReview-Commit-ID: 6thXro9uYHn

--HG--
extra : rebase_source : 9b43f563bb433753e18d0f98d1541fcdae828ba3
2016-06-22 16:46:24 +12:00
Nicolas Silva
6d2e7705e4 Bug 1272332 - Allow gtk the global dark theme behind a pref. r=karlt 2016-06-21 14:51:03 +02:00
Martin Stransky
12a9958342 Bug 1276534 - don't save/restore style context on arrows on menu, r=karlt 2016-06-13 05:28:00 +01:00
Martin Stransky
150a870af2 Bug 1275407 - Adds CSS contents node to have correct scrollbar background on Gtk >= 3.20. r=karlt
Also derive default widget style from widget path. r=?karlt
Patch from Bug 1250704 needs to land prior to this one.

--HG--
extra : rebase_source : b831bb11a7a0a00c4bf51f93e07a41f432c78ec1
2016-06-13 03:35:00 +01:00
Jonathan Watt
6cbace6149 Bug 1279930 - Stop using gfxContext device offsets on the temporary gfxContext in the GTK code's nsWindow::OnExposeEvent. r=mstange 2016-06-14 07:30:20 +01:00
Jonathan Kingston
4512426a78 Bug 1192945 - Use channel->asyncOpen2 in widget/windows/nsDataObj.cpp. r=ckerschb
MozReview-Commit-ID: 5whNAj5KAjf

--HG--
extra : transplant_source : H%B0%2A%D0%90W%DEQn%9ET%92%273%B4%FB%E9S%D2%FA
2015-08-10 12:56:47 -07:00
Jonathan Watt
06b29e4abf Bug 1279628, part 2 - Switch all but one of the gfxASurface::CheckSurfaceSize calls to call Factory::CheckSurfaceSize. r=mstange 2016-06-10 13:32:01 +01:00
Phil Ringnalda
1cce1f61f8 Back out 2 changesets (bug 1279628) for reftest bustage
CLOSED TREE

Backed out changeset 07e4432bd6b3 (bug 1279628)
Backed out changeset 416fa9aeec55 (bug 1279628)
2016-06-11 00:44:51 -07:00
Jonathan Watt
8ea6b72d47 Bug 1279628, part 2 - Replace all gfxASurface::CheckSurfaceSize calls with Factory::CheckSurfaceSize and remove gfxASurface::CheckSurfaceSize. r=mstange
--HG--
extra : rebase_source : 314cf522b5760e63e176418ae170301fafa80f89
2016-06-09 15:31:24 +01:00
Randell Jesup
05bb25d9c0 Backed out changeset 36e71bcb0266 (bug 1192945) 2016-06-10 02:24:08 -04:00
Jonathan Kingston
d0636b7947 Bug 1192945 - Use channel->ascynOpen2 in widget/windows/nsDataObj.cpp . r=ckerschb, r=jmathies
MozReview-Commit-ID: 5whNAj5KAjf

--HG--
extra : rebase_source : cbe970274e34fdf32d1f60539a22b004ca0bea51
2015-08-10 12:56:47 -07:00
Jonathan Watt
4a3d84e333 Bug 1278278 - Remove gfxPDFSurface and move its logic to a PrintTargetPDF subclass of PrintTarget. r=Bas
--HG--
rename : gfx/thebes/gfxPDFSurface.cpp => gfx/thebes/PrintTargetPDF.cpp
rename : gfx/thebes/gfxPDFSurface.h => gfx/thebes/PrintTargetPDF.h
2016-06-06 16:10:28 +01:00
Jonathan Watt
cc6d4f9c08 Bug 1278276 - Remove gfxPSSurface and move its logic to a PrintTargetPS subclass of PrintTarget. r=Bas
--HG--
rename : gfx/thebes/gfxPSSurface.cpp => gfx/thebes/PrintTargetPS.cpp
rename : gfx/thebes/gfxPSSurface.h => gfx/thebes/PrintTargetPS.h
2016-06-06 16:10:28 +01:00
Karl Tomlinson
8c5debe5af Bug 1250704 - use same widget heirarchy as GTK for tooltip text color. r=stransky
MozReview-Commit-ID: 41sDYu3IqYq

--HG--
extra : rebase_source : 425a04503441f3edfd4ebbd71a21921013690426
2016-06-07 18:06:04 +12:00
Karl Tomlinson
7d57ffab85 Bug 1250704 - use style from WidgetStyleCache for tooltip colors. r=stransky
MozReview-Commit-ID: 9xzL8ckxTRQ

--HG--
extra : rebase_source : 6855183140e76ce1c40f403bbcbfa29b98f8ed8f
2016-06-07 16:11:51 +12:00
Martin Stransky
a7a4d14c62 Bug 1271523 - Construct tooltip style from path for Gtk >= 3.20, r=karlt
To apply it needs a patch from Bug 1277818.

MozReview-Commit-ID: 3xhYDliL4iw

--HG--
extra : rebase_source : 690e765e9cde78d0b83b9127ccc6e58fc86d415d
2016-06-07 06:22:00 +02:00
Jonathan Watt
0676eabe9f Bug 1278269 - Make a PrintTarget class and PrintTargetThebes subclass and convert all nsIDeviceContextSpec subclasses to use them. r=Bas 2016-06-03 11:27:31 +01:00
Jonathan Watt
75b8790b2f Bug 1278236 - Convert GetSurfaceForGdkDrawable to return a DrawTarget. r=Bas 2016-06-03 11:27:31 +01:00
Carsten "Tomcat" Book
976efc5585 Backed out changeset a7334430aef0 (bug 1271523) for valgrind leak
--HG--
extra : rebase_source : 7f597cdb9d4d55f5fa8fc629de657ce95d88788a
2016-06-08 13:46:26 +02:00
Carsten "Tomcat" Book
c16173e7f1 Backed out changeset f6f125b1088b (bug 1250704)
--HG--
extra : rebase_source : 5082ad5ea6f81bb1b2635db9a148b3c3034a7296
2016-06-08 13:46:13 +02:00
Carsten "Tomcat" Book
10d020481e Backed out changeset af36af25ecf4 (bug 1250704)
--HG--
extra : rebase_source : 7e7ad4291b89b8f95ec395c766b7ab4114ca7a49
2016-06-08 13:46:11 +02:00