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

62879 Коммитов

Автор SHA1 Сообщение Дата
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
Emilio Cobos Álvarez 7132d0d982 Bug 1427635: Fix DoCompareTreePosition frame tree version with null aCommonAncestor. r=xidorn
It doesn't fill the ancestors of the first frame if aCommonAncestor is null,
which means that we get garbage afterwards.

MozReview-Commit-ID: G85dv7KM1Xd
2018-02-11 20:56:00 +01:00
Emilio Cobos Álvarez 5ee9269405 Bug 1424878: Not having cached style data doesn't guarantee we don't need to update media query stuff. r=bz
In particular,  even when there are no frames, we may have used the rule
cascades / stylist data (for different stuff, like font-feature-values, thus the
regressing bug).

Using the old rule cascades / stylist data without knowing it has changed is
wrong, thus the bug.

Now that media query change stuff is async and has a well-defined processing
point, we should be able to just call it without too much worry.

Also note that at the point the extra hints are passed, if there's no root frame
/ elements are not styled / etc, we'll optimize away the change hint.

The test-case intermittently fails without this patch, but I didn't manage to
make a better one, unfortunately :(

MozReview-Commit-ID: LY2HRIlAKHX
2018-02-11 20:07:21 +01:00
Emilio Cobos Álvarez 0e897301b5 Bug 1394233: Quirks mode changes can happen after a flush. r=xidorn
The reason why bug 1355721 regressed this is because in non-e10s we definitely
flush before parsing the standards quirks-mode. And bug 1355721 introduced an
unconditional UpdateStylistIfNeeded, unless the counter style / font
equivalents.

That means that the stylist wouldn't remain on its initial state after the first
flush, which itself means that when the compat mode changed, the UA and user
rules were already on the stylist with the quirks mode keys. That makes
class-names be keyed in ascii lowercase.

After that no user style changed, so no rebuild happens for the cascade data in
the user origin, so we keep looking at the wrong keys indefinitely.

MozReview-Commit-ID: 25dD2bca3tN
2018-02-11 20:06:28 +01:00
Matt Woodrow a48efa458b Bug 1420480 - Build display items infront and behind a stacking context if the size might have changed. r=miko 2018-02-12 16:05:28 +13:00
Matt Woodrow f9ae6c7cf8 Bug 1420480 - Add testcase for modifying the size of a stacking context after a partial build. r=miko 2018-02-12 16:05:20 +13:00
abhinav 7a69b1dac9 Bug 1434018 - Remove references to old (SeaMonkey) overlays from layoutdebug code. r=dbaron
--HG--
extra : rebase_source : a4d0bdae9b9c776707ebaa17aaa0d3e715233554
2018-01-30 18:13:00 +05:30
Margareta Eliza Balazs e53161812f Merge inbound to mozilla-central. a=merge 2018-02-10 23:47:15 +02:00
Daniel Holbert a237d49f0e Bug 1324042: Fix trimmedOffsets arithmetic in GetRenderedText(). r=mats
MozReview-Commit-ID: H4ngU8Juyln
2018-02-10 08:46:49 -08:00
Bogdan Tara 5bbbbe17bc Merge inbound to mozilla-central. a=merge 2018-02-10 11:57:47 +02:00
Dorel Luca b6a5da392a Backed out changeset 87a3fe2c7e9b (bug 1436782) for Browser chrome failures on layout/style/test/browser_newtab_share_rule_processors.js on a CLOSED TREE 2018-02-10 05:37:22 +02:00
Emilio Cobos Álvarez 668b05feb3 Bug 1436782: Insert the prefs sheet at the UA level. r=bholley
Since that's what it's effectively happening anyway.

MozReview-Commit-ID: AZGONTbCTNa
2018-02-10 03:03:41 +01:00
Emilio Cobos Álvarez 66f99f62bd Bug 1436798: style: Move author-style-disabled handling to push_applicable_declarations. r=bholley
This will make it easier to handle it properly for Shadow DOM, though this patch
doesn't do that.

This also makes some method inline and infallible for convenience, since nobody
checks the errors anyway.

MozReview-Commit-ID: Hq3erAUs5tf
2018-02-10 00:36:53 +01:00
Sebastian Hengst d1700a0b7a merge mozilla-central to autoland. CLOSED TREE 2018-02-10 00:34:30 +02:00
Sebastian Hengst f5e840425b merge mozilla-inbound to mozilla-central. a=merge 2018-02-10 00:26:50 +02:00
Daniel Holbert 7e7bf4886a Bug 1437008: Add fuzzy annotation for new reftest flexbox-writing-mode-013.html. (no review, test-manifest-tweak)
MozReview-Commit-ID: hYAT6ofpmM
2018-02-09 08:42:32 -08:00
Boris Zbarsky c61fc860fe Bug 1436508 part 14. Remove nsIDOMMutationEvent. r=masayuki
MozReview-Commit-ID: Gf59kFSIuaK
2018-02-09 11:17:10 -05:00
Boris Zbarsky 3660ff5632 Bug 1436508 part 13. Remove nsIDOMMutationEvent constants. r=masayuki
MozReview-Commit-ID: Anl5QJZknJL
2018-02-09 11:17:10 -05:00
Boris Zbarsky 034e47c66b Bug 1436508 part 12. Remove nsIDOMKeyEvent. r=masayuki
MozReview-Commit-ID: 8giqG5iHiIf
2018-02-09 11:17:10 -05:00
Boris Zbarsky 92bbd744e1 Bug 1436508 part 11. Remove the use of the nsIDOMKeyEvent::DOM_VK* constants in C++. r=masayuki
MozReview-Commit-ID: Honw0NrVMuV
2018-02-09 11:17:09 -05:00
Boris Zbarsky 7e7ef3c600 Bug 1436508 part 6. Switch layout/xul from nsIDOMKeyEvent to KeyboardEvent. r=masayuki
MozReview-Commit-ID: Cp4krHgxXzQ
2018-02-09 11:17:09 -05:00
Eric Rahm 7e19ac02be Bug 1437173 - Remove warning that node is null in GetInLink. r=bz
This reverts back to just returning failure rather than warning and returning
failure in GetInLink.

--HG--
extra : rebase_source : ce32635e3c301164c3296db71fcab624e256ac93
2018-02-09 13:10:13 -08:00
Daniel Holbert 6347bc66d5 Bug 1186147: add crashtest for this bug (now that it's been fixed by a dependent bug). (no review, crashtest-only) 2018-02-09 15:30:51 -08:00
Jamie Nicol 61cdff34c5 Bug 1429508 - Allow created mask surfaces to be clipped to the necessary size when replaying a recording. r=bas
Add a command CreateClippedDrawTarget to DrawTarget, which takes the
max required size and a transform between this draw target and the one
to be created. The created draw target may have its size clipped to
the size of this draw target, transformed to the new target's
space. This means that the new surface will be large enough so
that it is rendered to this draw target correctly, but not necessarily
any larger.

Usually this will just create a draw target of the requested size, for
simplicity. However, when replaying a recorded draw target we do clip
the size to the base draw target's size. This is done using a
DrawTargetTiled, so when applying the mask in PopLayer, we must take
the SourceSurface's offset in to account.

MozReview-Commit-ID: 89ONElphzLu

--HG--
extra : rebase_source : 7eebeb66a2686a7b6f4ade36f3004ebb06abc2fe
2018-02-05 17:59:42 +00:00
Miko Mynttinen a84d6e8626 Bug 1434243 - Part 4: Do not create unnecessary nsDisplayCompositorHitTestInfo items r=kats,mattwoodrow
MozReview-Commit-ID: CNXMMCFFBmc

--HG--
extra : rebase_source : 5c34cef710a5f18006485814a5d29e6a43216188
2018-02-05 18:39:52 +01:00
Miko Mynttinen ae6cc4938d Bug 1434243 - Part 3: Make nsDisplayListBuilder::ToReferenceFrame and nsDisplayListBuilder::FindReferenceFrame const r=mattwoodrow
MozReview-Commit-ID: 5b7Ox1cIBv0

--HG--
extra : rebase_source : 1fff8adc65a58bc71459437260a68c79fc13eb62
2018-02-06 17:18:22 +01:00
Geoff Brown cd78045019 Bug 1434423 - Check for installation of correct test application when --app is passed to mach; r=jmaher 2018-02-09 14:34:20 -07:00
Miko Mynttinen c13c744de6 Bug 1434243 - Part 2: Add nsDisplayCompositorHitTestInfo support to FrameLayerBuilder r=mattwoodrow
MozReview-Commit-ID: 5RdFJDyB6RN

--HG--
extra : rebase_source : 364404b8f12397235b27a34ebe4b4492fc350ad5
2018-01-30 15:10:23 +01:00
Miko Mynttinen 343f94e2b5 Bug 1434243 - Part 1: Ensure that AncestorHasApzAwareEventHandler is set when needed if APZ is enabled r=kats
MozReview-Commit-ID: BxAEotnGQwS

--HG--
extra : rebase_source : b28759fbfc0bb95b38391ae511ce6060a0ee683d
2018-02-02 14:15:37 +01:00
Tiberius Oros 677b0037d2 Merge inbound to mozilla-central. a=merge 2018-02-09 12:02:51 +02:00
Matt Woodrow 9cab76c73d 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 2018-02-09 11:47:08 +13:00
Matt Woodrow ed536b3dd1 Bug 1436189 - Part 1: Add testcase. r=miko 2018-02-09 11:47:08 +13:00
Botond Ballo bb3e018735 Bug 1434250 - Reftest. r=kats
MozReview-Commit-ID: HiPeeyLD6Xh

--HG--
extra : rebase_source : 6cb9c15ceec1ca2e4fdc3b7c9f43f22903af2c5d
2018-02-07 16:01:30 -05:00
Botond Ballo d6cea6bca1 Bug 1434250 - Use a Box, rather than a Rect, representation for position:sticky inner/outer rects in the Layers API. r=kats
MozReview-Commit-ID: 4LDQ3XmWynx

--HG--
extra : rebase_source : cebe70a08b27d930618f44cb3923d3ede1171724
2018-02-09 15:40:13 -05:00
Botond Ballo 82e944293f Bug 1434250 - Infrastructure for working with Box types in Gecko code. r=kats
MozReview-Commit-ID: 5fbTj6vwOwu

--HG--
extra : rebase_source : d9ed5a4c1e75426b612290050f4863b9bb7adc37
2018-02-07 12:52:37 -05:00
Botond Ballo b10f62c5f0 Bug 1425243 - Second reftest to catch the coordinate problem with the first fix attempt on desktop. r=mstange
MozReview-Commit-ID: 9BMUE6k4uiU

--HG--
extra : rebase_source : 90c16b5fad7d138ea76a5adc74daa47f93b0dea0
2018-02-07 18:03:03 -05:00
Botond Ballo b9a6a2d7a9 Bug 1425243 - Reftest. r=mstange
MozReview-Commit-ID: HP5CfcTuMUZ

--HG--
extra : rebase_source : e86101fed68c2a6fbe343ac38b94c6485d304d5d
2018-02-07 23:39:28 -05:00
Jamie Nicol 190d2c71c5 Bug 1429508 - Mark DrawTarget::GetSize as const. r=jrmuizel
MozReview-Commit-ID: BmhlrQjmIjW

--HG--
extra : rebase_source : 388e5a273140e7996f4943b6f28d23c3d44ccf18
2018-01-23 17:10:11 +00:00
Ciure Andrei 5a6e9e8971 Backed out changeset d6e7f810f7d3 (bug 1424878)for failing reftests related to usercss/usercss-uppercase.html a=backout on a CLOSED TREE 2018-02-10 16:42:18 +02:00
Emilio Cobos Álvarez e63551fac2 Bug 1424878: Not having cached style data doesn't guarantee we don't need to update media query stuff. r=bz
In particular,  even when there are no frames, we may have used the rule
cascades / stylist data (for different stuff, like font-feature-values, thus the
regressing bug).

Using the old rule cascades / stylist data without knowing it has changed is
wrong, thus the bug.

Now that media query change stuff is async and has a well-defined processing
point, we should be able to just call it without too much worry.

Also note that at the point the extra hints are passed, if there's no root frame
/ elements are not styled / etc, we'll optimize away the change hint.

The test-case intermittently fails without this patch, but I didn't manage to
make a better one, unfortunately :(

MozReview-Commit-ID: LY2HRIlAKHX

--HG--
extra : rebase_source : ed7d57cbdf4d08510ad62e88818a754b46441ac4
2018-02-10 00:45:18 +01:00
Bogdan Tara c14c8606f3 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-10 12:00:06 +02:00
Xidorn Quan f990abd8f9 Bug 1435139 - Don't call SetCSSDeclaration when removing non-existing property. r=bz
MozReview-Commit-ID: 8jt1D5RULEy

--HG--
extra : rebase_source : 417b30d30aedfae0c843b292636317ac20da19c5
2018-02-05 16:07:44 +11:00
Ryan Hunt 4a4b48772d Add basic DrawTargetCapture logging ability (bug 1435938, r=bas)
MozReview-Commit-ID: LhbC4mWub6k

--HG--
extra : histedit_source : 3dd4ae3ce007aa326c1d47f018770df1e9b982e1%2C4cf1db87b1cd9e879a90351f086711d24216d7b5
2018-02-05 22:00:45 -06:00
Matt Woodrow 745b1a42db Bug 1429932 - Part 7: Restrict dirty regions in ComputeRebuildRegion to the overflow area of the current frame so that we discard invalidations that aren't visible. r=miko
MozReview-Commit-ID: BJ5Ud7c9ofk

--HG--
extra : source : 24cf388d5d5b85e17a7cacaa53e2956cda20aff4
2018-01-12 11:51:08 +13:00
Matt Woodrow 596d61752a Bug 1429932 - Part 7: Restrict dirty regions in ComputeRebuildRegion to the overflow area of the current frame so that we discard invalidations that aren't visible. r=miko
MozReview-Commit-ID: BJ5Ud7c9ofk
2018-01-12 11:51:08 +13:00
Matt Woodrow 487a708128 Bug 1429932 - Part 6: Attempt to skip Layer building if the display list hasn't changed. r=mstange
MozReview-Commit-ID: 1kBRIVteNb1

--HG--
extra : source : 8f7a4df5efcc9becd605e60dfe7c61002264a32c
2018-01-12 11:50:11 +13:00
Matt Woodrow 95aa2b64e8 Bug 1429932 - Part 6: Attempt to skip Layer building if the display list hasn't changed. r=mstange
MozReview-Commit-ID: 1kBRIVteNb1
2018-01-12 11:50:11 +13:00
Matt Woodrow 99f8ea8534 Bug 1429932 - Part 5: Move the Layer building section of nsDisplayList::PaintRoot into a separate function. r=mstange
MozReview-Commit-ID: Cm5ZRU3PoQo

--HG--
extra : source : c48601351975ce14b55c04f55575bf36fddf5de6
2018-01-12 11:48:14 +13:00
Matt Woodrow 789b38f176 Bug 1429932 - Part 5: Move the Layer building section of nsDisplayList::PaintRoot into a separate function. r=mstange
MozReview-Commit-ID: Cm5ZRU3PoQo
2018-01-12 11:48:14 +13:00
Matt Woodrow 83e16d1481 Bug 1429932 - Part 4: Determine when AttemptPartialUpdate made no changes, and return the result to the caller. r=miko
MozReview-Commit-ID: 6S8WkzHcxP5
* * *
[mq]: detect-changes-merging

MozReview-Commit-ID: KTy7wdE7dPK

--HG--
extra : source : c91a2b710a654530336760b83c6335bc11e4ed0d
2018-01-12 11:46:23 +13:00
Matt Woodrow 026652fdb6 Bug 1429932 - Part 4: Determine when AttemptPartialUpdate made no changes, and return the result to the caller. r=miko
MozReview-Commit-ID: 6S8WkzHcxP5
* * *
[mq]: detect-changes-merging

MozReview-Commit-ID: KTy7wdE7dPK
2018-01-12 11:46:23 +13:00
Matt Woodrow 6fe2885534 Bug 1429932 - Part 3: Refactor RetainedDisplayListBuilder::AttemptPartialUpdate to have an early return instead of a nested scope. r=miko
MozReview-Commit-ID: L91euwUeJ5x

--HG--
extra : source : 5d146aec735e9bef2b95d3cbdfa5a5d13788e9ad
2018-01-12 11:43:41 +13:00
Matt Woodrow 89fd9a5858 Bug 1429932 - Part 3: Refactor RetainedDisplayListBuilder::AttemptPartialUpdate to have an early return instead of a nested scope. r=miko
MozReview-Commit-ID: L91euwUeJ5x
2018-01-12 11:43:41 +13:00
Matt Woodrow 5ab50ccae7 Bug 1429932 - Part 2: nsDisplayMask can paint images and shouldn't have the TYPE_RENDERS_NO_IMAGES flag. r=mstange
MozReview-Commit-ID: 7viMP1fMdfu

--HG--
extra : source : db244e692584f762adec39abe30eb83b3ee64a8d
2018-01-12 11:42:11 +13:00
Matt Woodrow c26d185107 Bug 1429932 - Part 2: nsDisplayMask can paint images and shouldn't have the TYPE_RENDERS_NO_IMAGES flag. r=mstange
MozReview-Commit-ID: 7viMP1fMdfu
2018-01-12 11:42:11 +13:00
Matt Woodrow 70ea43dfa8 Bug 1429932 - Part 1: Remove mFireAfterPaintEvents and use mTransactions instead. r=tnikkel
This fixes a bug where EnsureEventualDidPaintEvent needs to be called separately for each transaction id, but we skip it since mFireAfterPaintEvents is still true from the previous paint.
We now track the equivalent state by checking for the presence of mTransactions[aTransactionId], and correctly schedule an eventual didpaint for each id.

MozReview-Commit-ID: JnRTycGEyom

--HG--
extra : source : 39ffcc432d0c04641acf3be018f1919a9d620893
2018-01-12 11:41:16 +13:00
Matt Woodrow e356419ccd Bug 1429932 - Part 1: Remove mFireAfterPaintEvents and use mTransactions instead. r=tnikkel
This fixes a bug where EnsureEventualDidPaintEvent needs to be called separately for each transaction id, but we skip it since mFireAfterPaintEvents is still true from the previous paint.
We now track the equivalent state by checking for the presence of mTransactions[aTransactionId], and correctly schedule an eventual didpaint for each id.

MozReview-Commit-ID: JnRTycGEyom
2018-01-12 11:41:16 +13:00
Daniel Holbert 56484d9fda Bug 1294278 followup: Extend existing fuzzy annotation to include Mac as well. (no review, just a reftest-manifest tweak)
MozReview-Commit-ID: yTUU9RylTK
2018-02-08 12:52:57 -08:00
Brindusan Cristian 4b424f0368 Merge inbound to mozilla-central. a=merge 2018-02-08 21:02:00 +02:00
Emilio Cobos Álvarez 015ed56625 Bug 1435803: Loosen an assertion that may not hold on the old style system. r=dbaron
MozReview-Commit-ID: HThEZ5k0Nxf

--HG--
extra : rebase_source : d017944692969e37edada5332620409b912166fa
2018-02-08 02:30:13 +01:00
shindli 4385887a29 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-08 12:14:16 +02:00
Bob Owen b3ae9277a2 Bug 1379117 Part 1: MOZ_ASSERT when not retrieving nsIWebBrowserPrint through docshell for Print Preview. r=jwatt
Changing the last retrieval of the nsIWebBrowserPrint in
printpreview_bug396024_helper.xul caused problems because doing it via the
docshell interrupts the load that triggers run5.
So, I moved the test to run5, which is more consistent with run2 and run3.
I then realised that the frames would have switched anyway, so I changed it to
retrieve frame[0] for the last test, which I think makes more sense.
It's not totally clear to me what this was testing originally or whether it
continued to do so after the addition of the second iframe a long time ago.
2018-02-08 08:59:20 +00:00
Jonathan Kew c394463ec3 Bug 1436362 - Remove outdated code from when the font-feature-settings and font-language-override descriptors were -moz-prefixed. r=jwatt 2018-02-08 08:49:06 +00:00
Ciure Andrei cda04ea11e Merge inbound to mozilla-central. a=merge 2018-02-08 00:05:57 +02:00
Mike Hommey 934828f009 Bug 1434765 - Properly reject invalid variables in #if{,n}def. r=froydnj,nalexander
The invalid variable test for #if{,n}def was only checking that the
first character in the variable was alphanumeric or underscore, not
the other characters.

More generally, preprocessor instructions were also cut out such that
whitespaces before and after arguments were part of the arguments.
Subtly, some legitimate strings end with what, in ISO-8859-1, is
considered as whitespaces, and because the preprocessor largely works
on byte strings (str), and because the regexps are using re.U, those
characters (e.g. 0xa0) that can legitimately appear in byte strings of
UTF-8 encoding, are treated as whitespaces. So we remove the re.U from
the instruction regexp, so that only plain ascii whitespaces only are
stripped out.

There's one place in layout/tools/reftest/manifest.jsm that was using
a broken pattern, making the test never true, which, once fixed, unveils
broken tests, so the branch that was never used is removed.

--HG--
extra : rebase_source : b695dec025c55aee0e50f2a0047278fe9c849c9e
2018-02-01 10:40:59 +09:00
Brad Werth 706974795f Bug 1418930 Part 6: Add a test of shape-outside with and without a CORS violation. r=emilio
MozReview-Commit-ID: KI4itQ1ORYJ

--HG--
extra : rebase_source : c3480a6a4f9a7067053bd5e7c8258786ff03dee3
2018-01-31 17:02:14 -05:00
Brad Werth f16c68cd42 Bug 1418930 Part 5: Update nsStyleStruct::FinishStyle and nsRuleNode::ComputeDisplayData to set CORS mode for shape-outside images. r=emilio
MozReview-Commit-ID: 7MXJHE2vidS

--HG--
extra : rebase_source : 5dae10f8234b6bcbcb288a3f5e10221faca0673b
2018-01-31 16:08:01 -05:00
Jonathan Watt 843da70a1a Bug 1436438 part 1 - Remove the tests that test SVG path data DOM interfaces. r=longsonr
MozReview-Commit-ID: 78yzAb6Khf1
2018-01-26 10:39:11 +00:00
Brad Werth 2a3479abd5 Bug 1418930 Part 4: Define a CSS property flag to accompany the image preload flag -- to also use anonymous CORS. r=emilio
MozReview-Commit-ID: 9iQgT3g1m9J

--HG--
extra : rebase_source : 91ae18a5064c57a8e958fc1f9bbe85c7c62a37a0
2018-01-25 14:56:39 -08:00
Brad Werth 43275caf98 Bug 1418930 Part 3: Update css::ImageValue to carry a parameter that indicates anonymous CORS headers should be used during loading. r=emilio
MozReview-Commit-ID: JJ5lZRwS6Be

--HG--
extra : rebase_source : 04f1763498d673bd7b57c1ca415f4669f2634b03
2018-01-29 13:55:38 -05:00
Brad Werth 1c1244f196 Bug 1418930 Part 2: Extend ImageLoader with a parameter to add anonymous CORS headers. r=bz,emilio
MozReview-Commit-ID: LobEEXmuNZ2

--HG--
extra : rebase_source : 71d1224201940624f2f1a68f4d3cf331aca55e72
2018-01-25 14:14:13 -08:00
Xidorn Quan 731735f001 Bug 1435944 part 2 - Use atom for identifier media features. r=emilio
MozReview-Commit-ID: 8NHLNySwcSf

--HG--
extra : rebase_source : 08f25e889d4d94a16de9e9c4948bf2218531949e
extra : source : b1d3e7d7d85d4d898dcd988a63b6f516f8da6e0e
2018-02-08 13:50:42 +11:00
Daniel Holbert 156dcfc5f0 Bug 1267462 part 10: Fix flexbox code in nsFrame::ComputeSize[WithIntrinsicDimensions] to use logical axes & coords. r=mats
This patch makes a bunch of tests start passing, so it removes some 'fails' annotations.

MozReview-Commit-ID: DCxkXFnztLc

--HG--
extra : rebase_source : 53f4d38c0bf8915fc420f971ba36f4c0ad7aa8ed
2018-02-08 15:17:24 -08:00
Daniel Holbert 6de1d22027 Bug 1267462 part 9: Fix IsCrossSizeDefinite() helper-method to use logical axes & coords. r=mats
MozReview-Commit-ID: Eda6ltmcDgQ

--HG--
extra : rebase_source : 549b46cfba57e25dbd9b8968c1c508239d2d47a1
2018-02-08 15:17:03 -08:00
Daniel Holbert a5c3b4fd13 Bug 1267462 part 8: Rename ReflowInput.mFlags.mIsFlexContainerMeasuringHeight with s/Height/BSize/, to match reality. r=mats
This patch doesn't change behavior; it's simply a rename.

I'm also fixing one mistyped mention of this variable in a comment in
nsFlexContainerFrame.cpp.  (The comment had "Reflow" rather than "Height" in
its mention of this variable-name.)

MozReview-Commit-ID: KRW7FCVSlto

--HG--
extra : rebase_source : 2a27ea3bf9d3eabc437db398d24e374ce48ba677
2018-02-08 15:15:11 -08:00
Daniel Holbert fa61229977 Bug 1267462 part 7: Generalize nsFlexContainerFrame::ResolveAutoFlexBasisAndMinSize and helpers to use logical axes & coords. r=mats
In particlar, this patch:

 - ...renames a bunch of 'auto'-BSize-measurement functions/variables from
   "Height" to "BSize".  (I thought about splitting this part out, but
   typically the correctness of the renames was intrinsically tied to the logic
   generalizations that I'm performing here, and vice versa, so it seemed
   clearest to group it all together.)

 - ...replaces some calls to IsMainAxisHorizontal() with the more general
   "FlexItem::IsInlineAxisMainAxis()" API, for cases when we're reasoning about
   whether a flex item's main-size is really just its (easier-to-resolve) ISize.

 - ...replaces some calls to IsCrossAxisHorizontal() with either
   IsColumnOriented() or FlexItem::IsInlineAxisCrossAxis() (depending on
   whether we're reasoning about the flex container's cross-size vs. a flex
   item's cross size).

This makes a bunch of tests start passing (including a "received" w3c
reftest/wpt-test), so this patch also removes some failure annotations.

MozReview-Commit-ID: 3uR1mOzvytX

--HG--
extra : rebase_source : 40f4e7dd6aacfb4f267d2f4d217fbf84befb5ebf
2018-02-08 15:15:07 -08:00
Daniel Holbert 33d6d2f540 Bug 1267462 part 6: Add FlexItem methods to test whether its inline axis is in container's main vs. cross axis. r=mats
This patch doesn't affect behavior -- it's just adding a new member-var &
accessor with no usages. The next patch in the series will add some usages.

MozReview-Commit-ID: NKBvKnb7Jw

--HG--
extra : rebase_source : aff89907bfef41a8fa3ff076264a2b7a72c36e27
2018-02-08 15:01:09 -08:00
Daniel Holbert c38a815578 Bug 1267462 part 5: Move WritingMode member-var earlier in FlexItem class. r=mats
This patch doesn't affect behavior. It simply reorders a member variable to be
near the beginning of the FlexItem class, so that the next patch in this series
can use that member-variable when initializing another member in the
constructor init list.  (You're only allowed to use earlier member-vars like
this, since member-vars get initialized in order.)

MozReview-Commit-ID: 9v4Dr0Ir6i7

--HG--
extra : rebase_source : ff0ebd63c4a88017e8211a77049e79469b4e9858
2018-02-08 14:58:47 -08:00
Daniel Holbert 22bbed513f Bug 1267462 part 4: Add more reftests for flex items with text & orthogonal flows (as modified copies of previous patch's final column-oriented test). r=mats
MozReview-Commit-ID: AQ59jsEcUn3

--HG--
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013-ref.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-014-ref.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-014.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013-ref.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-015-ref.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-015.html
extra : rebase_source : 60fcfd1e46ab6c09ffc44336a2538ff4611e304b
2018-02-08 13:01:24 -08:00
Daniel Holbert 52e463ed8f Bug 1267462 part 3: Add more reftests for flex items with text & orthogonal flows (as modified copies of previous patch's test). r=mats
This patch includes two tests with a row-oriented vertical-writing-mode
flex container, and one test with a column-oriented flex container.
(And then the next patch in this series will add some more column-oriented
variants as copies of this patch's last test.)

Note: All of the tests in this patch *already* pass (unlike other tests added
in this bug), so they don't have a 'fails' annotation in reftest.list.

MozReview-Commit-ID: oaMvhjxv16

--HG--
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010-ref.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-011-ref.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-011.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010-ref.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-012-ref.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-012.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010-ref.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013-ref.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-010.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-writing-mode-013.html
extra : rebase_source : f1cdba662ceb617d4b3a6b082f5af5ed7800342d
2018-02-08 13:01:23 -08:00
Daniel Holbert cd11ee7c05 Bug 1267462 part 2: Add a reftest for flex items with text & orthogonal flows. r=mats
MozReview-Commit-ID: FrxV0JlhTRP

--HG--
extra : rebase_source : 15d8b5d271348f135086398c58070a8dd7509d9e
2018-02-08 13:01:23 -08:00
Daniel Holbert f427d43aa8 Bug 1267462 part 1: Add copies of some existing flexbox reftests, now with orthogonal flows / vertical writing modes. r=mats
In nearly all of these cases, the writing-mode tweak isn't supposed to affect the
test's rendering, so I'm reusing the original test's reference case.

The only exception: a few of the copied tests have some "spacer" elements with
`display:inline-block`, which stack horizontally (in the inline axis) in the
original testcase.  In the new copy of the test, I'm dropping that inline-block
styling, so that they continue to stack horizontally (in the vertical writing
mode's block axis) and continue to match the original reference case.

These tests are marked as 'fails' for now, but they'll start passing as of a
later patch in this series.

MozReview-Commit-ID: JLzT61JHudz

--HG--
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-horiz-001.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-horiz-001v.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-vert-001.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-block-vert-001v.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-canvas-horiz-001.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-canvas-horiz-001v.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-canvas-vert-001.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-basic-canvas-vert-001v.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-001.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-001v.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-002.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-002v.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-003.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-003v.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-004.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-004v.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-005.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-005v.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-006.html => layout/reftests/w3c-css/submitted/flexbox/flexbox-intrinsic-ratio-006v.html
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-002b.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-002v.xhtml
rename : layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-003.xhtml => layout/reftests/w3c-css/submitted/flexbox/flexbox-mbp-horiz-003v.xhtml
extra : rebase_source : ccb97cb2adce394b7d2c4e39b6db023c8ecae105
2018-02-08 13:01:23 -08:00
Gerald Squelart 8b9a732348 Bug 1436279 - Remove unneeded 'friend class' statements - r=mattwoodrow
Inner classes already have the same visibility as member function of the outer
class, so there's no need to explicitly make them friends.

MozReview-Commit-ID: 3Aovsj0JO2S

--HG--
extra : rebase_source : 8ba686b3904949147c4584eb949f1e3dd5f0e452
2017-12-13 09:21:14 -06:00
Emilio Cobos Álvarez 1fed0f78f6 Bug 1436240: Make sure to always initialize mMatches to something meaningful. r=xidorn
MozReview-Commit-ID: 1FpAZIzyLOU

--HG--
extra : rebase_source : e1be31ee5162ef11a2068918effa108ec90cd3ed
2018-02-07 03:31:40 +01:00
Dorel Luca 890eb016d9 Merge mozilla-central to autoland. r=merge
--HG--
extra : rebase_source : f28e015c1411d7185cd69a272fea28620af062d9
2018-02-07 12:18:35 +02:00
Dorel Luca aa63d53f0e Merge autoland to mozilla-central. a=merge 2018-02-07 11:55:55 +02:00
Gurzau Raul 9c39f70c0f Backed out 5 changesets (bug 1392391) for frequently failing jsreftests on Android. a=backout
Backed out changeset 50df56a0cebf (bug 1392391)
Backed out changeset 406806a088d5 (bug 1392391)
Backed out changeset 6bd3abc55ea8 (bug 1392391)
Backed out changeset 846d50ea8403 (bug 1392391)
Backed out changeset b9e9374af9a1 (bug 1392391)
2018-02-07 02:20:38 +02:00
Cameron McCormack 73774a4b98 Bug 1435666 - Part 4: Remove nsIDOMXPathEvaluator. r=bz
MozReview-Commit-ID: 2nZmbJ9mdwI

--HG--
extra : rebase_source : 3acc54ac7726de2ff00a9b7ddadfcb7e28f573eb
2018-02-05 13:05:45 +08:00
Kartikaya Gupta 999b2376cb Bug 1436084 - Update webrender reftest expectations in w3c-css received reftests. r=xidorn
In some cases there are imported tests where the same test is compared against
two reference pages, once as == and once as !=. Webrender is currently failing
the == tests but not the != tests. However there is no way to annotate this
precisely in the failures.list file, so we had previously marked the tests
as random-if. This patch modifies the import-tests.py to recognize a ref:<file>
argument in failures.list to match the reference file as well, and uses it to
clarify the webrender reftest expectations.

MozReview-Commit-ID: 6nAXoCQDreI

--HG--
extra : rebase_source : 93633ed6f62ccfb4b28ebed34943781350c4c831
2018-02-06 11:52:39 -05:00
Kartikaya Gupta 4751a8b16b Bug 1436084 - Mark some reftests as passing with webrender. r=jrmuizel
MozReview-Commit-ID: IWXBqj0Vqbz

--HG--
extra : rebase_source : 182709310a15157d9533cc2429198f93599a95ed
2018-02-06 11:49:33 -05:00
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Gurzau Raul 476c3b3a55 Merge inbound to mozilla-central. a=merge 2018-02-06 23:53:56 +02:00
Kartikaya Gupta a884a297d8 Bug 1434723 - Mark reftest failures exposed by WR PR 2369. r=jrmuizel
MozReview-Commit-ID: 8iNiThVViNY

--HG--
extra : rebase_source : 20b11de78b53563bf7493a358c13f41799d745a2
2018-02-06 10:32:40 -05:00
Alexis Beingessner 8acb1d6f40 Bug 1362115 - turn on blob-images by default with webrender. r=kats
MozReview-Commit-ID: GH4Ukj01rJ5

--HG--
extra : rebase_source : 96b48cc87d31ee75b069d08f72fec259d87b957f
2018-02-01 14:00:26 -05:00
Alexis Beingessner 675dfab481 Bug 1362115 - don't emit a blob-image for contentless videos. r=kats
MozReview-Commit-ID: G7TONKvMiXn

--HG--
extra : rebase_source : 21c7038f027f2e776e540036372fa8b2269eba36
2018-02-01 13:59:10 -05:00
Brindusan Cristian 2bbe26a9d7 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-06 12:05:49 +02:00
Narcis Beleuzu 84cea84b12 Merge inbound to mozilla-central. a=merge 2018-02-06 11:54:42 +02:00
Hiroyuki Ikezoe 8e43e1396e Bug 1435634 - Stop refresh driver's timer and bail out if either the prescontext or the presshell was destroyed in resize event callbacks. r=tnikkel
MozReview-Commit-ID: 5Nn66g71SxG

--HG--
extra : rebase_source : dbaa6410e3493d6666eec900e2499232fea550fa
2018-02-05 06:24:16 +09:00
Narcis Beleuzu b0e8772dcd Backed out 6 changesets (bug 1237454) for bc failures on /browser_toolbariconcolor_restyles.js. CLOSED TREE
Backed out changeset f8d771835fd2 (bug 1237454)
Backed out changeset 2dbbfc331bdf (bug 1237454)
Backed out changeset c481f409feaa (bug 1237454)
Backed out changeset 0b9872865f0e (bug 1237454)
Backed out changeset 43ca55e7c93b (bug 1237454)
Backed out changeset 027b0c65d944 (bug 1237454)
2018-02-06 11:19:56 +02:00
Hiroyuki Ikezoe 835e2883de 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 : ceb95bdce1042cbfc16751d6d023fc6feee5845e
2018-02-06 08:43:53 +09:00
Hiroyuki Ikezoe 0de04971ef 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 : 1cd03a78a522b1a6965ba73ebf002ddacb0ab4f2
2018-02-06 08:43:52 +09:00
Andrew Halberstadt c7970b0b86 Bug 1392391 - [reftest] Perform chunking with manifestparser, r=jmaher
This replaces reftest's homebrewed chunking algorithm with the one that
all the other test harnesses use in manifestparser.

For now Android will continue to use the reftest based algorithm.

MozReview-Commit-ID: AfUBmQpx3Zz

--HG--
extra : rebase_source : cb513d1b3a54ddeb95ce5861d858aad4492de2a6
2018-01-25 17:46:46 -05:00
Andrew Halberstadt 00015fe0a8 Bug 1392391 - [reftest] Pre-parse the manifests in a separate Firefox instance, r=jmaher
Instead of parsing the manifests and running the tests all in one go, this will
spawn an extra Firefox instance at the beginning that does nothing but parse the
manifest and dump them to a file.

This will allow the python harness to load and manipulate the test objects, before
sending them back to the JS harness as a list of tests to run. The main motivation
for this change is to implement run-by-manifest, a mode where we restart the
browser in between every test manifest. But there are other benefits as well, like
sharing the chunking logic used by other harnesses and the ability for the python
harness to stuff arbitrary metadata into the test objects.

For now, Android will continue to parse the manifests and run the tests all in one
go. Converting Android to this new mechanism will be left to a follow-up bug.


MozReview-Commit-ID: AfUBmQpx3Zz

--HG--
extra : rebase_source : 955966c07bb650946c7c0e5706856f028335e850
2018-02-01 14:18:00 -05:00
Andrew Halberstadt 33d2269419 Bug 1392391 - [reftest] Parse manifests from a new ReadTests method, r=jmaher
Currently manifest parsing happens within the StartTests method. This method is
already quite large, and this commit series about to make the logic around
gathering tests a lot more complicated.

This commit pulls the manifest parsing out into a new 'ReadTests' method which
is responsible for retrieving the list of tests (however that may be) and then
calling StartTests.

MozReview-Commit-ID: 6ijOqhNaig

--HG--
extra : rebase_source : 16d4e2debcbe95765c4355b9964f62c7e7a417f1
2018-02-01 16:24:25 -05:00
Andrew Halberstadt d01bc13f7f Bug 1392391 - [reftest] Factor out code for creating nsIUri objects to isolated function, r=jmaher
This is a simple refactor of manifest.jsm.

We'd like to access the test objects from the parsed manifest in python. This
will allow us implement things like runByManifest (to improve intermittent
stability), share the chunking logic used by other harnesses, and much more.

To do this, we need to JSON serialize all of the test objects and dump them
to a file. The python side can then load the file, make modifications, and
send it back to the JS side to run.

The problem is that we turn the test urls into nsIURI objects as soon as they
are parsed, which isn't JSON serializable. This commit is a simple refactor to
delay this from happening. Instead, we will create the urls in reftest.jsm,
after the modified test objects have been loaded from python. This step will
be implemented by the next commit.

MozReview-Commit-ID: 6ijOqhNaig

--HG--
extra : rebase_source : 06acb038a4d3e35b3a4158b81b361a9a0ae54337
2018-02-01 16:22:55 -05:00
Noemi Erli 9b09005df2 Backed out changeset c074e2c4b2ed (bug 1435658) for failing in layout/generic/test/test_bug632379.xul on a CLOSED TREE 2018-02-05 22:39:07 +02:00
Emilio Cobos Álvarez bc21b647ab Bug 1433389: Make input[type=number] pseudo-elements accessible to chrome. r=jwatt
MozReview-Commit-ID: 2ycajPYd3CV
2018-02-05 20:01:33 +01:00
Emilio Cobos Álvarez beaed0f565 Bug 1435214: Optimize @keyframes rule insertions. r=xidorn,hiro
Also add some missing test for the tag name invalidations (bug 1407522) and an
empty stylesheet just for sanity.

MozReview-Commit-ID: AHwhZynLBv
2018-02-05 20:01:32 +01:00
Emilio Cobos Álvarez 7e4baa87cf Bug 1435658: Deal with appearance changes from / to none correctly. r=mats
MozReview-Commit-ID: Fl6VY0rAIiD

--HG--
extra : rebase_source : 0374bb390de1caf69b2561402f956d7bd99a306d
2018-02-05 14:55:31 +01:00
Gerald Squelart 3f1acad94a Bug 1435175 - RDL checker also outputs list of modified items before merge - r=mattwoodrow
MozReview-Commit-ID: 7ElZT9t5zYH

--HG--
extra : rebase_source : 69d7759533badb2d7b9f61f57fcabed5c32e1557
2018-02-02 18:18:59 +11:00
Emilio Cobos Álvarez 90d00621b5 Bug 1435637: Minimally tidy nsRefreshDriver. r=hiro
All the arrays we're switching to ranged loops can't mutate during the loop
since are locals or not referenced from other places.

MozReview-Commit-ID: C2N73HMMeNW

--HG--
extra : rebase_source : 428dd2805cb58b3ac5fcddb549b960f72615bf6f
2018-02-04 23:15:53 +01:00
Emilio Cobos Álvarez 18b096e7f6 Bug 1435636: Don't make the dispatch of resize events look into the observer list twice unnecessarily. r=hiro
Just something I noticed while sneaking into bug 1435634.

RemoveElement returns whether the element was actually removed, so no need to
use Contains to bail out.

MozReview-Commit-ID: FryHBV66yRV
2018-02-04 23:13:43 +01:00
Emilio Cobos Álvarez 200a23f376 Bug 1435015: Unbreak display: contents on unknown MathML elements. r=mats
Bug 1427292 broke display: contents on non-special MathML elements.

Just for reference, I've manually audited calls to nsIFrame::GetContent() in
MathML and turns out that MathML is pretty well-behaved in that sense (it
inspects the frame tree, then gets the content), so it should work fine with
display: contents / ShadowDOM.

Only exception to that is[1], but that one seems harmless.

[1]: https://searchfox.org/mozilla-central/rev/eeb7190f9ad6f1a846cd6df09986325b3f2c3117/layout/mathml/nsMathMLmactionFrame.cpp#301

So we can enable or implement when the CSSWG pleases.

MozReview-Commit-ID: 8N6kiGyjE4i

--HG--
extra : rebase_source : a80197e39b20bc6ab385a3d0b90628bc4ad81d92
2018-02-02 20:52:54 +01:00
Noemi Erli 3d09e55d55 Merge inbound to mozilla-central. a=merge 2018-02-03 11:52:03 +02:00
Masayuki Nakano dfd6ae6c4b Bug 1435180 - Make existing tests aware of strict keypress event dispatch r=smaug
We'll stop dispatching keypress events on web contents for conforming to spec of
UI Events.  Some existing tests assumes that keypress events are fired even
when non-printable keys are pressed.

This patch makes them check the pref,
"dom.keyboardevent.keypress.dispatch_non_printable_keys_only_system_group_in_content"
and only listen to keydown event instead of keypress even if the pref is true
and expected key event is not a printable key press.

MozReview-Commit-ID: 6bKoK7dsB0l

--HG--
extra : rebase_source : b3705b0814d5690e00208d0d3315f09f886c6f26
2018-02-02 18:10:22 +09:00
Emilio Cobos Álvarez 10088e0148 Bug 1435366: Move <svg:text> frame construction data getter to the generic path. r=mats
It's the last thing we check before looking into the array, modulo other two
tags, so there should be no need for something more fancy.

MozReview-Commit-ID: 4Wi1fe7jBlN

--HG--
extra : rebase_source : c13394a0b057e28cd922f1d15cb8b149a4204292
2018-02-02 20:58:21 +01:00
Andreea Pavel 9cd5dfd3a9 Backed out 5 changesets (bug 1418930) for failing web platform tests at /service-workers/service-worker/fetch-request-css-images.https.html on a CLOSED TREE
Backed out changeset c0f673033e66 (bug 1418930)
Backed out changeset b39948ba905b (bug 1418930)
Backed out changeset 8008a54aba9a (bug 1418930)
Backed out changeset 105c81284dba (bug 1418930)
Backed out changeset 27eb8c7f8025 (bug 1418930)
2018-02-03 00:18:27 +02:00
Andrew Halberstadt f354075c7a Bug 1434430 - [flake8] Fix blank 'except' statements r=rwood
This is a new issue that gets linted with flake8 3.5.0. Basically you should
never use a blank except: statement.

This will catch all exceptions, including KeyboardInterrupt and SystemExit
(which is likely not intended). If a catch all is needed, use
`except: Exception`.  If you *really* mean to also catch KeyboardInterrupt et
al, use `except: BaseException`.

Of course, being specific is often better than a catch all.

MozReview-Commit-ID: FKx80MLO4RN

--HG--
extra : rebase_source : 7c74a7d0d81f2c984b47aff3a0ee3448b791177b
2018-01-31 14:32:08 -05:00
Brad Werth bd10ac8a0f Bug 1418930 Part 5: Add a test of shape-outside with and without a CORS violation. r=emilio
MozReview-Commit-ID: KI4itQ1ORYJ

--HG--
extra : rebase_source : bd32a21627d49eb487bba2b45cf3bfd0ffc945be
2018-01-31 17:02:14 -05:00
Brad Werth 5d511edc2c Bug 1418930 Part 4: Update nsStyleStruct::FinishStyle to set CORS mode for shape-outside images. r=emilio
MozReview-Commit-ID: 7MXJHE2vidS

--HG--
extra : rebase_source : 331488cd5942ec86bf5d213f77ac1b6066180e47
2018-01-31 16:08:01 -05:00
Brad Werth ce53bc893d Bug 1418930 Part 3: Update css::ImageValue to carry a parameter that indicates anonymous CORS headers should be used during loading. r=emilio
MozReview-Commit-ID: JJ5lZRwS6Be

--HG--
extra : rebase_source : 42ee37760478583f7854ddd4a4e2ffa360449846
2018-01-29 13:55:38 -05:00
Brad Werth f168a6a02d Bug 1418930 Part 2: Extend ImageLoader with a parameter to add anonymous CORS headers. r=bz,emilio
MozReview-Commit-ID: LobEEXmuNZ2

--HG--
extra : rebase_source : de661d5789162b0be3202c2a1b03d0515e5de01f
2018-01-25 14:14:13 -08:00
Brian Birtles 99dc61757b Bug 1207734 - Re-enable disabled transform property tests; r=emilio
--HG--
extra : rebase_source : e840a853d33e56a2a64385abb42d2867b1f65621
2018-02-02 08:22:54 -05:00
Boris Zbarsky 13dda50f75 Bug 1435138 part 4. Remove nsIDOMSVGLength. r=qdot
MozReview-Commit-ID: HwKT9Bdby6F
2018-02-02 08:21:33 -05:00
Boris Zbarsky 3afbe4d699 Bug 1435138 part 3. Remove nsIDOMSVGLength's SVG_LENGTHTYPE_* constants. r=qdot
MozReview-Commit-ID: GvzWbe6cr5r
2018-02-02 08:21:33 -05:00
Andrew McCreight 589eaa7bb4 Bug 1434952 - Remove signed.applets.codebase_principal_support pref. r=mrbkap
MozReview-Commit-ID: K8nic9kw8gF

--HG--
extra : rebase_source : 2f99d4594c88a4e6f38cbe740af8e10a5a528a81
2018-02-01 12:44:59 -08:00
Gurzau Raul 1315ffda06 Merge inbound to mozilla-central. a=merge 2018-02-02 00:22:39 +02:00
Gurzau Raul 047564ed7a Merge inbound to mozilla-central. a=merge 2018-02-01 23:53:53 +02:00
Gurzau Raul 8c0d0d0d16 Merge autoland to mozilla-central. a=merge 2018-02-01 23:52:41 +02:00
Sebastian Hengst 0d4ebdcd4e Backed out changeset d4582a286d6a (bug 1434765) for breaking build of Catalan language pack due to altered output. a=backout 2018-02-01 23:04:25 +02:00
Florian Quèze 2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Boris Zbarsky 0e718778d9 Bug 1434819 part 9. Remove nsIDOMNodeFilter. r=qdot
MozReview-Commit-ID: JsxGp9HQ2ak
2018-02-01 14:26:13 -05:00
Boris Zbarsky 7a9f022f1a Bug 1434819 part 7. Remove the SHOW_* constants from nsIDOMNodeFilter. r=qdot
MozReview-Commit-ID: 7E2KZkLfbSI
2018-02-01 14:26:12 -05:00
Boris Zbarsky ea872de15a Bug 1434819 part 5. Remove nsIDOMTreeWalker. r=qdot
MozReview-Commit-ID: QmxoxVhppG
2018-02-01 14:26:12 -05:00
Boris Zbarsky d608cdf8ba Bug 1434818. Remove unused return value of FontFaceSet::Add. r=jfkthame
MozReview-Commit-ID: JHOpGZM3Scz
2018-02-01 14:23:34 -05:00
Boris Zbarsky 72cdddcc61 Bug 1434686 part 3. Use IgnoreErrors() outside of dom/. r=mystor
I left some IgnoredErrorResults for now where people warn on failure.  We could
consider adding a WarnOnError() thing or something.

MozReview-Commit-ID: L5ttZ9CGKg0
2018-02-01 14:21:14 -05:00
Csoregi Natalia 486051b718 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-01 20:14:53 +02:00
Emilio Cobos Álvarez c55a15b2ef Bug 1423331: Tests. r=mats
MozReview-Commit-ID: Ay4tUwSH0Iq
2018-02-01 17:23:51 +01:00
Emilio Cobos Álvarez 5e4f6e89ec Bug 1423331: Prevent selection from leaking from blocks. r=mats
MozReview-Commit-ID: EFLXSQ8Zvze
2018-02-01 17:23:49 +01:00
Emilio Cobos Álvarez f85c8218d8 Bug 1434724: Fix computed value serialization of font-feature-settings. r=dholbert
This should make us agree with other browsers re the serialization of
`"vert" 0`, and with servo after https://github.com/servo/servo/pull/19918

Left try running, may need some test adjustments that I'll send for review if
they're non-trivial.

Differential Revision: https://phabricator.services.mozilla.com/D539

MozReview-Commit-ID: LgIPfn4lfrF
2018-02-01 15:48:46 +01:00
Daniel Holbert 3ebdbe2a5b Bug 1434658: Simplify getComputedStyle behavior for "min-{width,height}:auto" to *always* return "auto" for flex/grid items, per CSSWG resolution. r=bradwerth
This change is in response to this CSSWG resolution:
"RESOLVED: compute min-width/min-height: auto to auto"
https://github.com/w3c/csswg-drafts/issues/2230#issuecomment-362009042
...which was later clarified as only being applicable to grid/flex items (in
both axes). Other layout modes may get further min-width/min-height
clarification, but for now we'll leave that behavior the same (returning 0 from
getComputedStyle).

MozReview-Commit-ID: 2wLYDAOj9I6

--HG--
extra : rebase_source : c5f384ef5ae906e20a6e10da20c39b0a5eb226eb
2018-01-31 13:45:11 -05:00
Jet Villegas 30f3f2231b Bug 1426869 - "td.contenteditable=true focus breaks text selection" [r=masayuki]
--HG--
extra : rebase_source : d2c2091bf4eba8420951b16d2be4f5d66e9c491f
2018-01-09 08:00:00 +02:00
Emilio Cobos Álvarez 9a18395a1d Bug 1434474: There's no need to rebuild font / counter styles / font feature values off a runnable. r=bholley
Everything that needs them up-to-date will call flush appropriately, there
should be no need to do it manually.

This way we coalesce all the stylist updates until the next style flush in the
best case, or until one of the consumers actually needs them.

MozReview-Commit-ID: BVsxXxhtcKL

--HG--
extra : rebase_source : a41c14689fdcdb30935e16bdb0e757e7140e88e7
2018-01-31 11:12:36 +01:00
Tom Tromey 3b8e63c66a Bug 1255369 - fix getCSSValuesForProperty for line-style-type; r=xidorn
This fixes InspectorUtils::getCSSValuesForProperty to return the
correct values for line-style-type.

MozReview-Commit-ID: 72Tes6y15j8

--HG--
extra : rebase_source : fa893f59cafc433f554353cf42d0f9495cdd5b23
2018-01-31 08:50:27 -07:00
Mike Hommey 355ab37a8f Bug 1434765 - Properly reject invalid variables in #if{,n}def. r=froydnj
The invalid variable test for #if{,n}def was only checking that the
first character in the variable was alphanumeric or underscore, not
the other characters.

More generally, preprocessor instructions were also cut out such that
whitespaces before and after arguments were part of the arguments.

There's one place in layout/tools/reftest/manifest.jsm that was using
a broken pattern, making the test never true, which, once fixed, unveils
broken tests, so the branch that was never used is removed.

--HG--
extra : rebase_source : d1fe8a299203a29c0906ff99054c326acd135000
2018-02-01 10:40:59 +09:00
Adrian Wielgosik 639df9d521 Bug 1353329 - Remove remains of SecureElement API. r=bz
MozReview-Commit-ID: 5D1VriUJ8UP

--HG--
extra : rebase_source : 894a6e151142726e9cc9f6d417bec36831aa1129
2018-01-31 22:07:30 +01:00
Cameron McCormack 2cea1ba7c1 Bug 1430014 - Part 6: #ifdef out a bit more animation-related code. r=hiro
MozReview-Commit-ID: B9TaVJFak26

--HG--
extra : source : 820eed2682b6a6cda892d091ee037ff1eeacd69f
2018-02-01 15:04:04 +11:00
Cameron McCormack d02e54b79b Bug 1430014 - Part 5: Stop building old style system classes when MOZ_OLD_STYLE is not defined. r=xidorn
MozReview-Commit-ID: CIHyPdF7Exl

--HG--
extra : source : 78a2fc781eead47af3923efcde58569c5d882ab1
2018-02-01 15:04:04 +11:00
Cameron McCormack cc7db5c40c Bug 1430014 - Part 4: #ifdef out unnecessary code when the old style system is not built. r=xidorn
MozReview-Commit-ID: 1FZ9VzjcPzN

--HG--
extra : source : de22d220635f8c059834b76f769d5215ab1a8b5b
2018-02-01 15:04:04 +11:00
Cameron McCormack 98b3e38412 Bug 1430014 - Part 3: Skip failing/unnecessary tests when the old style system is not present. r=xidorn
MozReview-Commit-ID: 9xuJXkI4W7E

--HG--
extra : source : 82af008f38f4316357c323c9c5e2ea1fc4ee8e80
2018-02-01 15:04:04 +11:00
Cameron McCormack eab4d90b3d Bug 1430014 - Part 2: Adjust test assertion expectations. r=xidorn
We no longer assert here when stylo-chrome is enabled.

MozReview-Commit-ID: CbVItBV2Q5V

--HG--
extra : source : 62d4361658b91c2825fae256913016495a9289f6
2018-02-01 15:04:04 +11:00
Cameron McCormack 24cbcff6fa Bug 1430014 - Part 1: Add --enable-stylo=only configure option and MOZ_OLD_STYLE define. r=glandium,xidorn
MozReview-Commit-ID: FsypJFV1sxS

--HG--
extra : source : 3043d52e91a1768dddf603a8a6fd992a8fc89ebf
2018-02-01 15:04:04 +11:00
Botond Ballo 32bac742dd Bug 1434747 - Add a reftest for async-scrolling of fixed content inside a CSS filter. r=kats
The test only passes with WebRender enabled. Passing without WebRender
would require implementing CSS filters in the Gecko compositor.

MozReview-Commit-ID: HPgxxuj5iJl

--HG--
extra : rebase_source : 8afbc717d8e086f7a407eb5f0090f30d62d9638b
2018-01-29 18:23:14 -05:00
Emilio Cobos Álvarez 3935d1f0d4 Bug 1207734: followup: Temporarily avoid some tests for this bug. r=me
On a CLOSED TREE, since Android is barfing at the prefs key in the manifest:

  runByManifest mode must be enabled to set the `prefs` key

MozReview-Commit-ID: 2oK3CG69s9E
2018-02-01 04:06:45 +01:00
Brian Birtles 60a2ffc2a6 Bug 1207734 - Part 9.i. Replace tabs with spaces in bug_1112014.html. r=dholbert
MozReview-Commit-ID: 8k9qD9A3BS0

--HG--
extra : rebase_source : 9b5b22a495e111a1f9f3057deb19813ffb8dbdc1
extra : source : 7047a154549089c85acedc75cd764d110bf95776
2018-01-30 14:02:32 -05:00
cku a3c66ee73c Bug 1207734 - Part 9.f. Add specified value serialization test cases for individual transform. r=emilio
MozReview-Commit-ID: 56DTIuTXs95

--HG--
extra : rebase_source : 81d01af0ec3d2e05e24e1f583e4f539a177b9fb0
extra : source : 4b19a5c39c37863ad0682bf2efe7aaa80dc6f484
2018-01-10 15:04:00 +08:00
Brian Birtles 2de6e94551 Bug 1207734 - Part 9.e. Add transition test cases. r=emilio
Going forward we should add the more detailed tests to web-platform-tests but
for now if we don't add tests here test_transitions_for_property.html will
complain that a property that we think is not transitionable, does in fact
transition.

MozReview-Commit-ID: DJwVR50U36K

--HG--
extra : rebase_source : 39510dde2c602cfbb13bd05ccd8402fe5c3be5ec
extra : source : 2a0fbd39ee548e2023aade2da993a9c65bf784b6
2018-01-25 14:36:50 +09:00
cku 50086d389f Bug 1207734 - Part 9.b. Add basic reftests for individual transform. r=emilio
MozReview-Commit-ID: 7aFlvn4Inpb

--HG--
extra : rebase_source : ab77bb7cf55b2929e78785e7bedb222dd302bb45
extra : source : c454215cf36112a5e01618b7f118d7e0103c7d17
2017-12-12 22:57:56 +08:00
cku d1dd0fa8a5 Bug 1207734 - Part 9.a. Update gCSSProperties for the properties of individual transforms. r=emilio
MozReview-Commit-ID: GiQCo18M5da

--HG--
extra : rebase_source : c00330e1893625e2f9e3ee28c77550d76bdbeac0
extra : source : f7f5499cde9e8120cd73f60f9a274634045308f4
2018-01-25 09:32:49 +09:00
Hiroyuki Ikezoe 3382c6bc43 Bug 1430380 - Wait for the next tick after sizemodechange event to apply media feature changes. r=xidorn
On Linux, media feature changes is processed after dispatching sizemodechange
event, so we need to wait for the next tick before checking style changes that
caused by the media feature changes.

MozReview-Commit-ID: 2kb0kToXA6e

--HG--
extra : rebase_source : 640739b49c18b410e8610d801d3ea2795380254e
2018-02-01 10:20:51 +09:00
Emilio Cobos Álvarez 69ef3f633a Bug 1434314: Bring back the relevant tests. r=me
MozReview-Commit-ID: 5inY1MEp2Nl
2018-02-01 02:22:56 +01:00
Cosmin Sabou cbddf62d14 Merge inbound to mozilla-central. a=merge 2018-02-01 01:14:44 +02:00
Boris Zbarsky 65bf16222e Bug 1434399 part 19. Remove nsIXULDocument. r=mystor
MozReview-Commit-ID: 9jQu4sjOhb2
2018-01-31 14:49:29 -05:00
Boris Zbarsky 8d91b52952 Bug 1434399 part 13. Remove C++ uses of nsIDOMXULDocument. r=mystor
MozReview-Commit-ID: KSsXLra5DQk
2018-01-31 14:49:28 -05:00
Boris Zbarsky ee62abf47b Bug 1434399 part 5. Remove nsIDOMXULDocument's commandDispatcher attribute. r=mystor
MozReview-Commit-ID: BjRVr3ScuK5
2018-01-31 14:49:27 -05:00
Boris Zbarsky 46a787b972 Bug 1434399 part 3. Remove nsIDOMXULDocument's popupRangeParent/popupRangeOffset attributes. r=mystor
MozReview-Commit-ID: dU65u8Hx2V
2018-01-31 14:49:27 -05:00
Boris Zbarsky 99c47399c4 Bug 1434399 part 1. Switch to nsINode for the popup node on windowroot. r=mystor
MozReview-Commit-ID: HyiHElDnmSH
2018-01-31 14:49:26 -05:00
Cosmin Sabou 94617f91cf Backed out 19 changesets (bug 1434399) for build bustages on nsXULPopupManager.cpp on a CLOSED TREE
Backed out changeset 499f6dffd9cb (bug 1434399)
Backed out changeset 018290612415 (bug 1434399)
Backed out changeset f4c3179f8e59 (bug 1434399)
Backed out changeset f3ce2826b857 (bug 1434399)
Backed out changeset 6d2391af01dd (bug 1434399)
Backed out changeset dc98ed8c609a (bug 1434399)
Backed out changeset 8eaa395d6200 (bug 1434399)
Backed out changeset 19b18f4a53be (bug 1434399)
Backed out changeset 8ff378a6e96a (bug 1434399)
Backed out changeset 60fe73be1a26 (bug 1434399)
Backed out changeset faefb2751fdc (bug 1434399)
Backed out changeset 55cdf8b3a959 (bug 1434399)
Backed out changeset b578cc8efb92 (bug 1434399)
Backed out changeset 54cc4cb2fca1 (bug 1434399)
Backed out changeset f5343ef34d6c (bug 1434399)
Backed out changeset 8fb30e066cbd (bug 1434399)
Backed out changeset 21341b656b0f (bug 1434399)
Backed out changeset fab1f8b087a2 (bug 1434399)
Backed out changeset 55250a54852a (bug 1434399)
2018-01-31 22:45:26 +02:00
Boris Zbarsky 928d0d4fa7 Bug 1434318 part 13. Remove nsIDOMDocument::CreateEvent. r=mystor
MozReview-Commit-ID: EaUjTLeaQ0n
2018-01-31 15:18:11 -05:00
Boris Zbarsky d8503e650d Bug 1434318 part 11. Remove nsIDOMDocument's stylesheet set APIs. r=mystor
MozReview-Commit-ID: 9ABdbYKZI6k
2018-01-31 15:18:11 -05:00
Boris Zbarsky f0d195b828 Bug 1434318 part 10. Remove nsIDOMDocument's title attribute. r=mystor
MozReview-Commit-ID: IBToVxx4bSs
2018-01-31 15:18:10 -05:00
Boris Zbarsky c62e23596a Bug 1434318 part 2. Stop using nsIContentViewer::GetDOMDocument in C++. r=mystor
MozReview-Commit-ID: FoMoVgCngGR
2018-01-31 15:18:09 -05:00
Boris Zbarsky 45afd61f33 Bug 1434318 part 1. Make nsIContentViewer's DOMDocument readonly. r=mystor
No one ever assigns to it in JS anyway.

MozReview-Commit-ID: EAoOXSFnwtl
2018-01-31 15:18:09 -05:00
Boris Zbarsky 95e268e32f Bug 1434399 part 19. Remove nsIXULDocument. r=mystor
MozReview-Commit-ID: 9jQu4sjOhb2
2018-01-31 14:49:29 -05:00
Boris Zbarsky 467ed0721d Bug 1434399 part 13. Remove C++ uses of nsIDOMXULDocument. r=mystor
MozReview-Commit-ID: KSsXLra5DQk
2018-01-31 14:49:28 -05:00
Boris Zbarsky 493dd48468 Bug 1434399 part 5. Remove nsIDOMXULDocument's commandDispatcher attribute. r=mystor
MozReview-Commit-ID: BjRVr3ScuK5
2018-01-31 14:49:27 -05:00
Boris Zbarsky 645b3296c3 Bug 1434399 part 3. Remove nsIDOMXULDocument's popupRangeParent/popupRangeOffset attributes. r=mystor
MozReview-Commit-ID: dU65u8Hx2V
2018-01-31 14:49:27 -05:00
Boris Zbarsky 9fe358b3cc Bug 1434399 part 1. Switch to nsINode for the popup node on windowroot. r=mystor
MozReview-Commit-ID: HyiHElDnmSH
2018-01-31 14:49:26 -05:00
Andreea Pavel f41017f5cd Merge inbound to mozilla-central. a=merge 2018-01-31 19:38:21 +02:00
Bogdan Tara 5c052cc871 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-01-31 12:10:31 +02:00
Bogdan Tara 1a6614b8b5 Merge inbound to mozilla-central. a=merge 2018-01-31 12:00:14 +02:00
Miko Mynttinen eeba6c855d Bug 1431209 - Part 3: Clear mWindowOpaqueRegion before building a display list r=mattwoodrow
MozReview-Commit-ID: 2GFsg7WByGr

--HG--
extra : rebase_source : 0c36eaba904a5f5b4457d6e755181f572a04d972
2018-01-25 14:27:45 +01:00
Miko Mynttinen d3cbadaa16 Bug 1431209 - Part 2: Use WeakFrameRegion for mWindowExcludeGlassRegion r=mattwoodrow
MozReview-Commit-ID: 10ftH0PfoMe

--HG--
extra : rebase_source : 8f7a3332398a19f59832adf4dec7c2ec9b704d68
2018-01-25 14:19:10 +01:00
Miko Mynttinen 226e3d7c8c Bug 1431209 - Part 1: Add WeakFrameRegion and use it for WindowDraggingRegions r=mattwoodrow
MozReview-Commit-ID: JxwxemwY20p

--HG--
extra : rebase_source : b0703ea8ba3e411d728e3cf9086cebddb299ed17
2018-01-25 14:26:30 +01:00
Miko Mynttinen 47275f45e3 Bug 1434306 - Improve ContainerState::NewPaintedLayerData r=mattwoodrow
MozReview-Commit-ID: AZwDlz4l0k5

--HG--
extra : rebase_source : 5110f478a62a32eefc97f99f8c2d7f8ce97b977a
2018-01-30 17:06:36 +01:00
cku 9d27bbd0e6 Bug 1207734 - Part 5. Implement the getComputedStyle API for individual transform. r=birtles
MozReview-Commit-ID: 3w1kA6VCXsg
(grafted from ee81993c07a30fe5b8788d2ce6707967eb0a832a)

--HG--
extra : source : ee81993c07a30fe5b8788d2ce6707967eb0a832a
2017-12-19 14:33:09 +08:00
cku af86c724c9 Bug 1207734 - Part 4.c. Temporarily disable async-transform for individual-transform. r=birtles
Since we do not support async-transform for individual-transform yet.

MozReview-Commit-ID: gfOzHpjOnQ
(grafted from dd508458f70d5473256a4bfe5a2f6bc665bbac9d)

--HG--
extra : source : dd508458f70d5473256a4bfe5a2f6bc665bbac9d
2018-01-05 14:45:05 +08:00
cku 3e93e3d1ac Bug 1207734 - Part 4.b. Use the final combined transform in the nsDisplayTransform. r=birtles
MozReview-Commit-ID: CDlvzkcae0g
(grafted from 6f39ac3e180cdb1706e12f7a662cac3ac1c369d3)

--HG--
extra : source : 6f39ac3e180cdb1706e12f7a662cac3ac1c369d3
2017-12-13 01:21:41 +08:00
cku 6861051c1f Bug 1207734 - Part 4.a. Store the final combined transform in nsStyleDisplay::mCombinedTransform. r=birtles
MozReview-Commit-ID: FsuaMoclnL8
(grafted from 793e73f61ee1d0035b3d9d881df4eb784da3c4e9)

--HG--
extra : source : 793e73f61ee1d0035b3d9d881df4eb784da3c4e9
2018-01-24 16:22:46 +09:00
Brian Birtles f86be3459f Bug 1207734 - Part 3.b. Add rotate/translate/scale to InspectorUtils::CssPropertySupportsType; r=emilio
MozReview-Commit-ID: AURf7fY3pyu
(grafted from 7f89dd1fa3aa276bfa49b12cdc0df950f9963406)

--HG--
extra : source : 7f89dd1fa3aa276bfa49b12cdc0df950f9963406
2018-01-25 09:18:44 +09:00
Bobby Holley acaeadbd5b Bug 1418161 - Followup fix for fuzz build bustage. r=me
MozReview-Commit-ID: CSvU4I4qlsb
2018-01-30 14:47:33 -08:00
arthur.iakab c4dd80eca3 Merge mozilla-central to autoland 2018-01-31 00:41:58 +02:00
Sebastian Hengst 732cb1d98b merge mozilla-inbound to mozilla-central. r=merge a=merge 2018-01-31 00:22:27 +02:00
Bobby Holley 0babee3ba1 Bug 1418161 - Hoist IsInServoTraversal into ServoUtils. r=emilio
This will allow us to invoke it from nsAttrValueInlines.h, which can't
include ServoStyleSet.h due to circular dependencies.

MozReview-Commit-ID: BgC7ExyWRn7
2018-01-30 14:11:03 -08:00
Boris Zbarsky a5927e6ebd Bug 1428610 part 8. Remove unnecessary Item() method. r=emilio
MozReview-Commit-ID: 6MQXVA0toiG
2018-01-30 14:48:27 -05:00
Boris Zbarsky 4c01bdc27f Bug 1428610 part 7. Make the nsICSSDeclaration length API nicer. r=emilio
MozReview-Commit-ID: 2gs8npBJFJY
2018-01-30 14:48:27 -05:00
Boris Zbarsky c49370b74a Bug 1428610 part 6. Give nsICSSDeclaration::GetPropertyPriority a nicer signature. r=emilio
MozReview-Commit-ID: 4H2zADwdo5L
2018-01-30 14:48:27 -05:00
Boris Zbarsky 4278814e5c Bug 1428610 part 5. Make nsICSSDeclaration::Get/SetCSSText have nicer signatures. r=emilio
MozReview-Commit-ID: B25qvxKj9CW
2018-01-30 14:48:26 -05:00
Boris Zbarsky 59d4896eb6 Bug 1428610 part 4. Move the nsCSSPropertyID overload of nsICSSDeclaration::SetPropertyValue to nsDOMCSSDeclaration. r=emilio
MozReview-Commit-ID: 8BzCHahJjwv
2018-01-30 14:48:26 -05:00
Boris Zbarsky 335a24f297 Bug 1428610 part 3. Move the nsCSSPropertyID overload of nsICSSDeclaration::GetPropertyValue down to nsDOMCSSDeclaration. r=emilio
MozReview-Commit-ID: FHrkptqa2hZ
2018-01-30 14:48:26 -05:00
Boris Zbarsky eb99a6d933 Bug 1428610 part 1. Devirtualize nsICSSDeclaration::GetDocGroup. r=emilio
MozReview-Commit-ID: 7OGRkYTjTSQ
2018-01-30 14:48:26 -05:00
Boris Zbarsky 1d5c2e332a Bug 1434273. Make nsGenConImageContent's inheritance match the way it's used. r=mccr8
MozReview-Commit-ID: AYL4iZkMJiH
2018-01-30 14:48:26 -05:00
Kris Maglione 918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Kartikaya Gupta 938ef44438 Bug 1422393 - Add reftest. r=mstange
MozReview-Commit-ID: LwNQqnP9r8j

--HG--
extra : rebase_source : 1981685a91e871e608fdb76040f790da21aa3e8d
2018-01-30 13:34:03 -05:00
Csoregi Natalia 1d557a2997 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-01-30 18:24:05 +02:00
Csoregi Natalia c56f656feb Merge inbound to mozilla-central. a=merge 2018-01-30 18:18:04 +02:00
Emilio Cobos Álvarez 1528ebee1c Backout changeset 5ca278d8c1af (Bug 1433671) for not handling all callers in all platforms. r=backout
This reverts commit 795018bb21eb9fa906128d0a15cf773643878585.
2018-01-30 12:17:04 +01:00
Emilio Cobos Álvarez b0b4e4a39a Bug 1433671: Add MOZ_CAN_RUN_SCRIPT annotations to AccessibleCaret. r=bz
MozReview-Commit-ID: Js0CF7WQM73
2018-01-30 11:50:35 +01:00
Emilio Cobos Álvarez 9af8f870d0 Bug 1433671: Make AccessibleCaretManager flushes a bit more sound. r=TYLin
The accessible caret manager is owned by the event hub, that is owned by the
shell.

All the callers of methods that call FlushLayout on the AccessibleCaretManager
should hold an external reference to the event hub.

Flushing pending notifications can run arbitrary script, that can call Destroy()
on the pres shell (and thus tear down the accessible caret event hub, and the
manager with him).

I don't know why before my change this wasn't crashing badly, but the code as it
was just doesn't look sound to me at all either (maybe I'm misunderstanding
something and I should just revert that patch and give up on having nice
invariants during our flushes..., but I don't think it's the case).

This also adds some sanity-checking that we don't die under our flush.

MozReview-Commit-ID: 4s0UT0fD3TI
2018-01-30 11:50:32 +01:00
Jonathan Kew 2a3cf53f91 Bug 1426146 - patch 2 - Support the paint-order property for HTML text (in addition to SVG); currently preffed-off by default. r=jwatt 2018-01-30 14:41:51 +00:00
Gurzau Raul afe10a4af5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-01-30 12:12:34 +02:00
Emilio Cobos Álvarez 75e0e25aeb Bug 1434215: Simplify some ResistFingerprinting callers in nsMediaFeatures. r=xidorn
The docshell version just redirects to the document one, so no need to
ping-pong.

MozReview-Commit-ID: AggEoLubCIF
2018-01-30 11:05:32 +01:00
Gurzau Raul c380dfe905 Merge inbound to mozilla-central. a=merge 2018-01-30 12:01:49 +02:00
Jonathan Kew 8ab35c14ad Bug 1280162 - patch 3 - Testcase for layout inspector API to examine font features. r=dholbert 2018-01-30 09:57:39 +00:00
Jonathan Kew 3b1dc9e5ec Bug 1280162 - patch 2 - Add a getFeatures() method to InspectorFontFace to expose the OpenType features supported by a font. r=dholbert,bz 2018-01-30 09:57:39 +00:00
Phil Ringnalda 85431794dc Backed out 7 changesets (bug 1429932) for extremely frequent QuantumRender reftest failures
Backed out changeset b0ac71407500 (bug 1429932)
Backed out changeset 469ceaefd7a4 (bug 1429932)
Backed out changeset 2f801e78f798 (bug 1429932)
Backed out changeset 72852fdf476c (bug 1429932)
Backed out changeset 09e5e25d48ee (bug 1429932)
Backed out changeset bb1394cba514 (bug 1429932)
Backed out changeset 65b8996eb50c (bug 1429932)
2018-01-29 23:43:27 -08:00
Boris Zbarsky 7c392f077e Bug 1418085 part 6. Remove nsIDOMHTMLElement. r=mystor
MozReview-Commit-ID: 5QUyFeAQYZQ
2018-01-30 00:25:36 -05:00
Hiroyuki Ikezoe 14c14a8057 Bug 1433019 - Dispatch scroll events before dispatching animation events. r=botond,mstange
See 7.6. in the section '8.1.4.2 Processing model';
https://html.spec.whatwg.org/multipage/webappapis.html#processing-model-8

Note that this dispatching scroll events should be done after we process
WillRefresh() for FlushType::Style observers since main-thread scroll
animations is one of the FlushType::Style observers, that means it affects
scroll events.

Also test_scroll_event_ordering.html was modified to check scroll events happen
before requestAnimationFrame callbacks.

MozReview-Commit-ID: LuV157XoRkJ

--HG--
extra : rebase_source : a22424c248dcd4a3ec0aad8e71b75306c8f7e487
2018-01-30 08:22:47 +09:00
Hiroyuki Ikezoe 4d9188d86d Bug 1433846 - Drop nsComputedDOMStyle::GetPresShellForContent(), use nsContentUtils::GetPresShellForContent(). r=xidorn
MozReview-Commit-ID: JcpEpqP32Yi

--HG--
extra : rebase_source : dc3649c882f7edd36f9dbc3463d186517b18bdc1
2018-01-29 14:19:25 +09:00
Cosmin Sabou 37bb870512 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-01-30 00:47:39 +02:00
Boris Zbarsky 9da3878bc9 Bug 1418076 part 11. Eliminate the nsIDOMHTMLDocument interface. r=mystor
MozReview-Commit-ID: 4lEcUeenbg3
2018-01-26 01:03:25 -05:00