62663 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
574cebf768 Bug 1437790: No need to reframe synchronously on chrome-flush-skin-caches. r=xidorn
Instead, just post the reframe, and process them normally on the next style
flush.

The assertion happens because the observer is triggered due to a doc ltr -> rtl
change, which triggers style invalidation. There's nothing processing the
restyles resulting from that invalidation before we hackily go into frame
construction from there, and thus we assert that the styles aren't up-to-date.

MozReview-Commit-ID: GnOKFqmtTnq

--HG--
extra : rebase_source : 94adefa065465ab1427f3ba3081c575f5e712ccf
2018-02-13 10:38:30 +01:00
Daniel Holbert
7f66b8109f Bug 1438020: Add some includes for "Inlines" headers to address clang build warnings in non-unified build. r=mats
MozReview-Commit-ID: HRHnjznPjx1

--HG--
extra : rebase_source : f0500a1c68a823a4583093a25f1a9fcf97aa1515
2018-02-13 14:38:20 -08:00
Brian Grinstead
61019396c7 Bug 1438309 - Remove #ifndef MOZ_XUL from nsXULLabelFrame;r=nalexander
MozReview-Commit-ID: 2hm8pUSnZpN

--HG--
extra : rebase_source : c14005a47bf64512c20d1253f278157f428bc61d
2018-02-14 12:46:24 -08:00
arthur.iakab
4139c1f914 Backed out 14 changesets (bug 1436659) for Eslint failures on devtools/server/actors/animation.js:876:12 on a CLOSED TREE
Backed out changeset a2890507d13a (bug 1436659)
Backed out changeset c653d7a1b3ef (bug 1436659)
Backed out changeset 4ae911f19aee (bug 1436659)
Backed out changeset e9381081ab6a (bug 1436659)
Backed out changeset 7301bfeeb65c (bug 1436659)
Backed out changeset 607dccfa8387 (bug 1436659)
Backed out changeset 8f61bf3de90a (bug 1436659)
Backed out changeset 920aa51ae3a2 (bug 1436659)
Backed out changeset bfa0d1a4bf1c (bug 1436659)
Backed out changeset 467dd218d3d3 (bug 1436659)
Backed out changeset 737ff1676ff0 (bug 1436659)
Backed out changeset 071666b6c7e9 (bug 1436659)
Backed out changeset c2932cd4839f (bug 1436659)
Backed out changeset a9777027b7ad (bug 1436659)

--HG--
rename : testing/web-platform/tests/web-animations/timing-model/animations/setting-the-playback-rate-of-an-animation.html => testing/web-platform/tests/web-animations/interfaces/Animation/playbackRate.html
rename : testing/web-platform/tests/web-animations/timing-model/animations/the-current-time-of-an-animation.html => testing/web-platform/tests/web-animations/timing-model/animations/current-time.html
rename : testing/web-platform/tests/web-animations/timing-model/animations/setting-the-start-time-of-an-animation.html => testing/web-platform/tests/web-animations/timing-model/animations/set-the-animation-start-time.html
rename : testing/web-platform/tests/web-animations/timing-model/animations/setting-the-target-effect-of-an-animation.html => testing/web-platform/tests/web-animations/timing-model/animations/set-the-target-effect-of-an-animation.html
rename : testing/web-platform/tests/web-animations/timing-model/animations/setting-the-timeline-of-an-animation.html => testing/web-platform/tests/web-animations/timing-model/animations/set-the-timeline-of-an-animation.html
2018-02-14 22:40:07 +02:00
Emilio Cobos Álvarez
e24fc9efb3 Bug 1436855: Flush notifications via the document in AsyncScrollPortEvent. r=bz
One at a time...

MozReview-Commit-ID: JbPtIneDlg0

--HG--
extra : rebase_source : 565f515e18dd2dc3a41bedca2660bb85d57aabe0
2018-02-12 01:05:14 +01:00
Brian Birtles
426e81f838 Bug 1436659 - Support pending playback rates on compositor animations; r=hiro
MozReview-Commit-ID: 54EiZkv4S7Q

--HG--
extra : rebase_source : de9fb42ff6275ef2ff3d3c15eee11726e0fcce03
2018-02-13 15:04:18 +09:00
Brendan Dahl
5bcf337440 Bug 1434381 - Inline the layout debug overlay into browser menu bar. r=dbaron
This is part of the work to remove XUL overlays. This overlay is only
used once and can be inlined.

MozReview-Commit-ID: 1SE1nobgehE

--HG--
extra : rebase_source : 33d73fa8538da9af626feb53267278ac97554710
2018-01-30 11:18:48 -08:00
Adrian Wielgosik
dea9e6d333 Bug 1438024 - Remove nsIMenuBoxObject. r=bz
MozReview-Commit-ID: Jz47v3dKvIY

--HG--
extra : rebase_source : 9896fdb66fc28e315858c353103299be87ae599f
2018-02-11 11:50:03 +01:00
Adrian Wielgosik
ee29f405fc Bug 1438024 - Remove nsIScrollBoxObject. r=bz
MozReview-Commit-ID: JOgu5nASqKA

--HG--
extra : rebase_source : 92097e5b33b0ec874b805d8a1d7dc910f99c0df4
2018-02-11 11:48:10 +01:00
Adrian Wielgosik
4ed50ec502 Bug 1438024 - Remove nsIContainerBoxObject. r=bz
MozReview-Commit-ID: ENLYcochOj3

--HG--
extra : rebase_source : 45b00b1ddc999fd808b24629025429c8037a1fbd
2018-02-11 11:45:10 +01:00
Xidorn Quan
1eaf423aa5 Bug 1437774 - Mark stylist dirty when author style disabled state changes. r=emilio
This is a workaround for regression from bug 1436798.

MozReview-Commit-ID: BJzk5cjjPd5

--HG--
extra : rebase_source : 456c88c7b26e077e4503bc1aa8a751f73fae4cef
2018-02-13 18:33:00 +11:00
Miko Mynttinen
713a93ce55 Bug 1436415 - Part 2: Enable nsIFrame::BuildDisplayListForChild() fast-path when using simple event region items r=mattwoodrow
MozReview-Commit-ID: 77rwS0cDUnn

--HG--
extra : rebase_source : 256cedb216e7e737471da3956b57ca0f876ab306
2018-02-13 01:55:27 +01:00
Miko Mynttinen
e05dc376a1 Bug 1436415 - Part 1: Reuse some local variables in nsIFrame::BuildDisplayListForChild() r=mattwoodrow
MozReview-Commit-ID: Cprpg6nMeY2

--HG--
extra : rebase_source : 56f1be48c02ca0c08fc55c00533404d554d1ad00
2018-02-12 23:59:32 +01:00
Jonathan Kew
8cc473a34a Bug 1435984 - patch 4 - Expose variationSettings on the FontFace webidl interface. r=bz,jwatt
--HG--
extra : source : 987305fa2a5faba6da86f8f0d494a6ce3dc77b33
2018-02-14 22:02:05 +11:00
Jonathan Kew
5bb5607380 Bug 1435984 - patch 3 - Store variation settings from the @font-face rule in the gfxFontEntry for user fonts. r=jwatt
--HG--
extra : source : 66947639ccc3236ff3e81b535e6a4e5173a8e05f
2018-02-14 22:02:05 +11:00
Jonathan Kew
cdb40ca922 Bug 1435984 - patch 2 - Support the font-variation-settings descriptor when parsing @font-face in the old Gecko style system. r=jwatt
--HG--
extra : source : 26f5d57cfa903ffd52e03e329d8a76e45cb6dfb9
2018-02-14 22:02:05 +11:00
Jonathan Kew
7e99aa819c Bug 1435984 - patch 1 - Cache the font-variations.enabled pref in StylePrefs for ready access in descriptor parsing. r=jwatt
--HG--
extra : source : 76e5042012c9c2f9c94953c62ea6f758f128e6f3
2018-02-14 22:02:05 +11:00
Xidorn Quan
a1e51ad3ec Bug 1435984 - patch 0 - Add binding function for setting float value to nsCSSValue. r=emilio
--HG--
extra : source : fbdfaaa58005e1dbd45d34de5a6429a7557a20f2
2018-02-14 22:02:05 +11:00
Daniel Holbert
10b8b4cdb3 Bug 1437723: Preemptively fix unified bustage in layout/style by adding missing includes/namespaces/forward-decls. r=emilio
MozReview-Commit-ID: 8ljZkAqgT4N

--HG--
extra : rebase_source : bea400511aa6c6c10e76c8418d6dfc8df2b31d17
2018-02-12 16:53:44 -08:00
Daniel Holbert
df4b3ddfcf Bug 1437623 part 3: (layout/painting) Add missing includes/namespaces to preemptively fix unified bustage. r=mattwoodrow
MozReview-Commit-ID: GvYoCro4HAU

--HG--
extra : rebase_source : ffdabc2c26543784218820bdb6d3a95fc1451152
2018-02-13 09:08:42 -08:00
Daniel Holbert
912ec5051e Bug 1437623 part 2: (layout/base) Add missing includes/namespaces to preemptively fix unified bustage. r=mats
MozReview-Commit-ID: G4ufWWf9qRC

--HG--
extra : rebase_source : d7b814a8b9f5d3a6371eef14280598943a259c99
2018-02-13 09:08:42 -08:00
Daniel Holbert
bc11da8aa7 Bug 1437623 part 1: (layout/generic) Add missing includes/namespaces to preemptively fix unified bustage. r=mats
MozReview-Commit-ID: GyFPLOsPWt3

--HG--
extra : rebase_source : 9612fb75ee8b3e38ea5528c572b5361d11438590
2018-02-13 09:08:41 -08:00
Masayuki Nakano
8917ac460f Bug 1436926 - part 2: Remove unnecessary KeyboardEvent.code specification of callers of EventUtils.synthesizeKey() r=smaug
Now, callers of EventUtils.synthesizeKey() don't need to specify
KeyboardEvent.code value anymore if they assume that active keyboard layout
is US keyboard layout.

Note that this patch changes the meaning of only test_bug551434.html.
Some callers in it don't match the key value and code value but that looks
like that they don't checking such odd keyboard events.  So, they must be
bug of the test.

MozReview-Commit-ID: Itxo7yZ9rkK

--HG--
extra : rebase_source : 856ef3715c924ca16e993ea57d92d1243b5cc6be
2018-02-09 19:17:26 +09:00
Emilio Cobos Álvarez
ca57724afe Bug 1436625: Whitelist the assertion for the throttled animation flush. r=hiro
MozReview-Commit-ID: 6StJjbH5Y59

--HG--
extra : rebase_source : ba8b85f23263fd132334ea3137534106be0b6a9b
2018-02-13 20:57:48 +01:00
Emilio Cobos Álvarez
a8f0ea9625 Bug 1437244: Try to assert a bit more about stylist accesses. r=hiro
The keyframe stuff runs from animation building, which needs clean styles
already.

Same for counter styles, they run from a well-defined point in time where rules
should be up-to-date already.

The canvas stuff needs no stylist access mostly, since it's only used to compute
a couple font-related things.

MozReview-Commit-ID: 3Vh1wzeaYl3

--HG--
extra : rebase_source : 9de148782365e128222a46414d87235b596a1660
2018-02-09 22:09:59 +01:00
Noemi Erli
d03ad8843e Merge inbound to mozilla-central. a=merge 2018-02-13 11:39:36 +02:00
Boris Zbarsky
25715415a1 Bug 1436902 part 2. Use NS_INLINE_DECL_REFCOUNTING_INHERITED for some classes that have otherwise-empty QI impls. r=mccr8
MozReview-Commit-ID: 95xACATqz7p
2018-02-12 15:43:55 -05:00
Hiroyuki Ikezoe
54a0194045 Bug 1237454 - Throttle animations on visibility:hidden element. r=birtles,boris,emilio
This patch does basically throttle animations on visibility:hidden element
and unthrottle it once the animating element became visible or a child of the
animating element became visible.  But still there are some cases that we don't
throttle such animations perfectly.  For example;

  div.style.visibility = 'hidden'; // the 'div' has no children at this moment
  div.animate(..);
  // The animation is throttled

  div.appendChild(visibleChild);
  // The animation isn't throttled

  visibleChild.style.visibility = 'hidden';
  // Now the animation should be throttled again, but actually it's not.

To throttle this case properly, when the |visibleChild|'s visibility changed
to hidden, we would need to do either

 1) Check all siblings of the |visibleChild| have no visible children

or

 2) The parent element stores visible children count somewhere and decrease it
    and check whether the count is zero

To achieve 1) we need to walk up ancestors and their siblings, actually it's
inefficient.

2) is somewhat similar to what we already do for animating images but it's hard
to reuse it for CSS animations since it does not take into account that
descendants' visibilities.

Another example that this patch does not optimize is the the case where
animating element has children whose visibility is inherited and the element
itself initially visible something like this;

  let child = document.createElement('div'); // child visibility is 'inherit'
  div.appendChild(child);

  div.animate(..); // the 'div' is visible
  // The animation isn't throttled since the animating element is visible

  div.style.visiblily = 'hidden';
  // Now the animation should be throttled, but it's not since this patch does
  // not descend down all descendants to check they are invisible or not when the
  // animating element visibility changed to hidden.

This patch adds a test case for this case introduced with todo_is().

Another test case added in this patch fails if we don't use
nsPlaceholderFrame::GetRealFrameFor() in HasNoVisibleDescendants().

MozReview-Commit-ID: BJwzQvP9Yc4

--HG--
extra : rebase_source : e56505706bb2799b59bbfb3bbcce4a9ce86892f4
2018-02-09 10:43:10 +09:00
Hiroyuki Ikezoe
40907715ce Bug 1237454 - Add VisibilityChange change hint. r=emilio
This new change hint doesn't influence layout so that it can be regarded
as nsChangeHint_Hints_CanIgnoreIfNotVisible.  Note that if visibility changed
from collapse or to collapse, we set NS_STYLE_HINT_REFLOW separetely.

MozReview-Commit-ID: AirDWeBYVKG

--HG--
extra : rebase_source : a462845ac2d8280986bb8db5e6482bf401f65322
2018-02-09 10:43:10 +09:00
Cameron McCormack
bc326a5bf5 Bug 1437362 - Remove nsIDOMWindowUtils.focus. r=bz
Replace the one use of it with element.focus().

MozReview-Commit-ID: 5qK6yfyuRoY

--HG--
extra : rebase_source : f6f9a738c6ebf2201dbd6a2ac5fe476797e0adb5
2018-02-11 17:16:58 +08:00
Daniel Holbert
c27a38f524 Bug 1437625: Promote a few nsCSSRendering.cpp static functions into exposed static methods, since another .cpp file is already using them. r=mattwoodrow
In partiuclar: nsCSSRenderingBorders.cpp is already using IsBoxDecorationSlice
and BoxDecorationRectForBorder. This would be compile error, except that we
happen to unify the two .cpp files together.  This patch promotes these two
functions (along with a closely-related function, for consistency).

MozReview-Commit-ID: 4sWj5Rb9QSw

--HG--
extra : rebase_source : 542f0200a82121f13626c9c2d129fcb5c441ff45
2018-02-12 11:38:53 -08:00
Ciure Andrei
bddcf84abe Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-13 00:12:21 +02:00
Ciure Andrei
72080bd73c Merge inbound to mozilla-central. a=merge 2018-02-13 00:08:37 +02:00
Adrian Wielgosik
598264eaff Bug 830221 - Remove nsIDOMDOMImplementation. r=bz
MozReview-Commit-ID: 3SCN1mHiMMn

--HG--
extra : rebase_source : 68494c099873ed487fc71800006afd93d0edf4e7
2018-02-12 21:49:07 +01:00
Tom Ritter
aa82f54ab6 Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku
There are a few different reasons why tests needed updating (not an exhaustive list):

- Tests assume that successive operations take place at different times.
- Tests assume that an operation took a minimum amount of time.
- Tests hardcodes a specific delay.

In most cases we hardcode the preference off. In some cases this is the best approach,
in others, we would like to improve. The bug for tracking those improvements is Bug 1429648

An improvement that is present in some tests is to hardcode a specific precision reduction
that is acceptable based on the confides of the test. (Obviously this needs to be a fix for
the test framework and not a requirement on the feature being tested.)

In a few places, the test itself can be fixed, for example to no longer require the end
time of an operation to be strictly greater than the start time, and allows it to be equal
to it.

MozReview-Commit-ID: J59c7xQtZZJ

--HG--
extra : rebase_source : df8a03e76eaf9cdc9524dbb3eb9035af237e534b
2018-02-12 11:39:41 -06:00
Daniel Holbert
c05d9d6118 Bug 1437655: Remove unreachable "return" statement in nsRuleNode::SetDefaultOnRoot. r=bradwerth
MozReview-Commit-ID: FNph063E3HU

--HG--
extra : rebase_source : 8b4a927dfe3a44b0426363659cc2656eb05c1e28
2018-02-12 12:29:18 -08:00
Coroiu Cristina
4cdc318344 Merge mozilla-central to inbound a=merge on a CLOSED TREE 2018-02-12 20:04:40 +02:00
Sebastian Hengst
1980eee311 merge mozilla-central to autoland. CLOSED TREE 2018-02-12 14:36:51 +02:00
Matt Woodrow
cfc46fcb12 Bug 1436189 - Part 2: Make sure we descend to the modified frame so that we descend through the containing block and mark out of flow frames for display. r=miko a=mass-reftest-fix CLOSED TREE
--HG--
extra : source : 3403b5f669d1395097f26c69c514e52d302a3ec0
extra : amend_source : 2d4c67e9142fd4e2404a772643a845634110ea0e
2018-02-09 11:47:08 +13:00
Matt Woodrow
284526cffc Bug 1436189 - Part 1: Add testcase. r=miko
--HG--
extra : source : ee3062043923076fceffbb61f85acc6d10339605
2018-02-09 11:47:08 +13:00
Coroiu Cristina
5dbddf88c1 Backed out changeset 9eb8652389f2 (bug 1427635) for clipboard failures at dom/browser-element/mochitest/test_browserElement_oop_CopyPaste.html 2018-02-12 13:44:46 +02:00
Sebastian Hengst
e6123cd888 merge mozilla-central to autoland 2018-02-12 13:38:04 +02:00
Sebastian Hengst
51a308a50b merge mozilla-inbound to mozilla-central. a=merge 2018-02-12 13:36:48 +02:00
arthur.iakab
9c5831300f Backed out 7 changesets (bug 1429932) for frequently failing layout/reftests/table-background/backgr_layers-opacity.html a=backout
Backed out changeset 24cf388d5d5b (bug 1429932)
Backed out changeset 8f7a4df5efcc (bug 1429932)
Backed out changeset c48601351975 (bug 1429932)
Backed out changeset c91a2b710a65 (bug 1429932)
Backed out changeset 5d146aec735e (bug 1429932)
Backed out changeset db244e692584 (bug 1429932)
Backed out changeset 39ffcc432d0c (bug 1429932)
2018-02-12 12:09:21 +02:00
arthur.iakab
3f11c2714c Backed out 2 changesets (bug 1436189) for frequently failing on layout/reftests/table-background/backgr_layers-opacity.html a=backout
Backed out changeset 3403b5f669d1 (bug 1436189)
Backed out changeset ee3062043923 (bug 1436189)
2018-02-12 12:06:58 +02:00
David Anderson
aca7c9a268 Record paint phase timing for small frames. (bug 1430897 part 2, r=mattwoodrow, data_r=rweiss) 2018-02-12 19:03:10 +13:00
David Anderson
2a12caeded Reduce data sent for CONTENT_LARGE_PAINT_PHASE_WEIGHT. (bug 1430897 part 1, r=mattwoodrow) 2018-02-12 19:03:09 +13:00
Matt Woodrow
a7749bbfe2 Bug 1435649 - Don't deference the display item when attempting the early return in ComputeGeometryChangeForItem to avoid a cache miss. r=jnicol 2018-02-12 19:03:09 +13:00
Matt Woodrow
b32db1556e Bug 1435650 - Cache the offset from AGR to reference frame in ProcessDisplayItems. r=jnicol 2018-02-12 19:03:09 +13:00
Matt Woodrow
cf9c739dc2 Bug 1435643 - Remove no longer needed layer flattening code. r=mstange 2018-02-12 19:03:09 +13:00