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

11066 Коммитов

Автор SHA1 Сообщение Дата
Matt Woodrow a7baea6b73 Bug 1658815 - Support all texture target types for the cs_scale shader. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D91370
2020-09-25 05:30:29 +00:00
Timothy Nikkel d0caf06032 Bug 1657822. Enable new desktop zooming scrollbar code. r=kats
The mathml reftest pref needs to be added at the same time because the test needs that pref with the new scrollbar code to pass, but it fails with that pref with the old scrollbar code. Since that test uses the minimum scale, which is only valid with overlay scrollbars, it is correct to do so.

Differential Revision: https://phabricator.services.mozilla.com/D91243
2020-09-24 22:09:54 +00:00
Hiroyuki Ikezoe 0ba0667036 Bug 1659227 - Jank if the partial pre-render area is outside of the clip rect regardless of whether the entire element is also outside of the clip rect or not. r=botond
This change regresses partial-prerender-translate-1.html which is a test case
that we don't consider transforms making the entire element outside of the clip
rect as jank (i.e. there is nothign to be composited).  That said, it won't be
a big problem since even if the jank happened on the compositor, then there is
nothing to be painted on the main-thread, moreover with step timing functions
most of animation restyling are going to be skipped on the main-thread. So
the layout.animation.prerender.partial pref for the test case is dropped.

Differential Revision: https://phabricator.services.mozilla.com/D90649
2020-09-23 06:36:27 +00:00
Hiroyuki Ikezoe 4ea0528441 Bug 1659227 - Handle SVG{Inner,Outer}Frame as the clip frame for partial pre-render. r=heycam,botond
In SVG frame tree SVG{Inner,Outer}Frame is normally not scrollable but clips
descendants, thus nsLayoutUtils::GetNearestScrollableFrame is not able to find
the clip/scroll frame.  So in this change, we introduce
GetNearestOverflowClipFrame which is a similar function to
GetNearestScrollableFrame but it also checks whether the frame is SVGInnerFrame
or SVGOuterFrame which is clipping the given nsIFrame during walking up the
frame tree.

In this change we also change the logic to get the clip/scroll frame and the scroll
id as follows;

1) Get the nearest overflow clip frame in the same document
2) Use the root frame if there is no clip frame
3) Then try to find the scroll id if the clip frame is asynchronously scrollable

so that it becomes clearer before.  It's still messy though.

Differential Revision: https://phabricator.services.mozilla.com/D90647
2020-09-23 06:37:31 +00:00
Ting-Yu Lin 1e9812ecfd Bug 1316534 Part 5 - Update flex item's specified / content size suggestion implementation to match the spec. r=dholbert
Spec reference:
https://drafts.csswg.org/css-flexbox-1/#min-size-auto

Differential Revision: https://phabricator.services.mozilla.com/D90454
2020-09-22 21:00:57 +00:00
Cameron McCormack a9b6211496 Bug 1658343 - Propagate intrinsic sizes from SVG documents in embed/object to parent using IPC. r=kmag,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D90055
2020-09-21 02:09:57 +00:00
Kartikaya Gupta 2273097f9e Bug 1664638 - Replace the ScrollPositionUpdate from scrollframe construction with one that has the scroll position. r=tnikkel
In some cases (in this scenario, with a RTL XUL scrollframe), the scrollframe
can have a nonzero scroll position upon construction or reconstruction, without
having executed the scrolling code in ScrollFrameHelper::RestoreState or
ScrollFrameHelper::ScrollToRestoredPosition. In such cases APZ is not properly
notified of the scroll position, and it can get into a state where it is out of
sync with the main thread scroll position (until a subsequent scroll).

To correct this, we replace the ScrollPositionUpdate that is created during
scrollframe construction with a new ScrollPositionUpdate that holds the correct
scroll position, so that APZ is properly notified of the scroll position.

Differential Revision: https://phabricator.services.mozilla.com/D90674
2020-09-19 00:30:22 +00:00
Geoff Brown 1492a7168d Bug 1662894 - Expand fuzzy range for mix-blend-mode-and-filter.svg; r=kats
Update fuzzy range by +1 to avoid frequent intermittent failures in this test.

Differential Revision: https://phabricator.services.mozilla.com/D90507
2020-09-17 10:41:00 +00:00
Hiroyuki Ikezoe 79b4b86322 Bug 1661316 - Use `visibleRect` for partial pre-render check instead of `dirtyRect`. r=mattwoodrow
With RDL the dirty rect might be empty if the target transformed frame is
marked as `mForceDescendIntoIfVisible`.

Differential Revision: https://phabricator.services.mozilla.com/D90497
2020-09-17 00:52:16 +00:00
Timothy Nikkel e0b3d86cc9 Bug 1663537. Use overlay scrollbars in a few reftests. r=kats
All of these reftests end up using a minimum scale with layout/classic scrollbars. (They hit the assert from the patch in bug 1663534.)

Some of them are only written with overlay scrollbars in mind (for example overflow-hidden-region-with-negative-left-positioned-element.html which I looked at in detail).

The change that causes them to fail is the code in nsHTMLScrollFrame::TryLayout that decides if we need scrollbars. Before desktop zooming scrollbars we compared the visual viewport size and the scrolled rect size. With desktop zooming scrollbars we compare the (layout) scrollport and the scrolled rect to determine if we need regular scrollbars and then compare the visual viewport size to the (layout) scrollport to determine if we need scrollbars to scroll the visual viewport inside the scrollport. Then can get different results.

Differential Revision: https://phabricator.services.mozilla.com/D89407
2020-09-10 21:19:34 +00:00
longsonr b516ea3715 Bug 1633038 - Adjust some tests to wait for load event to try to ensure styles are loaded r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D90093
2020-09-14 17:30:06 +00:00
Glenn Watson 48436f197b Bug 1644691 - Update fuzziness for bugs/456219-2.html. r=mattwoodrow
Add an extra pixel of fuzziness for this test - a recent unrelated
change to WR thread timing made this intermittent fail more often.

Differential Revision: https://phabricator.services.mozilla.com/D90053
2020-09-14 00:01:17 +00:00
Lee Salzman 7d6987f54e Bug 1664459 - simplify WebRender radial gradient shader. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D89915
2020-09-13 18:26:32 +00:00
Narcis Beleuzu 51c243ddc3 Backed out changeset a3f95f66b7de (bug 1664459) for reftest failures on border-image-radial-gradient-width.html 2020-09-13 18:43:01 +03:00
Lee Salzman 16183ea20e Bug 1664459 - simplify WebRender radial gradient shader. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D89915
2020-09-13 08:40:22 +00:00
Kartikaya Gupta 80742a3694 Bug 1661903 - Update test expectation to match Chrome and be consistent with other similar scenarios. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D88747
2020-09-12 13:06:22 +00:00
Timothy Nikkel 7af5dd6078 Bug 1663537. Use scrollbar-width: none on some reftests that are not trying to test scrollbars. r=botond
These tests only failed on android, probably because the visual viewport size is different so we get a different result from the scrollbar calculation.

These tests seem to have an inconsistent mix of overflow: hidden and scrollbar-width: none. The desktop zooming scrollbars sometimes create scrollbars for overflow hidden now, so overflow hidden isn't enough, we need scrollbar-width: none.

layout/reftests/transform/compound-1-fail.html is the only file modified here that doesn't have overflow hidden or scrollbar-width: none already. Looking at the test it does not seem to be wanting to be anti-ref because of scrollbars (the transformed item looks different), so this seems to be an improvement (ie we won't pass because only the scrollbar differed).

Differential Revision: https://phabricator.services.mozilla.com/D90008
2020-09-12 06:59:53 +00:00
Frederic Wang 4f44f0d754 Bug 1664467: Remove runtime preferences for legacy MathML lengths. r=emilio
This commit remove the following preferences, which have been
disabled since Firefox 70:
- mathml.nonzero_unitless_lengths.disabled
- mathml.legacy_number_syntax.disabled

These are edge syntaxes for MathML3 lengths that don't align well
with CSS and we haven't received any bug report about it since they
were disabled. Tests are updated to treat attributes using such
values as invalid.

update tests

Differential Revision: https://phabricator.services.mozilla.com/D89920
2020-09-11 19:48:07 +00:00
Oriol Brufau 1a38c1beab Bug 1655581 - [css-grid] Use min-content size for intrinsic maximums resolution. r=mats
By mistake the specification used to say that, for items spanning
multiple tracks, the growth limits of the tracks with an intrinsic max
track sizing function should grow to accommodate the minimum
contribution of the item.

But this was a mistake, because an intrinsic max track sizing function
can only be min-content or max-content. So instead of distributing the
minimum contribution, it should be the min-content contribution.

The spec has been fixed and there is a CSSWG resolution in
https://github.com/w3c/csswg-drafts/issues/4790

This patch fixes the problem by reverting 2b923d48ea7e. The change is
likely web compatible, since it only affects a rare edge case with
'minmax()' where the min sizing function is 'auto' or a fixed value
smaller than the min-content contribution, the max sizing function is
'min-content', and an item whose minimum contribution is forced to be
smaller than the min-content contribution, and spans multiple tracks.

Differential Revision: https://phabricator.services.mozilla.com/D89145
2020-09-11 12:42:07 +00:00
Narcis Beleuzu 34b6fefd99 Backed out changeset 657830ceac83 (bug 1663537) for causing Bug 1664064. CLOSED TREE 2020-09-10 23:42:15 +03:00
Emilio Cobos Álvarez cb5386d0b7 Bug 1658881 - When failing to create a channel and an image request, make sure to set the image blocking status appropriately. r=tnikkel
This is the same status as we do for known no-data protocols here:

  https://searchfox.org/mozilla-central/rev/ac142717cc067d875e83e4b1316f004f6e063a46/dom/base/nsNoDataProtocolContentPolicy.cpp#59

This ensures we treat these two cases the same.

Differential Revision: https://phabricator.services.mozilla.com/D89382
2020-09-09 22:58:29 +00:00
Emilio Cobos Álvarez a3c20c9800 Bug 1662703 - Make appearance: button behave like auto. r=heycam
As per https://github.com/w3c/csswg-drafts/issues/5174.

Differential Revision: https://phabricator.services.mozilla.com/D89119
2020-09-10 08:58:09 +00:00
Razvan Maries f0ac3ad62a Backed out changeset baab244deeb0 (bug 1662703) for perma failures on 482681.xhtml. CLOSED TREE 2020-09-10 04:50:23 +03:00
Emilio Cobos Álvarez af8bc3472b Bug 1662703 - Make appearance: button behave like auto. r=heycam
As per https://github.com/w3c/csswg-drafts/issues/5174.

Differential Revision: https://phabricator.services.mozilla.com/D89119
2020-09-08 23:03:58 +00:00
Timothy Nikkel fa7aa5a0fe Bug 1663537. Use overlay scrollbars in a few reftests. r=kats
All of these reftests end up using a minimum scale with layout/classic scrollbars. (They hit the assert from the patch in bug 1663534.)

Some of them are only written with overlay scrollbars in mind (for example overflow-hidden-region-with-negative-left-positioned-element.html which I looked at in detail).

The change that causes them to fail is the code in nsHTMLScrollFrame::TryLayout that decides if we need scrollbars. Before desktop zooming scrollbars we compared the visual viewport size and the scrolled rect size. With desktop zooming scrollbars we compare the (layout) scrollport and the scrolled rect to determine if we need regular scrollbars and then compare the visual viewport size to the (layout) scrollport to determine if we need scrollbars to scroll the visual viewport inside the scrollport. Then can get different results.

Differential Revision: https://phabricator.services.mozilla.com/D89407
2020-09-08 23:47:48 +00:00
Narcis Beleuzu 8b53122255 Backed out changeset 95fc865fc8cf (bug 1663537) for reftest failures on font-inflation-1.html . CLOSED TREE 2020-09-08 14:07:09 +03:00
Butkovits Atila eaa0d5b024 Backed out changeset b5d39e472f05 (bug 1658881) for failures at test_docwrite_meta.html. CLOSED TREE 2020-09-08 12:35:30 +03:00
Timothy Nikkel 47eb2ac8d0 Bug 1663537. Use overlay scrollbars in a few reftests. r=kats
All of these reftests end up using a minimum scale with layout/classic scrollbars. (They hit the assert from the patch in bug 1663534.)

Some of them are only written with overlay scrollbars in mind (for example overflow-hidden-region-with-negative-left-positioned-element.html which I looked at in detail).

The change that causes them to fail is the code in nsHTMLScrollFrame::TryLayout that decides if we need scrollbars. Before desktop zooming scrollbars we compared the visual viewport size and the scrolled rect size. With desktop zooming scrollbars we compare the (layout) scrollport and the scrolled rect to determine if we need regular scrollbars and then compare the visual viewport size to the (layout) scrollport to determine if we need scrollbars to scroll the visual viewport inside the scrollport. Then can get different results.

Differential Revision: https://phabricator.services.mozilla.com/D89407
2020-09-08 08:27:30 +00:00
Emilio Cobos Álvarez 992e6196f4 Bug 1658881 - When failing to create a channel and an image request, make sure to set the image blocking status appropriately. r=tnikkel
This is the same status as we do for known no-data protocols here:

  https://searchfox.org/mozilla-central/rev/ac142717cc067d875e83e4b1316f004f6e063a46/dom/base/nsNoDataProtocolContentPolicy.cpp#59

This ensures we treat these two cases the same.

Differential Revision: https://phabricator.services.mozilla.com/D89382
2020-09-07 23:04:41 +00:00
Jonathan Kew 94149fadd5 Bug 1533462 - Enable the cross-process shared fontlist by default on Nightly builds. r=jwatt
Also add explicit line-height to a localized-family-names test for better consistency.

Differential Revision: https://phabricator.services.mozilla.com/D79963
2020-09-07 17:20:58 +00:00
longsonr 1d904c3e45 Bug 1603629 - fix dominant-baseline hanging and mathematical r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D88877
2020-09-04 11:00:40 +00:00
Ting-Yu Lin 1f00be3d53 Bug 1652112 Part 6 - Move remaining shape-outside reftests to wpt, and delete w3c-css/submitted/shapes1 folder. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85020
2020-09-02 20:24:51 +00:00
Ting-Yu Lin f7a0b67ef8 Bug 1652112 Part 5 - Move shape-outside polygon reftests into wpt. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85019
2020-09-02 20:23:55 +00:00
Ting-Yu Lin 3e3e17c3f6 Bug 1652112 Part 4 - Move shape-outside inset reftests into wpt. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85018
2020-09-02 20:18:14 +00:00
Ting-Yu Lin ff2b86c068 Bug 1652112 Part 3 - Move shape-outside ellipse reftests into wpt. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85017
2020-09-02 20:17:16 +00:00
Ting-Yu Lin 93ad2862e1 Bug 1652112 Part 2 - Move shape-outside circle reftests into wpt. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85016
2020-09-02 21:32:10 +00:00
Ting-Yu Lin 2d4f738f49 Bug 1652112 Part 1 - Move shape-outside shape-box reftests into wpt. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D85014
2020-09-02 20:10:07 +00:00
Daniel Holbert 9f9527f388 Bug 1662880: Fix typo in reftest reference-case meta tag, for vert-block-size-small-or-larger-than-container-with-min-or-max-content-2b.html. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D89210
2020-09-02 20:57:15 +00:00
Makoto Kato 21e3ca0fea Bug 1661621 - Add more emoji reftests for keycap and skintone. r=jfkthame
This is follow up issue of bug 1371386.

After landing it, some reftests for keycap and skintone are successful.

Differential Revision: https://phabricator.services.mozilla.com/D88539
2020-08-31 04:46:17 +00:00
Jonathan Kew 936d5b55b1 Bug 1533462 - Execute the deferred font-info loader immediately when running reftests, to avoid intermittent issues due to async completion triggering an extra reflow mid-test. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D87194
2020-08-21 14:28:50 +00:00
Kartikaya Gupta 8223de6eea Bug 1661755 - Flip the ref and test setups for scroll-behavior-6.html. r=tnikkel
For all the other scroll-behavior-* tests, the "complex" behaviour is the "test"
and the "let's scroll these things to their intended destination" behaviour is
the "ref", as one would expect. Except for some reason in scroll-behavior-6, the
"ref" branch is the one doing all the tricky scrolling things and the other
branch has the simple intended outcomes. This patch inverts the branches so
that the test behaves more as expected.

Differential Revision: https://phabricator.services.mozilla.com/D88648
2020-08-28 20:43:47 +00:00
Anny Gakhokidze abc4db9fa9 Bug 1589102 - Part 10: Fix tests failing due to not waiting for the window load events, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D87328
2020-08-28 17:21:09 +00:00
Emilio Cobos Álvarez f1b7a3ca58 Bug 1661509 - Fix SVGSVGElement::QueryInterface. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D88475
2020-08-27 20:56:04 +00:00
Mats Palmgren bb86544bb1 Bug 1548753 - [css-lists] Prefer an ancestor's counter scope over a sibling's scope. r=emilio
https://github.com/w3c/csswg-drafts/issues/5477

Differential Revision: https://phabricator.services.mozilla.com/D87991
2020-08-27 18:26:38 +00:00
Hiroyuki Ikezoe 3fc3e2d805 Bug 1660089 - Use the nearest scrollable frame as the clip frame if the scrollable frame is overflow:hidden. r=botond
Without this change, the transition in the reftest in this commit has never
been composited because it's misrecognized as __jank__.
(Note that a tricky part to understand the jank is that we expand the pre-render
region based on the transformed frame size [1], in this case it's 400px width,
so that the expanded area will be smaller than the size based on 800px.)

[1] https://searchfox.org/mozilla-central/rev/73a14f1b367948faa571ed2fe5d7eb29460787c1/layout/base/nsLayoutUtils.cpp#10043,10045

Differential Revision: https://phabricator.services.mozilla.com/D88199
2020-08-27 00:09:59 +00:00
Jonathan Kew 3c2cb7fd1a Bug 1371386 - Take account of requirements for emoji-style or text-style presentation during font selection & fallback. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87304
2020-08-26 09:31:58 +00:00
longsonr 4f8808ae6f Bug 1459905 - Merge DOMSVGTranslatePoint and DOMSVGPoint and fix updates r=emilio
SVGSVGElement::SetCurrentScaleTranslate checks that things have changed but if we
manage to update both translate values before we get here then we'll skip the screen update
that we need.

Also
- introduces a tear off for SVGSVGElement.currentTranslate so we hand out the same object as required by the SVG idl
- removes SVGSVGElement::SetCurrentTranslate as dead code
- removes mPreviousScale and mPreviousTranslate from SVGSVGElement as they are no longer necessary

Differential Revision: https://phabricator.services.mozilla.com/D84796
2020-08-25 14:38:32 +00:00
Mihai Alexandru Michis b162701621 Backed out changeset 0cad1ef724ee (bug 1371386) for causing failures in emoji-fallback-3.html
CLOSED TREE
2020-08-24 21:02:10 +03:00
Jonathan Kew ba87878325 Bug 1371386 - Take account of requirements for emoji-style or text-style presentation during font selection & fallback. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D87304
2020-08-24 14:24:12 +00:00
Joel Maher 5371bf42c5 Bug 166061 - Bug 1660661 - adjust svg alpha reftest expectations for windows 10 on hardware. r=kats
adjust svg alpha reftest expectations for windows 10 on hardware

Differential Revision: https://phabricator.services.mozilla.com/D87968
2020-08-23 16:04:52 +00:00
Stephen A Pohl f6a573510f Bug 1657743: Fix reftests. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D86721
2020-08-21 14:01:44 +00:00
Ting-Yu Lin 290f578f8a Bug 1633031 Part 2 - Add reftests for fragmenting multi-line column-oriented flex containers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D87108
2020-08-19 21:22:34 +00:00
Ting-Yu Lin 7cb8492735 Bug 1633031 Part 1 - Stop considering available block-size when wrapping flex lines in multi-line column-oriented flex container. r=dholbert
Although this goes against the suggestion of the sample algorithm in the
spec, this brings the layout of the multi-line column-oriented flex
container in paginated context closer to the layout with no
fragmentation. This also matches Google Chrome's behavior.

Tweak flexbox-unbreakable-child-2.html so that it matches the rendering
as of this patch. Change the height of `.muticol` and the removal of
border in `flexContainer` to let two flex items fit exactly into the
flex container's height, making reference easier to write.

Differential Revision: https://phabricator.services.mozilla.com/D87107
2020-08-19 21:10:01 +00:00
Emilio Cobos Álvarez 325d955f89 Bug 1660048 - Remove dom.forms.color and dom.forms.datetime. r=smaug,marionette-reviewers,whimboo
They're enabled in all configurations and there's no plan to change
this. With it, dom.experimental_forms is also useless, so we can remove
it too.

Differential Revision: https://phabricator.services.mozilla.com/D87623
2020-08-19 18:24:06 +00:00
longsonr e3b924526e Bug 1659783 - Fix use pointing to image elements r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D87571
2020-08-19 15:25:39 +00:00
Emilio Cobos Álvarez 7c7897149c Bug 1414600 - Make media queries and viewport units in print be evaluated against the default page size minus margins. r=dholbert,nordzilla
For that, move the default page margin computation to nsPresContext.

See https://github.com/w3c/csswg-drafts/issues/5437 as to why doing this
and other alternatives.

Differential Revision: https://phabricator.services.mozilla.com/D87311
2020-08-19 10:32:16 +00:00
Sonia Singla 5f5c9fd7f2 Bug 1659267 - Remove usages of -moz-user-select across the Firefox codebase. r=emilio,marionette-reviewers,geckoview-reviewers,preferences-reviewers,whimboo,agi
Differential Revision: https://phabricator.services.mozilla.com/D87499
2020-08-18 23:37:51 +00:00
Zeke Medley a591e69aa0 Bug 1591204 - Support forced colors media feature r=emilio
Enabled behind layout.css.forced-colors.enabled pending finalization
of the spec:

<https://drafts.csswg.org/mediaqueries-5/#forced-colors>

Differential Revision: https://phabricator.services.mozilla.com/D87147
2020-08-17 20:50:49 +00:00
Zeke Medley d1653ccb9a Bug 1658780 - Update the prefers-contrast media query to use the new more/less keywords r=emilio
Per the resolution here:
https://github.com/w3c/csswg-drafts/issues/2943#issuecomment-672994920

Differential Revision: https://phabricator.services.mozilla.com/D86848
2020-08-17 01:41:16 +00:00
Emilio Cobos Álvarez 6f85f8c453 Bug 1656081 - Cleanup iframe sizing so that it does the same as every other replaced element. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D85386
2020-08-16 18:45:39 +00:00
Matt Woodrow 02b6ed52b4 Bug 1656817 - Don't create WebRender gradient items for empty gradients. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D86891
2020-08-14 00:56:35 +00:00
Csoregi Natalia 8896454838 Backed out 4 changesets (bug 1656817, bug 1656818, bug 1658858) for bustage on RendererOGL.cpp. CLOSED TREE
Backed out changeset 9c8e4ec4e47c (bug 1656818)
Backed out changeset 92252cfd26de (bug 1656818)
Backed out changeset 1bebb79150d6 (bug 1656817)
Backed out changeset e1becb3a2fb5 (bug 1658858)
2020-08-14 00:25:44 +03:00
Matt Woodrow 4795ba88e8 Bug 1656817 - Don't create WebRender gradient items for empty gradients. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D86891
2020-08-13 20:42:42 +00:00
Lee Salzman 8326780f95 Bug 1652894 - add SWGL RenderTextureHosts. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D86340
2020-08-12 21:25:17 +00:00
Joel Maher 5f474b909b Bug 1658057 - Adjust reftest expectations for windows reftests on hardware. r=bc
Adjust reftest expectations for windows reftests on hardware

Differential Revision: https://phabricator.services.mozilla.com/D86450
2020-08-11 21:25:03 +00:00
Ting-Yu Lin 98cd1c828a Bug 1652186 - Expand the content in <iframe> into block-in-inline-continuations.html. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D86286
2020-08-07 10:06:28 +00:00
Matt Woodrow ba66eda840 Bug 1656813 - Mark failing test. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85717
2020-08-05 02:19:31 +00:00
Matt Woodrow b31970d899 Bug 1656813 - Annotate fuzzy reftest differences. r=lsalzman
These are all subtle differences that aren't visible, many are actually less fuzzy than with normal WR.

Differential Revision: https://phabricator.services.mozilla.com/D85715
2020-08-05 02:19:08 +00:00
Cosmin Sabou 38cd82e194 Backed out 8 changesets (bug 1656813) for reftest failures on bipbop_300_215kbps.mp4.lastframe.html.
Backed out changeset 92e0209dc7f1 (bug 1656813)
Backed out changeset 1b3842f2ca27 (bug 1656813)
Backed out changeset efed1b35fe47 (bug 1656813)
Backed out changeset d1c313ebe358 (bug 1656813)
Backed out changeset 4d6a3bf61345 (bug 1656813)
Backed out changeset 060254b3ad73 (bug 1656813)
Backed out changeset 37e5e5e6593a (bug 1656813)
Backed out changeset 12c0e9554a5f (bug 1656813)
2020-08-05 04:52:20 +03:00
Matt Woodrow abeb17f2ef Bug 1656813 - Mark failing test. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85717
2020-08-05 00:54:48 +00:00
Matt Woodrow 1885d56be1 Bug 1656813 - Annotate fuzzy reftest differences. r=lsalzman
These are all subtle differences that aren't visible, many are actually less fuzzy than with normal WR.

Differential Revision: https://phabricator.services.mozilla.com/D85715
2020-08-05 00:54:23 +00:00
Kartikaya Gupta 5ec0989331 Bug 1621740 - Fuzz a reftest that shows some differences with allow_zooming. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D85431
2020-08-04 17:21:38 +00:00
Sebastian Hengst 21341f7da8 Bug 1656998 - Adjust fuzzy annotations for reftests which became less fuzzy after toolchain and images got rebuilt. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D85840
2020-08-04 12:59:21 +00:00
Noemi Erli 37e7a2569c Backed out 3 changesets (bug 1620055, bug 1621740) for causing leaks (DManipEventHandler)
Backed out changeset 4ed6ec0c8220 (bug 1620055)
Backed out changeset bb406c0968c5 (bug 1621740)
Backed out changeset a816301284e6 (bug 1621740)
2020-08-04 05:11:54 +03:00
Kartikaya Gupta 7efb584069 Bug 1621740 - Fuzz a reftest that shows some differences with allow_zooming. r=botond
Depends on D85430

Differential Revision: https://phabricator.services.mozilla.com/D85431
2020-07-31 18:28:06 +00:00
Hiroyuki Ikezoe e6f2eaccfd Bug 1656418 - Enable partial prerender on Nightly. r=botond,boris
Differential Revision: https://phabricator.services.mozilla.com/D85550
2020-08-02 22:56:22 +00:00
Mats Palmgren 910e11aa99 Bug 1531609 part 2 - Implement overflow:clip/visible combinations. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73717
2020-08-01 01:57:41 +00:00
Jeremy Ir 20235b390f Bug 1531609 part 1 - Rename overflow:-moz-hidden-unscrollable to overflow:clip. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73716
2020-08-01 01:56:58 +00:00
Mats Palmgren 21b713c1f1 Bug 1635473 - [css-overflow] Make viewport propagation for 'overflow:-moz-hidden-unscrollable' compatible with the spec for 'clip'. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D84171
2020-08-01 02:00:23 +00:00
Butkovits Atila cc95b93cba Backed out 3 changesets (bug 1635473, bug 1531609) for reftest failures. CLOSED TREE
Backed out changeset 1e7b32808be8 (bug 1531609)
Backed out changeset e64a61869cdb (bug 1531609)
Backed out changeset 6da37d7f6dd3 (bug 1635473)
2020-07-31 23:56:54 +03:00
Mats Palmgren c875610606 Bug 1531609 part 2 - Implement overflow:clip/visible combinations. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73717
2020-07-31 15:31:36 +00:00
Jeremy Ir 92b8f0f77a Bug 1531609 part 1 - Rename overflow:-moz-hidden-unscrollable to overflow:clip. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73716
2020-07-31 16:40:48 +00:00
Mats Palmgren 043846d390 Bug 1635473 - [css-overflow] Make viewport propagation for 'overflow:-moz-hidden-unscrollable' compatible with the spec for 'clip'. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D84171
2020-07-31 16:40:48 +00:00
Zeke Medley d65fae1c28 Bug 1654918 - Improve prefers-contrast reftests with the `ui.useAccessibilityTheme` preference r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D84765
2020-07-29 20:27:42 +00:00
Jonathan Kew 95e0f6f509 Bug 1655364 - Rename gfxShapedText::SetGlyphs to SetDetailedGlyphs and make it just set glyph information, not clobber character-type flags. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D85187
2020-07-30 11:48:06 +00:00
Mihai Alexandru Michis 78c470dbaa Backed out changeset 3c88adc13a06 (bug 1655364) for causing assertion failures regarding glyphs.
CLOSED TREE
2020-07-30 13:25:04 +03:00
Kartikaya Gupta dd23227828 Bug 1484047 - Add an async-scrolling reftest that mixes painted and async scrolls. r=botond
This was helpful to me in understanding the semantics of WR's internals so
I figured it might be useful to land.

Differential Revision: https://phabricator.services.mozilla.com/D85332
2020-07-30 09:46:03 +00:00
Jonathan Kew ab3b20c648 Bug 1655364 - Rename gfxShapedText::SetGlyphs to SetDetailedGlyphs and make it just set glyph information, not clobber character-type flags. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D85187
2020-07-30 07:56:05 +00:00
Daniel Holbert ab6826ce32 Bug 1655608 part 3: Fix ReflowOutput/ReflowInput mismatch in nsPageSequenceFrame. r=TYLin
For a given ::Reflow call, we have an expectation that the ReflowInput and
ReflowOutput should be "matching".  In particular: we should use the
ReflowInput to initialize the ReflowOutput, and we should pass both of these to
the frame's Reflow method.

In current mozilla-central (prior to this patch), nsPageSequenceFrame violates
this expectation when it prepares to reflow its children, in the following
ways:
1) It passes in the wrong ReflowInput as an arg when constructing a
   ReflowOutput struct for its children. (It passes *its own* ReflowInput arg,
   rather than the ReflowInput for the child that it's about to reflow.)
2) It *reuses* that single ReflowOutput structure *for all of its children*,
   which means that sizing information from one child will end up improperly
   influencing later children by "leaking through".

This results in overflow areas that are artificially too large on nsPageFrames,
because ReflowOutput populates its overflow areas via "union()" operations. So
the improperly-reused ReflowOutput produces a strictly larger overflow area
on each subsequent page (even if the page doesn't actually have any overflow).

This patch fixes these problems by creating a new ReflowOutput for each child,
and initializing it with the correct ReflowInput instance.

Notably, this patch *is* a behavior-change (in the direction of correctness).
In particular, we won't have artificially-inflated overflow areas on later
nsPageFrame instances anymore, and so now some of our automated testcases
trigger assertion-failures that they were getting around before. These all
seem to be versions of https://bugzilla.mozilla.org/show_bug.cgi?id=1655630
which, "fortunately", is already reproducible (under certain paper sizes)
even in a build from current mozilla-central, without this here patch.

Differential Revision: https://phabricator.services.mozilla.com/D85098
2020-07-28 22:43:46 +00:00
Tim Nguyen f4e86cd6e4 Bug 558594 - Implement layout for <input type='search'>. r=emilio,masayuki
Differential Revision: https://phabricator.services.mozilla.com/D56302
2020-07-27 12:09:40 +00:00
Ting-Yu Lin ecad6a6177 Bug 1654960 - Remove the duplicate 1420528-1.html in reftest.list. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D84775
2020-07-24 04:31:35 +00:00
Ting-Yu Lin e0472f8fcc Bug 1588954 - Downgrade an assertion checking inline-size less than zero to a soft assertion. r=dholbert
`nsIFrame::ComputeISizeValue` clamps the result to non-negative before
returning it, so the assertion doesn't need to be a hard assertion.

Differential Revision: https://phabricator.services.mozilla.com/D84745
2020-07-24 00:57:13 +00:00
Emilio Cobos Álvarez b280656a9e Bug 1651530 - Apply min/max-block-size to tables. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D84130
2020-07-21 19:12:39 +00:00
Cosmin Sabou 3d099cd5a2 Backed out changeset 2d42454f13e1 (bug 1651530) for mochitest failures on test_bug1642588.html. CLOSED TREE 2020-07-21 19:59:51 +03:00
Emilio Cobos Álvarez 1a2268d278 Bug 1651530 - Apply min/max-block-size to tables. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D84130
2020-07-21 11:50:01 +00:00
Hiroyuki Ikezoe ba018e2355 Bug 1638152 - Jank partial prerender transform animations and report the janked animations to the main-thread in each process on WebRender. r=botond,kats
Differential Revision: https://phabricator.services.mozilla.com/D83202
2020-07-21 10:03:34 +00:00
Hiroyuki Ikezoe 61e3b7323f Bug 1638152 - Add a reftest to make sure that the offset from the reference frame is surely factored into the jank mechanism. r=botond
This is a test case which will fail if we didn't factor the position of the
transform from the reference frame in the jank mechanism in cases where the
transform is inside a perspective layer. In the case of non WebRender, we've
already factored it in FrameTransformToTransformInDevice() [1].

For WebRender we will need to factor it in a different way becase there is no
layer tree structures so that we can't tell whether the transform is inside
a perspective layer or not by looking at the parent layer.

Note that, as of now, this test doesn't fail on WebRender since there is no jank
mechanism on WebRender yet.

[1] https://searchfox.org/mozilla-central/rev/7ec7ee4a9bde171ba195ab46ed6077e4baaef34d/gfx/layers/CompositorAnimationStorage.cpp#276-282

Differential Revision: https://phabricator.services.mozilla.com/D83200
2020-07-21 10:02:56 +00:00
Ting-Yu Lin 07aaed8b60 Bug 1647520 Part 2 - Set font and line-height to make column reftests stable across all platforms. r=heycam
Without setting font and line-height, these reftests may yield different
results on different platforms because of the default font are
different. Also, their optimal column balancing height may not be an
integer in CSS pixels.

I discover this because they are failing due to 1px column height
difference after we stop searching optimal balancing height within a
certain threshold on either macOS, Windows, or Android.

Differential Revision: https://phabricator.services.mozilla.com/D83730
2020-07-20 22:27:42 +00:00
Ting-Yu Lin 8d402003a7 Bug 1647520 Part 1 - Adjust reftests so that the optimal column balancing height is on whole CSS pixels. r=heycam
* floats-clear-multicol-balancing-*:

Change border-width from "normal" to "5px" so that the optimal column
height is 85px. This also makes those reftests renders the same across
all browsers since each browser renders "normal" differently.

* column-balancing-overflow-005:

This test is already wrong as its height is 13px/3 = 4.3333px, so it can
pass with some fuzzy. This patch makes the target column height
4px (including the children's overflow). This is the same as the `<p>`'s
height 4px in reference file.

* box-decoration-break-border-image:

Add 1px to .vbreak so that the optimal column balancing height is a
integer. Also, remove a whitespace between two `<span>` in `<pos2>` to make the
test more robust because the width of the whitespace is not an integer.

Differential Revision: https://phabricator.services.mozilla.com/D83729
2020-07-20 22:27:35 +00:00
Ting-Yu Lin fdc00547f6 Bug 1637130 - Rename visual overflow to ink overflow. r=dbaron
This patch is generated by:

```
# Rename the nsOverflowType enum.
rg -l "eVisualOverflow" layout/ gfx/ | xargs sed -i "s/eVisualOverflow/eInkOverflow/g"

# Rename and drop the "Get" prefix from various functions.
rg -l "GetVisualOverflowRect" layout/ gfx/ | xargs sed -i "s/GetVisualOverflowRect/InkOverflowRect/g"
rg -l "GetPreEffectsVisualOverflowRect" layout/ gfx/ | xargs sed -i "s/GetPreEffectsVisualOverflowRect/PreEffectsInkOverflowRect/g"
rg -l "GetVisualOverflowFromDeltas" layout/ gfx/ | xargs sed -i "s/GetVisualOverflowFromDeltas/InkOverflowFromDeltas/g"
rg -l "GetScrollableOverflowRect" layout/ gfx/ | xargs sed -i "s/GetScrollableOverflowRect/ScrollableOverflowRect/g"

# Rename, drop the "Get" prefix, and change the suffix "Area" to "Rect"
# (because they return nsRect) for the two methods in nsLineBox.
rg -l "GetVisualOverflowArea" layout/ gfx/ | xargs sed -i "s/GetVisualOverflowArea/InkOverflowRect/g"
rg -l "GetScrollableOverflowArea" layout/ gfx/ | xargs sed -i "s/GetScrollableOverflowArea/ScrollableOverflowRect/g"

# Rename rest of the functions and variables.
rg -l "VisualOverflow" layout/ gfx/ | xargs sed -i "s/VisualOverflow/InkOverflow/g"
rg -l "visual overflow" layout/ gfx/ | xargs sed -i "s/visual overflow/ink overflow/g"
rg -l "visualOverflow" layout/ gfx/ | xargs sed -i "s/visualOverflow/inkOverflow/g"
rg -l "visOverflow" layout/ gfx/ | xargs sed -i "s/visOverflow/inkOverflow/g"
rg -l "vis-overflow" layout/ gfx/ python/ | xargs sed -i "s/vis-overflow/ink-overflow/g"

./mach clang-format
```

Differential Revision: https://phabricator.services.mozilla.com/D84231
2020-07-20 20:17:36 +00:00
Butkovits Atila 96f3218871 Backed out 3 changesets (bug 1648851) for webgl issues. CLOSED TREE
Backed out changeset 1f0d6e32a0f4 (bug 1648851)
Backed out changeset df5ec3dbab05 (bug 1648851)
Backed out changeset fbda45ebde5c (bug 1648851)
2020-07-20 12:44:43 +03:00
Edwin Takahashi b1b5c9447a Bug 1648851 - Part 4: update expectations for tests that now pass r=jmaher
The patches in the stack were backed out because of an unexpected pass in the resulting push.

The expectations for now-passing tests have been updated.

Differential Revision: https://phabricator.services.mozilla.com/D83987
2020-07-17 20:19:41 +00:00
Cameron McCormack ec3a51f08d Bug 1620467 - Part 12: Hide range and number-input appearance values from content. r=emilio
Forgot to follow up on these two remaining non-standard values that may have
been being used to reset a <meter> or <input type=number> back to its
original appearance, but which telemetry showed no usage of.

Differential Revision: https://phabricator.services.mozilla.com/D83598
2020-07-16 22:04:38 +00:00
Cameron McCormack dd61f595eb Bug 1620467 - Part 4: Change internal uses of -moz-appearance to appearance and -moz-default-appearance. r=emilio,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,ntim,agi,miketaylr
Uses of `-moz-appearance: none` are changed to `appearance: none`.

Uses of other values that are simply reverting the appearance back to
its default are changed to `appearance: auto`.

Uses of values in UA sheets that are defining the inherent appearance of
widgets are changed to:

  appearance: auto;
  -moz-default-appearance: <value>;

since those values are either no longer supported on (-moz-)appearance,
or are still supported but only in some limited form.

There are some uses of `-moz-appearance: textfield` on <input
type=number> elements that are renamed to `appearance: textfield`.

Differential Revision: https://phabricator.services.mozilla.com/D83430
2020-07-16 22:04:14 +00:00
Kartikaya Gupta 1fbc60a38e Bug 1650438 - Fix indentation in test. r=mattwoodrow
Fixes a missing closing tag in the retained-dl-style-change-stacking-context-3
test page. Unfortunately, this changes the structure of the page and makes the
test fail, so the reftest.list file is updated accordingly. Since the existing
test structure was clearly testing something else, and caught a legitimate
difference in behaviour with and without APZ zooming on desktop, this patch
also creates a new test with that structure (and better indentation).

Differential Revision: https://phabricator.services.mozilla.com/D82214
2020-07-16 15:56:27 +00:00
Emilio Cobos Álvarez d275fd6251 Bug 1631449 - Apply a grayscale filter to pages when monochrome. r=jwatt
This hooks the "monochrome" media query and co to the
nsIPrintSettings.printInColor setting.

This print setting we're using is not exposed in the print preview UI,
but you can test it setting the print.print_in_color preference to
"false", and then print preview will correctly show up greyscale'd.

Once this lands, the UI folks just have to use it as they see fit :)

I would've liked to add a proper rendering test, but the print reftests
check only whether the PDF text matches.

I could add a test to printpreview_helper.xhtml, but I'm refactoring
that file in bug 1648064 so I'd rather wait a bit and add it in a
separate bug. The test for the media feature should make sure that we
test that code path at least.

Differential Revision: https://phabricator.services.mozilla.com/D83552
2020-07-15 03:45:33 +00:00
Ting-Yu Lin fe4a027e82 Bug 1422908 - Use fieldset frame itself as the aPositionedFrame argument on PushAbsoluteContainingBlock. r=mats
Per documentation, `aPositionedFrame` (the second argument) of
`PushAbsoluteContainingBlock` should be the frame whose style actually
makes the new absolute containing block a containing block, so it should
be the fieldset frame itself, not fieldset's inner frame.

Co-authored-by: Mats Palmgren <mats@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D82651
2020-07-14 17:49:05 +00:00
Miko Mynttinen f51fb1062d Bug 1641769 - Compute visibility of nsDisplayPerspective children r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D82720
2020-07-08 21:30:30 +00:00
Emilio Cobos Álvarez c3f3931f8c Bug 1645773 - Make sure to reflow when author specified borders / backgrounds are changed if we're themed. r=jfkthame
As author-specified-background/border changes can change the effective
border and padding of form controls.

Differential Revision: https://phabricator.services.mozilla.com/D82689
2020-07-08 15:13:27 +00:00
Hiroyuki Ikezoe 8a563af888 Bug 1649663 - Migrate reftest-paged reftests in layout/reftests/backgrounds/ into wpt. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D81807
2020-07-02 04:01:33 +00:00
longsonr 357287af64 Bug 588684 - Mark objectBoundingBox-and-fePointLight reftests passing on linux r=dholbert
We can mark this fuzzy if necessary but it does seem OK now

Differential Revision: https://phabricator.services.mozilla.com/D82376
2020-07-06 18:33:24 +00:00
Hiroyuki Ikezoe d32459e2c0 Bug 1650686 - Drop layout.viewport_contains_no_contents_area. r=botond
I suppose it's been well tested on Fenix.

Differential Revision: https://phabricator.services.mozilla.com/D82305
2020-07-06 09:53:34 +00:00
Hiroyuki Ikezoe 43877bd8b5 Bug 1647186 - Apply the cumulative resolution smaller than 1.0 to the root frame size for the partial pre-render. r=botond
So that we can reasonably expand the pre-render region on mobile environments.

Differential Revision: https://phabricator.services.mozilla.com/D81961
2020-07-05 23:17:02 +00:00
Hiroyuki Ikezoe 4205879729 Bug 1324591 - Report janked animations to the main-thread and update them on the main-thread. r=botond,boris
The machinery to report janked animations is;

1) Store the partial pre-rendered animation id and the Animation object in a
   hashtable in LayerManager
2) Store the animation id in the Animation object as well
3) When we detect jank, we send the animation id to the main-thread via an IPC
   call
4) Find the Animation object with the id in the hashtable and update the
   Animaiton
5) Whenever the partial pre-rendered Animation stop running on the compositor
   i.e. the Animation finished normally, the Animation's target element is
   changed, etc. etc., remove the Animation from the hashtable

Depends on D75731

Differential Revision: https://phabricator.services.mozilla.com/D75732
2020-07-05 11:45:01 +00:00
Hiroyuki Ikezoe 85030f4af6 Bug 1324591 - Jank if we are trying to composite area which is outside of the the partial prerender rect on non WebRender. r=botond,jrmuizel
Depends on D81481

Differential Revision: https://phabricator.services.mozilla.com/D75731
2020-07-05 11:44:18 +00:00
Narcis Beleuzu a1826f59a6 Backed out changeset 290c0c7b9864 (bug 1647186) for reftest failure on partial-prerender-expansion-with-resolution-2.html 2020-07-05 14:38:53 +03:00
Brindusan Cristian 7f75410fd7 Backed out 9 changesets (bug 1324591) for linux build bustages on central on nsDisplayList.h.
Backed out changeset 75966ee1fe65 (bug 1324591)
Backed out changeset d6a01c6bc40e (bug 1324591)
Backed out changeset fef36ff2ea3d (bug 1324591)
Backed out changeset 4a4ae4bd95d1 (bug 1324591)
Backed out changeset 732804c83add (bug 1324591)
Backed out changeset 84657a3522fb (bug 1324591)
Backed out changeset e6c74ba41007 (bug 1324591)
Backed out changeset 8e6d4e9f5aa0 (bug 1324591)
Backed out changeset 6bc284863aff (bug 1324591)
2020-07-05 13:45:35 +03:00
Hiroyuki Ikezoe 4215f9a916 Bug 1647186 - Apply the cumulative resolution smaller than 1.0 to the root frame size for the partial pre-render. r=botond
So that we can reasonably expand the pre-render region on mobile environments.

Differential Revision: https://phabricator.services.mozilla.com/D81961
2020-07-05 09:57:36 +00:00
Hiroyuki Ikezoe 92208a9c28 Bug 1324591 - Report janked animations to the main-thread and update them on the main-thread. r=botond,boris
The machinery to report janked animations is;

1) Store the partial pre-rendered animation id and the Animation object in a
   hashtable in LayerManager
2) Store the animation id in the Animation object as well
3) When we detect jank, we send the animation id to the main-thread via an IPC
   call
4) Find the Animation object with the id in the hashtable and update the
   Animaiton
5) Whenever the partial pre-rendered Animation stop running on the compositor
   i.e. the Animation finished normally, the Animation's target element is
   changed, etc. etc., remove the Animation from the hashtable

Differential Revision: https://phabricator.services.mozilla.com/D75732
2020-07-05 02:21:01 +00:00
Hiroyuki Ikezoe c350cb04ad Bug 1324591 - Jank if we are trying to composite area which is outside of the the partial prerender rect on non WebRender. r=botond,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D75731
2020-07-05 02:20:23 +00:00
Hiroyuki Ikezoe 10242eeaf4 Bug 1646629 - Set updateCanvasPending explicitly when reftest-wait was removed and take a snapshot of the whole screen if reftest-no-flush is specified. r=mattwoodrow,tnikkel
That's because we no longer fire MozAfterPaint event for changes by
animations on the compositor.

Differential Revision: https://phabricator.services.mozilla.com/D80157
2020-07-04 08:01:40 +00:00
Kartikaya Gupta bc6c7c9f34 Bug 1650081 - Use scrollbar-width:none instead of overflow:hidden to hide scrollbars. r=botond
Instead of using overflow:hidden on the body to hide the scrollbar, this
patch sets scrollbar-width:none on the html element. In some cases
overflow:hidden is set on non-root scrollers (i.e. div elements); in those
cases it is replaced by overflow:scroll;scrollbar-width:none to get an
equivalent effect.

One test had a pre-existing visible scrollbar on a nested scrollframe, but
which started failing with a small fuzz difference. I left the scrollbar as-is
and added an annotation to the reftest.list file.

Note that this only updates the tests that use reftest-async-scroll as those
were the cases that were easily detectable, and causing problems with the
apz.allow_zooming=true pref.

Differential Revision: https://phabricator.services.mozilla.com/D82032
2020-07-03 19:50:11 +00:00
Mihai Alexandru Michis fb3212f7cc Backed out changeset bd58cdafe3c9 (bug 1650081) for causing failures in offscreen-prerendered-active-opacity.html
CLOSED TREE
2020-07-03 22:30:50 +03:00
Kartikaya Gupta 3bc44b4a60 Bug 1650081 - Use scrollbar-width:none instead of overflow:hidden to hide scrollbars. r=botond
Instead of using overflow:hidden on the body to hide the scrollbar, this
patch sets scrollbar-width:none on the html element. In some cases
overflow:hidden is set on non-root scrollers (i.e. div elements); in those
cases it is replaced by overflow:scroll;scrollbar-width:none to get an
equivalent effect.

One test had a pre-existing visible scrollbar on a nested scrollframe, but
which started failing with a small fuzz difference. I left the scrollbar as-is
and added an annotation to the reftest.list file.

Note that this only updates the tests that use reftest-async-scroll as those
were the cases that were easily detectable, and causing problems with the
apz.allow_zooming=true pref.

Differential Revision: https://phabricator.services.mozilla.com/D82032
2020-07-03 16:07:51 +00:00
Ting-Yu Lin 3fca243aa4 Bug 1645549 Part 2 - Find the first non-anonymous-box's content node when sorting frame list. r=dholbert
When sorting frames in DOM order, we need to be careful to avoid using
an anonymous flex item's content node to make ordering decisions;
otherwise, all such items would incorrectly end up being sorted to the
front of the list. We need to dig through it to find the content node
that was wrapped in the anonymous wrapper, and use that content node for
sorting/ordering.

Differential Revision: https://phabricator.services.mozilla.com/D81001
2020-07-01 02:38:57 +00:00
Emilio Cobos Álvarez 3b9c28af7a Bug 1256980 - Make z-index only apply to positioned and grid / flex item frames. r=miko,hiro
Differential Revision: https://phabricator.services.mozilla.com/D81557
2020-06-30 22:51:12 +00:00
Hiroyuki Ikezoe 12256cfca1 Bug 1645274 - Migrate reftest-paged reftests in layout/reftests/table-overflow into wpt. r=TYLin
Note that on Chrome table-row-pagination-001-print.html doesn't generate the
second page at least in the print preview.  The second page is actually just a
blank page, but the height of a table element in the test is `160%` so that
there should be overflowed area from the first page.

It may be possible that it's an optimization in Chrome to reduce paper
consumption, but the second page in the reference, it's also a blank page, is
generated in the print preview, so I suppose it's either a bug or an
inconsistent optimization in Chrome.

Differential Revision: https://phabricator.services.mozilla.com/D81635
2020-06-30 21:58:07 +00:00
Zeke Medley 83e9191999 Bug 1506364 - Implement the prefers-contrast media-query. r=morgan,emilio
Differential Revision: https://phabricator.services.mozilla.com/D79553
2020-06-29 17:46:12 +00:00
Boris Chiou 897e56554c Bug 1638844 - Update fuzzy condition for linux-64-ccov. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D81586
2020-06-29 21:26:07 +00:00
longsonr 5a4aaccb28 Bug 386713 - Mark text-font-weight-01.svg passing on linux r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D81453
2020-06-28 23:40:18 +00:00
Glenn Watson 1628e0582a Bug 1647862 - Fix panic when casting large rects to i32. r=Bert
In various parts of the picture and mask code, we were casting
the `clipped` rect to i32 (after rounding out). However, this
can cause overflow panics when the origin of the rect is too big.

Instead, treat the origin as f32 (which it was generally being
converted to anyway), and only cast the size part to be i32 as
required. This is safe since we know that the size has been
clipped to the visible screen, so will always be safe to cast
to i32.

Differential Revision: https://phabricator.services.mozilla.com/D80968
2020-06-28 22:00:56 +00:00
Hiroyuki Ikezoe 1320a9622c Bug 1648013 - Migrate reftest-paged reftests in layout/reftests/columns into wpt. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D80832
2020-06-25 21:01:34 +00:00
Hiroyuki Ikezoe 2d9e750de3 Bug 1648016 - Migrate reftest-paged reftests in layout/reftests/details-summary into wpt. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D80833
2020-06-25 21:01:26 +00:00
Narcis Beleuzu 16b93d8b26 Backed out changeset c2e266e2f077 (bug 1648013) for reftest failure on column-balancing-paged-001.html . CLOSED TREE 2020-06-25 13:45:10 +03:00
Narcis Beleuzu f8a925a7a9 Backed out changeset 3f21595a6b8e (bug 1648016) for reftest failures on details-page-break-after-1.html . CLOSED TREE 2020-06-25 13:36:59 +03:00
Hiroyuki Ikezoe 634a59dd84 Bug 1648013 - Migrate reftest-paged reftests in layout/reftests/columns into wpt. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D80832
2020-06-25 09:41:47 +00:00
Hiroyuki Ikezoe 09828f53be Bug 1648016 - Migrate reftest-paged reftests in layout/reftests/details-summary into wpt. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D80833
2020-06-25 09:23:53 +00:00
Delan Azabani 5dc229e516 Bug 1630935 - Add use counter and deprecation warning for STIXGeneral fonts. r=emilio
This patch adds the boolean pref mathml.stixgeneral_operator_stretching.disabled, which defaults to true iff nightly.

When the pref is true, stretched operators won’t be rendered with STIXGeneral, because we only use OpenType MATH tables (in fonts that have them) or the generic Unicode table.

When the pref is false, we continue to support STIXGeneral for stretched operators, but warn the author in devtools and bump the use counter (up to once per page). This only happens when a stretched operator actually uses STIXGeneral: not when we successfully render the operator with some other font earlier in the font-family stack, and not when STIXGeneral isn’t installed.

Differential Revision: https://phabricator.services.mozilla.com/D73833
2020-06-25 04:20:57 +00:00
Lee Salzman 0f03ab076c Bug 1645621 - gracefully downgrade to grayscale font smoothing in WR when necessary. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D80969
2020-06-25 03:01:04 +00:00
Kartikaya Gupta 18cdc2e52a Bug 1644271 - Mark a couple of reftests fuzzy with WR. r=tnikkel
The top end of the scrollbar seems off by a subpixel amount. Some initial
investigation is documented in bug 1646527 and points to a WR internal bug.

Depends on D80089

Differential Revision: https://phabricator.services.mozilla.com/D80090
2020-06-21 20:48:30 +00:00
longsonr 6b4aba0696 Bug 1555948 - SVGSVGElement::BindToTree should use composed doc to get the animation controller r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D80390
2020-06-21 20:53:18 +00:00
Razvan Maries c60adf564e Backed out 6 changesets (bug 1644271) for perma failures on browser_bug1170531.js.
Backed out changeset 9d4e746c732d (bug 1644271)
Backed out changeset 681a48643a84 (bug 1644271)
Backed out changeset 3cf3176c45d4 (bug 1644271)
Backed out changeset efaddcd67a33 (bug 1644271)
Backed out changeset 03aaac05c759 (bug 1644271)
Backed out changeset a780f5111efa (bug 1644271)
2020-06-21 23:44:04 +03:00
Kartikaya Gupta 3cabfd00ab Bug 1644271 - Mark a couple of reftests fuzzy with WR. r=tnikkel
The top end of the scrollbar seems off by a subpixel amount. Some initial
investigation is documented in bug 1646527 and points to a WR internal bug.

Depends on D80089

Differential Revision: https://phabricator.services.mozilla.com/D80090
2020-06-18 09:20:53 +00:00
Markus Stange c5cf53e63b Bug 1642603 - Make TransformAndClipBounds stop discarding the corner positions of empty rectangles. r=kip
Differential Revision: https://phabricator.services.mozilla.com/D79582
2020-06-17 18:54:46 +00:00
Glenn Watson a0179d273f Bug 1646619 - Update reftest annotations for android device. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D80145
2020-06-18 06:21:50 +00:00
Ting-Yu Lin 2b5101b052 Bug 1574046 Part 1 - Upstream float clear reftests to wpt, and add column-fill:auto counterparts. r=dbaron
Differential Revision: https://phabricator.services.mozilla.com/D74536
2020-05-26 22:12:15 +00:00
Emilio Cobos Álvarez ffec6f608b Bug 1643656 - Remove prefers-color-scheme: no-preference. r=gl,remote-protocol-reviewers,hiro,whimboo
It was removed from the spec.

Differential Revision: https://phabricator.services.mozilla.com/D78834
2020-06-14 23:26:04 +00:00
Emilio Cobos Álvarez 58bb0b25d9 Backed out 2 changesets (bug 477157) for border rendering regressions.
Backed out changeset 04543b8ded50 (bug 477157)
Backed out changeset 5df17ecbcaa1 (bug 477157)

MANUAL PUSH: backout
2020-06-14 11:45:06 +02:00
Ting-Yu Lin 2905f20adf Bug 1637788 Part 2 - Add more fragmentation reftests for multi-line row-oriented flex containers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D79243
2020-06-11 19:20:38 +00:00
Ting-Yu Lin f169ef67a6 Bug 1637788 Part 1 - Add base fragmentation reftests for multi-line row-oriented flex containers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D79242
2020-06-11 19:20:13 +00:00