George Wright
6fac44d239
Bug 1338890 - Cache our tab behaviour instead of requesting it each time on a hot path r=smaug
2017-02-17 14:21:28 -05:00
Kartikaya Gupta
51794df33e
Bug 1339097 - Allow PuppetWidget::GetLayerManager to return a layer manager even if it doesn't have a tabchild. r=dvander
...
MozReview-Commit-ID: Ee41WIUIC4U
2017-02-14 13:15:50 -05:00
David Anderson
a4b222f1cd
Give browser-process PuppetWidgets a BasicLayerManager. (bug 1287004, r=mattwoodrow)
2017-02-12 11:38:34 -08:00
Kartikaya Gupta
3e3b1b3f6f
Merge m-c to graphics
...
MozReview-Commit-ID: uU8MPphFqj
2017-02-02 13:38:51 -05:00
Kartikaya Gupta
1b1d888dd1
Bug 1333122 - Use the CompositorOptions to determine the appropriate LayerManager to create for content-process tabs. r=dvander
...
MozReview-Commit-ID: AhEpuPa2heV
2017-01-24 08:03:08 -05:00
David Anderson
370deea618
Make sure the last transaction is revoked when resetting content layer managers. (bug 1331548 part 3, r=mattwoodrow)
2017-02-01 23:52:48 -08:00
Kartikaya Gupta
05ab5e41a7
Merge m-c to graphics
...
MozReview-Commit-ID: Gds3AlDHXgY
2017-01-20 10:07:40 -05:00
Kartikaya Gupta
8975e03aba
Back out 4 csets from bug 1326421 because of various test failures. r=backout
2017-01-13 17:07:59 -05:00
Kartikaya Gupta
f2b699010f
Bug 1326421 - Have content processes create WebRenderLayerManagers if and only if the compositor being used is WebRender. r=dvander
...
Also guard against a scenario where RecvDocShellIsActive gets called before
we have the layers id for the tab. Because we need to have the compositor
options (which requires knowing the layers id) before we can create the layer
manager, we need to avoid calling GetLayerManager() before we have the options.
MozReview-Commit-ID: 1MKdhvUJobD
2017-01-13 15:16:52 -05:00
Kartikaya Gupta
2d075dbfbe
Merge m-c to graphics
...
MozReview-Commit-ID: 5ovnMmSOiZX
2017-01-09 10:18:37 -05:00
Masayuki Nakano
9f497a91cb
Bug 1332195 part.2 Fix some nits of event handlers in TabChild, TabParent and PuppetWidget r=smaug
...
This patch fixes:
* some long lines
* some odd indent
* wrapping one line blocks with {}
* removing B2G specific block
in event handlers in TabChild, TabParent and PuppetWidget.
MozReview-Commit-ID: 6xMsNEDA5nv
2017-01-19 17:57:20 +09:00
Masayuki Nakano
409a8ad618
Bug 1332195 part.1 Event handlers in TabChild, TabParent and PuppetWidget should use "a" prefix for their arguments r=smaug
...
MozReview-Commit-ID: 2c7cbOigwfU
2017-01-19 17:27:15 +09:00
Kartikaya Gupta
26f427122c
Merge m-c to graphics
...
MozReview-Commit-ID: E0Sr26LKcZx
2016-12-21 10:16:15 -05:00
Kartikaya Gupta
25f03c07f1
Merge m-c to graphics
...
MozReview-Commit-ID: 6ocpYm7MBCV
2016-12-19 13:35:32 -05:00
Nicholas Nethercote
0aafa0e5ec
Bug 1325234 (part 9) - Remove remaining NS_IMETHOD_ occurrences from nsIWidget. r=mstange.
...
|virtual T| is clearer than |NS_IMETHOD_(T)|.
2016-12-21 15:27:20 +11:00
Nicholas Nethercote
bc88544c2d
Bug 1325234 (part 8) - Streamline nsIWidget::DispatchEvent. r=jimm.
...
This patch changes it from |NS_IMETHOD| to |virtual nsresult| because some
callsites are checked and some aren't.
2016-12-21 11:18:40 +11:00
Nicholas Nethercote
56412157dc
Bug 1325234 (part 5) - Streamline nsIWidget::SetCursor (both versions). r=jimm.
...
This patch changes one from |NS_IMETHOD| to |virtual nsresult| and the other to
|virtual void|.
2016-12-21 11:13:08 +11:00
Nicholas Nethercote
343e7a7830
Bug 1325234 (part 4) - Streamline nsIWidget::{SetFocus,SetNonClientMargins}(). r=mstange.
...
This patch changes them from |NS_IMETHOD| to |virtual nsresult|.
2016-12-21 11:13:08 +11:00
Nicholas Nethercote
d3809ce662
Bug 1325234 (part 3) - Streamline nsIWidget::Show(). r=mstange.
...
This patch changes it from |NS_IMETHOD| to |virtual void|. The return value was
only checked in one low-value assertion and one other place where the check had
no useful effect (in nsCocoaWindow::HideWindowChrome()).
2016-12-21 11:12:54 +11:00
Nicholas Nethercote
dc2aa85dd7
Bug 1325234 (part 2) - Streamline nsIWidget::Invalidate(). r=jimm.
...
This patch changes it from |NS_IMETHOD| to |virtual void|. The return value was
only checked in one low-value assertion so I decided it wasn't needed.
2016-12-20 09:55:32 +11:00
sotaro
d995adddfd
Bug 1320284 - Remove some MOZ_ENABLE_WEBRENDER r=nical?
2016-12-15 14:05:38 +09:00
Kartikaya Gupta
a386c27f34
Merge m-c to graphics
...
MozReview-Commit-ID: C13IwWOpf64
2016-12-14 09:32:38 -05:00
Kartikaya Gupta
17245d5f13
Merge m-c to graphics
...
MozReview-Commit-ID: KhxBqJbwxv8
2016-12-06 23:45:24 -05:00
sotaro
02c56edd1b
Bug 1320284 - Switch WebRender by Pref r=nical?
2016-12-04 17:40:52 +09:00
Andrew McCreight
209d4ee048
Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj
2016-12-12 09:27:58 -05:00
Nathan Froyd
f2d50c26f4
Backout aba6c73511a2 (bug 1307961) for massive test bustage resulting in a CLOSED TREE; r=alltheorange
2016-12-12 08:45:46 -05:00
Andrew McCreight
2f93d6e48d
Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj
2016-12-12 07:58:33 -05:00
Nicholas Nethercote
aaca44be3c
Bug 1299335 (part 7) - Streamline nsIWidget::{Move,Resize}. r=mstange.
...
This patch changes them from |NS_IMETHOD| to |virtual void| because every
implementation of these functions always returns |NS_OK|.
2016-12-19 20:54:03 +11:00
Nicholas Nethercote
09f07e09c7
Bug 1299335 (part 5) - Streamline nsIWidget::StartPluginIME. r=mstange.
...
This patch changes it from |NS_IMETHOD| to |virtual MOZ_MUST_USE nsresult|.
2016-12-16 10:55:18 +11:00
Mozilla Graphics Team
1f923fd38d
Bug 1317774 - Add non-gfx code needed to use WebRender in gecko. r=gfx
...
This completes the migration of code from the github branch to the graphics
project repo. At this point all webrender-related code should be disabled
unless --enable-webrender is provided in the mozconfig.
MozReview-Commit-ID: Dea8rxM6UPL
2016-11-16 08:54:51 -05:00
Jessica Jong
8e34fa1651
Bug 1321245 - Request native key bindings for delayed keypress events. r=smaug
2016-12-02 00:41:00 -05:00
Mike Conley
0026185b04
Bug 1323586 - Drop reference to previous widget listener in PuppetWidget when showing after having been hidden. r=tnikkel
...
The previously attached widget listener is used mainly so that we can
continue to show the previous page until the next one is ready enough
to display properly (to avoid a "flashing" effect). When the PuppetWidget
is made visible after having been hidden (perhaps during a tab switch),
the previously attached widget listener is not useful. It's actually
harmful, since PuppetWidget::Paint will attempt to paint that old
widget listener, which is not possible, since it's detatched from
a widget, so we end up not painting a frame.
MozReview-Commit-ID: LJfKzepqguE
2016-12-16 15:54:49 -05:00
Kartikaya Gupta
53caf6b3c1
Bug 1315974 - When creating the widget layer manager, don't assume it will always be a ClientLayerManager. r=mattwoodrow
...
MozReview-Commit-ID: 8r037jdHJ0E
2016-11-08 10:42:26 -05:00
Kartikaya Gupta
37638cacbd
Bug 1315477 - Add a AsBasicLayerManager() function and use instead of static_casts. r=mattwoodrow
...
MozReview-Commit-ID: DV6XZBEXw85
2016-11-07 11:38:45 -05:00
Aryeh Gregor
f193823a7c
Bug 1271125 part 2 - Port editor mochitests that depend on ChromeUtils.js to mochitest-plain; r=masayuki
...
The change from ok() to is() in tests is so that the failure message is
more informative -- it now tells you the returned exception.
This commit omits test_contenteditable_text_input_handling.html because of test
failures that I haven't figured out.
MozReview-Commit-ID: 37cYlQlJZm7
2016-10-31 18:38:04 +02:00
Xidorn Quan
c3c6afa175
Bug 1304692 - Make puppet widget get coordinate rounding from parent. r=smaug
...
MozReview-Commit-ID: A3ornUMDmt8
2016-09-27 16:37:07 +10:00
David Anderson
58dfb0992b
Recreate PLayerTransactions for TabChildren when the compositor restarts. (bug 1300936 part 4, r=mattwoodrow, r=billm)
2016-09-20 01:19:32 -07:00
Bill McCloskey
1680d779a9
Bug 1279086 - Allow painting for tab switch when JS is running (r=dvander,mconley,mrbkap)
2016-09-16 20:35:11 -07:00
Phil Ringnalda
29989ac5ff
Backed out changeset 663cde4dd044 (bug 1287004) for crashes [@ XGetWindowAttributes]
...
CLOSED TREE
2016-09-13 21:06:19 -07:00
Bill McCloskey
014378a215
Bug 1287004 - Give PuppetWidgets in parent process a compositor bridge (r=mattwoodrow)
2016-09-13 20:06:44 -07:00
Nicholas Nethercote
d28f792e7a
Bug 1296993 (part 6) - Streamline nsIWidget::SetPluginFocused. r=mstange.
...
This patch removes the return value, because none of the call sites check it.
2016-08-25 13:43:27 +10:00
Kan-Ru Chen
a9b19d0584
Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
...
The patch is generated from following command:
rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,
MozReview-Commit-ID: AtLcWApZfES
2016-08-24 14:47:04 +08:00
Wes Kocher
9836520505
Backed out 2 changesets (bug 1279086) for causing painting issues a=backout
...
Backed out changeset b1c893387fdd (bug 1279086)
Backed out changeset 277c54118c8a (bug 1279086)
2016-08-22 16:00:34 -07:00
Nicholas Nethercote
ab7ae3b80d
Bug 1293596 (part 7) - Make nsIWidget::Destroy infallible. r=karlt.
2016-08-10 10:04:11 +10:00
Bill McCloskey
6b326939fd
Bug 1279086 - Allow painting for tab switch when JS is running (r=dvander,mconley,mrbkap)
2016-08-19 14:41:26 -07:00
Wes Kocher
bd5bb0eef4
Backed out 2 changesets (bug 1279086) for failures in browser_menu_item_01.js a=backout
...
Backed out changeset 00bb53b58e96 (bug 1279086)
Backed out changeset cff59fe2b933 (bug 1279086)
2016-08-19 12:31:55 -07:00
Bill McCloskey
003cabfc2c
Bug 1279086 - Allow painting for tab switch when JS is running (r=dvander,mconley,mrbkap)
2016-08-19 09:59:40 -07:00
Nicholas Nethercote
52a89402d9
Bug 1293596 (part 4) - Tweak nsIWidget::Create. r=mstange.
...
They don't need to be NS_IMETHOD, but they should be MOZ_MUST_USE. Adding the
latter catches a few missing checks, which the patch adds.
The patch also gives PuppetWidget an InfallibleCreate() function, which makes
the infallibility of PuppetWidget creation clear.
2016-08-19 09:03:17 +10:00
Nicholas Nethercote
8b8bd02a31
Bug 1293596 (part 2) - Rework nsIWidget bounds getters. r=mstange.
...
This patch makes GetBounds(), GetScreenBounds() and GetClientBounds() more
obviously infallible, like existing functions such as GetNaturalBounds() and
GetClientSize(). This results in clearer behaviour in nsCocoaWindow.mm if
Objective C exceptions occur. Along the way, the patch removes some useless
failure checks for these functions.
The patch also removes the NS_IMETHOD from GetRestoredBounds and makes that
function MOZ_MUST_USE.
2016-08-19 09:03:04 +10:00
Nicholas Nethercote
eb4f9a274e
Bug 1293603 (part 3) - Remove erroneous NS_METHOD uses in widget/. r=erahm.
...
All these occurrences are for methods declared with NS_IMETHOD, and so they
should be NS_IMETHODIMP instead of NS_METHOD.
2016-08-09 14:03:13 +10:00