Граф коммитов

914 Коммитов

Автор SHA1 Сообщение Дата
Kris Maglione f55d5b792a Bug 1383367: Part 1 - Add JS helper to determine if a layout flush is required. r=mconley
This lets us decide whether to defer operations if they might trigger a
reflow.

MozReview-Commit-ID: 4M13HKAuZ7M

--HG--
extra : source : 6679237a46723432264361b5542454bb91d4831e
extra : intermediate-source : 46d1fa12a0829046f2bee4ffd10d7af38616bba9
2017-07-24 20:07:39 -07:00
Sebastian Hengst 9901cfb056 Backed out changeset 46d1fa12a082 (bug 1383367) for failing browser_windowopen_reflows.js after merge, especially on OS X. r=backout a=backout
MozReview-Commit-ID: B4wxvVgTP1Q
2017-07-30 14:08:38 +02:00
Kris Maglione 3a3d52a233 Bug 1383367: Part 1 - Add JS helper to determine if a layout flush is required. r=mconley
This lets us decide whether to defer operations if they might trigger a
reflow.

MozReview-Commit-ID: 4M13HKAuZ7M

--HG--
extra : source : 6679237a46723432264361b5542454bb91d4831e
2017-07-24 20:07:39 -07:00
Carsten "Tomcat" Book 6ddad46b40 Backed out changeset 1662b38e3107 (bug 1351148) 2017-07-28 09:20:23 +02:00
Chun-Min Chang 20ba5e9be3 Bug 1197045 - part2: Expose audio channels, layout, sample-rate, and native device information via DOMWindowUtils; r=padenot
MozReview-Commit-ID: 9Kh2w0MioUQ

--HG--
extra : rebase_source : cf0012bf9892dedb71933a48f595f97a8f648511
2017-07-18 16:09:10 +08:00
Brad Werth 4619abb60c Bug 1374881 - Implement nsDOMWindowUtils::GetUnanimatedComputedStyle for servo. r=birtles,heycam
MozReview-Commit-ID: 7tXAAbvWvU8
2017-07-24 17:02:19 -05:00
Sebastian Hengst 0a44c0dc0a Backed out changeset cf756c62b0a6 (bug 1197045) 2017-07-24 13:23:48 +02:00
Chun-Min Chang 70ec0769ce Bug 1197045 - part2: Expose audio channels, layout, sample-rate, and native device information via DOMWindowUtils; r=padenot
MozReview-Commit-ID: 9Kh2w0MioUQ

--HG--
extra : rebase_source : cf0012bf9892dedb71933a48f595f97a8f648511
2017-07-18 16:09:10 +08:00
Emilio Cobos Álvarez 2b7de51623 Bug 1381844: Be more explicit about the kind of style context we handle all the time. r=bholley
MozReview-Commit-ID: E0mdkhU3XBz
2017-07-22 18:02:57 +02:00
Wes Kocher 61354cf6c0 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 9pPsy8McMun
2017-07-21 18:18:35 -07:00
Mike Conley 348be03af6 Bug 1363361 - Add ability to dirty root frame from nsIDOMWindowUtils. r=dholbert
MozReview-Commit-ID: Jy6PICTkq4l

--HG--
extra : rebase_source : 83894f2ae0ccaafa05bcaee010876a55be82fd7d
2017-06-28 21:38:53 -07:00
Stone Shih 5c6d99d228 Bug 1351148 Part3: Synthesize native input events with priority. f=kats,smaug. r=smaug.
The test helper_touch_action_regions.html uses nsDOMWindowUtils to synthesize native input events and creates some runnables to trigger the test. It expects the runnables which synthesize native input events are processed first, then the runnables to continue the test, and finally the input events are forwarded from chrome process to content process. Enabling event prioritization may change the execution order.
Wraps those runnables to synthesize native input events as priority=input and dispatches those runnables to continue the test with priority=input to make sure the execution order is as expected.

MozReview-Commit-ID: 8hkaB1FRW9T
2017-05-19 15:41:24 +08:00
Sebastian Hengst 4c29c884c1 Backed out changeset b2f02ad2c82b (bug 1363361) for frequently failing browser_appmenu_reflows.js on OS X. r=backout a=backout
MozReview-Commit-ID: 5wPiUAKmDhi
2017-07-20 13:23:53 +02:00
Mike Conley 264b802d22 Bug 1363361 - Add ability to dirty root frame from nsIDOMWindowUtils. r=dholbert
MozReview-Commit-ID: Jy6PICTkq4l

--HG--
extra : rebase_source : 0ad14aa2b6221bf1fb56a2d5f5f162a85daf443a
2017-06-28 21:38:53 -07:00
Wes Kocher 8117ff8bd3 Backed out 3 changesets (bug 1197045) for failures in browser_Troubleshoot.js a=backout CLOSED TREE
Backed out changeset 78b66a4c6b7c (bug 1197045)
Backed out changeset feea60a002a7 (bug 1197045)
Backed out changeset 57842092a282 (bug 1197045)

MozReview-Commit-ID: J0KZDSSw4XQ
2017-07-18 22:54:15 -07:00
Chun-Min Chang 8c2032ba1b Bug 1197045 - part2: Expose audio channels, layout, sample-rate, and native device information via DOMWindowUtils; r=padenot
MozReview-Commit-ID: 9Kh2w0MioUQ

--HG--
extra : rebase_source : cf0012bf9892dedb71933a48f595f97a8f648511
2017-07-18 16:09:10 +08:00
Sebastian Hengst 6c82200d23 Backed out changeset 5c974dcdddd7 (bug 1363361) for running and failing browser_windowopen_reflows.js on Windows 8 x64. r=backout 2017-07-18 13:44:44 +02:00
Mike Conley 284395ae25 Bug 1363361 - Add ability to dirty root frame from nsIDOMWindowUtils. r=dholbert
MozReview-Commit-ID: Jy6PICTkq4l

--HG--
extra : rebase_source : 00029dc3a85c23f2801ce9af3b43105c60b318aa
2017-06-28 21:38:53 -07:00
David Anderson dd94534a4f Disable Advanced Layers when the sanity test fails. (bug 1377866 part 3, r=mchang) 2017-07-10 19:30:52 -07:00
Boris Zbarsky 5c76874a46 Bug 1371259 part 3. Change UnwrapObject<> and the UNWRAP_OBJECT macro to allow passing in mutable object or value handles for the thing being unwrapped, and do so at various callsites. r=peterv
I did audit all UNWRAP_OBJECT callers to make sure that the lifetimes of all the
temporary Rooted or the RefPtrs they unwrap into are long enough.
2017-07-10 16:05:24 -04:00
Beekill95 d2643cda87 Bug 1331932 - Suppress window animations while we're restoring window dimension. r=mikedeboer,jimm,mstange
--HG--
extra : rebase_source : 4c1cc1b8beb38f1445db8942d38babfa9fbce526
2017-06-22 14:27:05 +07:00
Andrew McCreight 2f8c208b53 Bug 1018394 - Remove unused functionality to do extra forget skippable calls before a CC. r=smaug
We never actually use this, and it causes assertions with fuzzing, so
just delete it.

MozReview-Commit-ID: 595M09mD0K2

--HG--
extra : rebase_source : 7fdcbeaa6db0c92b5818eae48624f0c74e660505
2017-07-03 12:53:54 -07:00
Carsten "Tomcat" Book 5f00ae3a8b merge mozilla-inbound to mozilla-central a=merge 2017-06-29 15:47:04 +02:00
Kartikaya Gupta 788b4add8d Bug 1375497 - Hook up the testing APIs in DOMWindowUtils. r=pchang
DOMWindowUtils needs to handle both ClientLayerManager and WebRenderLayerManager
in order for these APIs to work with webrender. There's unfortunately a fair
amount of code duplication here but even using a common interface and polymorphism
there's a fair amount of boilerplate so I'm not sure that's any better.

MozReview-Commit-ID: Efggm9mBVNy

--HG--
extra : rebase_source : 5691b0e3840a7161e7893691dbaf22d11084fc8f
2017-06-27 20:29:06 -04:00
Bill McCloskey f115503a0b Bug 1372405 - Provide names for all runnables in the tree (r=froydnj)
MozReview-Commit-ID: DKR6ROiHRS7
2017-06-26 14:19:58 -07:00
Jan Keromnes e6fb1d5091 Bug 1376628 - Don't use 'else' after 'break' or 'return' in dom/base/ (clang-tidy: readability-else-after-return). r=ehsan 2017-06-27 17:23:00 -04:00
Carsten "Tomcat" Book 259377b6ab merge mozilla-inbound to mozilla-central a=merge 2017-06-26 13:25:51 +02:00
David Anderson 07b79273e2 Add Advanced Layers to the compositor line in about:support. (bug 1365879 part 22, r=milan) 2017-06-23 14:23:13 -07:00
Kartikaya Gupta 0514137fed Bug 1375897 - Report a success return from nsDOMWindowUtils::FlushApzRepaints in the WR-enabled codepath. r=botond
MozReview-Commit-ID: 5MaDaQjqu3p

--HG--
extra : rebase_source : a1210fa3d24db3401e44ea40ef185f241177b16a
2017-06-23 12:45:49 -04:00
Carsten "Tomcat" Book 88fff78f64 Merge mozilla-central to mozilla-inbound 2017-06-23 12:22:24 +02:00
Carsten "Tomcat" Book 661c4ea09c Backed out changeset be62d3eb3b3b (bug 1365879) 2017-06-23 12:15:30 +02:00
Nicholas Nethercote 58786e1ea7 Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
This patch makes the following changes to the macros.

- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
  classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
  mostly misused.

- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
  universally available now anyway.

- Combines the first two string literal arguments of PROFILER_LABEL and
  PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
  them to be separate, and it forced a '::' in the label, which isn't always
  appropriate. Also, the meaning of the "name_space" argument was interpreted
  in an interesting variety of ways.

- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
  it clearer they construct RAII objects rather than just being function calls.
  (I myself have screwed up the scoping because of this in the past.)

- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
  the caller doesn't need to. This makes a *lot* more of the uses fit onto a
  single line.

The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).

- Fixes a bunch of labels that had gotten out of sync with the name of the
  class and/or function that encloses them.

- Removes a useless PROFILER_LABEL use within a trivial scope in
  EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
  any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
  a good idea.

- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
  done within them, instead of at their callsites, because that's a more
  standard way of doing things.

--HG--
extra : rebase_source : 318d1bc6fc1425a94aacbf489dd46e4f83211de4
2017-06-22 17:08:53 +10:00
David Anderson 52d5447f23 Add Advanced Layers to the compositor line in about:support. (bug 1365879 part 22, r=milan)
--HG--
extra : rebase_source : 123d4190c0343b60491f34757b26532b9def5075
2017-06-22 21:12:20 -07:00
Nicholas Nethercote 915a56fb41 Bug 1375299 (part 2) - Remove PROFILER_MARKER. r=mstange.
PROFILER_MARKER is now just a trivial wrapper for profiler_add_marker(). This
patch removes it.

--HG--
extra : rebase_source : 9858f34763bb343757896a91ab7ad8bd8e56b076
2017-06-22 13:40:21 +10:00
Xidorn Quan e747170dc5 Bug 1367306 part 1 - Add an attribute in nsIDOMWindowUtils to check whether the document is styled by stylo. r=bholley
MozReview-Commit-ID: 6ed78DkzmT8

--HG--
extra : rebase_source : 52171f9e97a4472f6c2bed773aac16acb7289052
2017-06-21 15:24:55 +10:00
domfarolino@gmail.com d4253766db Bug 1274663 - Expose API to trigger device reset. r=dvander
--HG--
extra : rebase_source : 5a9d2757f8e7378083ce42131d5a250027569814
2017-06-15 14:34:00 -04:00
Ehsan Akhgari 60fa8934e7 Bug 1357656 - Part 1: Expose an nsIDOMWindowUtils method for retrieving the direction of a piece of text based on the first-strong character algorithm; r=mystor 2017-06-09 17:26:14 -04:00
Kartikaya Gupta 10f514bb72 Bug 1369840 - Support content-side APZ test data in WebRenderLayerManager. r=botond
This mostly just copies the functional parts of the APZTestData code from
ClientLayerManager into WebRenderLayerManager, and propagates the paint sequence
number over to the compositor using the existing WebRenderScrollData machinery.

MozReview-Commit-ID: LHupFpqtWTX
2017-06-04 22:29:35 -04:00
Kartikaya Gupta 8b69d8d217 Bug 1369840 - Support getting the compositor-side APZ test data over PWebRenderBridge. r=botond
This is fairly straightforward plumbing. The webrender equivalent of PLayerTransaction
is PWebRenderBridge and we can use that to get the compositor-side APZTestData.

MozReview-Commit-ID: Bn8WjKW5GoI
2017-06-04 22:29:35 -04:00
Emilio Cobos Álvarez ae62618daf Bug 1347270: remove the nsIDOMWindowUtils::ElementsRestyled API. r=bholley
MozReview-Commit-ID: AKsEWc7Wpip

--HG--
extra : rebase_source : 2d4611ca4205041e0ae9a36142b9fd65da122e29
2017-05-30 11:38:53 +02:00
Ryan VanderMeulen 81f9096e52 Backed out 2 changesets (bug 1347270) for browser_toolbariconcolor_restyles.js permafail on a CLOSED TREE.
Backed out changeset 445cb4d47d4f (bug 1347270)
Backed out changeset f2b7f1d599e3 (bug 1347270)
2017-05-30 18:11:02 -04:00
Emilio Cobos Álvarez fbf5749494 Bug 1347270: remove the nsIDOMWindowUtils::ElementsRestyled API. r=bholley
MozReview-Commit-ID: AKsEWc7Wpip

--HG--
extra : rebase_source : 2d4611ca4205041e0ae9a36142b9fd65da122e29
2017-05-30 11:38:53 +02:00
Kartikaya Gupta e49fb92e99 Merge m-c to graphics, a=merge
MozReview-Commit-ID: IU4SJ95MVHH
2017-05-30 07:50:05 -04:00
Kartikaya Gupta d5c99e4ebb Bug 1367837 - Implement some APZ test util APIs for webrender. r=botond,dvander
This implements some methods exposed on DOMWindowUtils and used by
reftests, for the WebRender codepath. The implementation is very similar
to the implementation in LayerTransactionParent.

MozReview-Commit-ID: HP8OxzIzS7P
2017-05-28 07:48:36 -04:00
Kartikaya Gupta 5320a75266 Merge m-c to graphics
MozReview-Commit-ID: Fq2lBUWyr0m
2017-05-19 13:19:35 -04:00
Jeff Muizelaar b9411eb4eb Bug 1364626. Ensure our transaction arrives at the compositor before asking the parent to paint. r=dvander
This makes UpdateLayerTree synchronous enough to ensure that the layer
transaction from the child reaches the compositor. Given the comment in
http://searchfox.org/mozilla-central/rev/484d2b7f51b7aed035147bbb4a565061659d9278/dom/interfaces/base/nsIDOMWindowUtils.idl#106
this seems to be the original intent of this function anyways. Without this, we
can have a race between the child talking to the compositor and the child
talking to the parent talking to the compositor.

This also changes GetCompositorBridgeChild to work even when the widget doesn't
have a CompositorBridge
2017-05-17 10:45:33 -04:00
Jeff Muizelaar 0ed20eff4a Revert "Ensure our transaction arrives at the compositor before asking the parent to paint"
This reverts commit e0ec2a72700f.
2017-05-17 10:44:33 -04:00
Jeff Muizelaar b2c7a3fec1 Ensure our transaction arrives at the compositor before asking the parent to paint
This makes UpdateLayerTree synchronous enough to ensure that the layer
transaction from the child reaches the compositor. Given the comment in
http://searchfox.org/mozilla-central/rev/484d2b7f51b7aed035147bbb4a565061659d9278/dom/interfaces/base/nsIDOMWindowUtils.idl#106
this seems to be the original intent of this function anyways. Without this, we
can have a race between the child talking to the compositor and the child
talking to the parent talking to the compositor.

This also changes GetCompositorBridgeChild to work even when the widget doesn't
have a CompositorBridge
2017-05-17 10:42:09 -04:00
Emilio Cobos Álvarez fa730cc3b0 Bug 1357583: Add an API to get the restyle generation from the pres context. r=heycam
MozReview-Commit-ID: b7j0CpPimC
2017-05-29 23:53:25 +02:00
Xidorn Quan fbf065fd31 Backed out changeset 94b5ea8bed5c (bug 1355683)
MozReview-Commit-ID: AJJ7hSuOQNX

--HG--
extra : source : d149b46f49c26eae291cead8dc65d2844452b1b3
2017-05-19 14:57:35 +10:00