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

11373 Коммитов

Автор SHA1 Сообщение Дата
Lee Salzman 137e36e7fd Bug 1685943 - Accelerate solid color span with clip masking or AA. r=jrmuizel
This addresses some deficiencies in the way solid spans are handled when clip-masking
or AA is used. In that case, the overhead of the extra blend stage is significant and
we can do a better just by temporarily disabling the those parts of the blend stage
and fast-pathing them instead of just going through commit_solid_span.

Differential Revision: https://phabricator.services.mozilla.com/D104963
2021-02-12 16:47:40 +00:00
Pierre TALLOTTE cc28f15d09 Bug 1688695 - Hide non-standard values of caption-side. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D104321
2021-02-12 15:45:48 +00:00
Lee Salzman 15e2d003ce Bug 1678119 - Simplify SWGL image fast-paths since complex blending is no longer required. r=jrmuizel
Now that most of the complicated alpha-pass features such as clip-masking and anti-aliasing
are handled in SWGL during the blend stage, most of the fast-paths are identical and only call
swgl_commitTextureLinear in a tight loop. We can do a lot better here by just moving that loop
into SWGL, not only making it faster but removing all the redundant boiler-plate code out of
the shaders.

Differential Revision: https://phabricator.services.mozilla.com/D104536
2021-02-12 02:43:56 +00:00
Lee Salzman ae6d305bf9 Bug 1678119 - Update reftest fuzz for SWGL anti-aliasing. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D104494
2021-02-12 02:43:55 +00:00
Butkovits Atila 9852a9e53e Backed out 4 changesets (bug 1678119) for causing build bustage on brush_blend.h. CLOSED TREE
Backed out changeset c93691df2440 (bug 1678119)
Backed out changeset 163ea6e7bcc2 (bug 1678119)
Backed out changeset 16b232a35692 (bug 1678119)
Backed out changeset b9dce9d33351 (bug 1678119)
2021-02-12 03:32:07 +02:00
Lee Salzman 9c94c67c13 Bug 1678119 - Simplify SWGL image fast-paths since complex blending is no longer required. r=jrmuizel
Now that most of the complicated alpha-pass features such as clip-masking and anti-aliasing
are handled in SWGL during the blend stage, most of the fast-paths are identical and only call
swgl_commitTextureLinear in a tight loop. We can do a lot better here by just moving that loop
into SWGL, not only making it faster but removing all the redundant boiler-plate code out of
the shaders.

Differential Revision: https://phabricator.services.mozilla.com/D104536
2021-02-12 00:19:03 +00:00
Lee Salzman 9024a10fb5 Bug 1678119 - Update reftest fuzz for SWGL anti-aliasing. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D104494
2021-02-12 00:19:02 +00:00
Stephen A Pohl 626049a53f Bug 1691142: Mark overflow.html and mac-tab-toolbar.xhtml as expected passes on macOS with the non-native theme turned on. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D104281
2021-02-10 21:05:59 +00:00
Stephen A Pohl 733c5743e2 Bug 1691150: Mark checkbox-minimum-size.html as expected pass on macOS with the non-native theme turned on. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D104285
2021-02-10 18:36:49 +00:00
Emilio Cobos Álvarez a7e32bd850 Bug 1564882 - Tweak fuzziness in a test.
MANUAL PUSH: Trivial intermittent fix.
2021-02-10 04:17:03 +01:00
Emilio Cobos Álvarez 49853eb7b2 Bug 315209 - Tweak a fuzzy annotation.
MANUAL PUSH: Orange on a CLOSED TREE
2021-02-08 20:24:30 +01:00
Emilio Cobos Álvarez a615cf4719 Bug 315209 - Add a pref to make non-auto outline follow border radius. r=mstange
This makes -moz-outline-radius a no-op, but keep it for now.

If/when we make this the default in release, we can remove it.

Differential Revision: https://phabricator.services.mozilla.com/D104324
2021-02-08 17:19:56 +00:00
Emilio Cobos Álvarez 2cbb8a03f1 Bug 1691064 - Make outline-style auto follow border radii. r=mstange
This matches Safari and improves the rendering when this shows by
default on unthemed form controls.

Differential Revision: https://phabricator.services.mozilla.com/D104322
2021-02-08 16:25:16 +00:00
Jonathan Kew 9bc9fab215 Bug 468217 - Remove reftest annotation for test that no longer seems to fail randomly. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D104331
2021-02-07 22:16:59 +00:00
Lee Salzman 28c09d8dcd Bug 1691139 - Use cheaper linear approximation for WR shader anti-aliasing. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D104270
2021-02-07 20:15:47 +00:00
Brad Werth b49d5e5635 Bug 1669840 Part 3: Update test expectations. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103938
2021-02-04 22:50:43 +00:00
Jonathan Kew fa75a47ab6 Bug 1689998 - Mozilla-specific build fixups for pixman 0.40.0. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103685
2021-02-05 12:00:27 +00:00
Csoregi Natalia 61d74bc90a Backed out 2 changesets (bug 1689998) for linting failure. CLOSED TREE
Backed out changeset 33d60a46b7d0 (bug 1689998)
Backed out changeset 214ffc1253ef (bug 1689998)
2021-02-04 23:34:15 +02:00
Jonathan Kew 8b9386d184 Bug 1689998 - Mozilla-specific build fixups for pixman 0.40.0. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103685
2021-02-04 20:06:07 +00:00
Jonathan Kew bc2c71f27e Bug 1690771 - Adjust test metadata r=jrmuizel
Depends on D104046

Differential Revision: https://phabricator.services.mozilla.com/D104047
2021-02-04 13:51:21 +00:00
Dorel Luca a1856858c7 Backed out 3 changesets (bug 1669840) for Reftest failures in layout/reftests/layers/opacity-background-1.html. CLOSED TREE
Backed out changeset 7ceccf133786 (bug 1669840)
Backed out changeset d54787a62ba0 (bug 1669840)
Backed out changeset 396931075ff1 (bug 1669840)
2021-02-04 03:43:58 +02:00
Brad Werth 55c2d22037 Bug 1669840 Part 3: Update test expectations. r=jrmuizel
Depends on D103130

Differential Revision: https://phabricator.services.mozilla.com/D103938
2021-02-03 22:10:55 +00:00
Lee Salzman 73e9582ee4 Bug 1674524 - implement KHR_blend_equation_advanced in SWGL. r=bradwerth
This patch has a few moving parts. We have to first tell WR that when it
detects the extension that it is actually allowed to use it. We have to make
the glsl-to-cxx translator eat the blend_supports_all_equations layout
qualifier. We have to enable generation of advanced-blend-equation variants
in the SWGL build setup. Then we report the actual extension inside SWGL.
Finally, we actually add all the necessary blend equation enums, hash them
down to a blend key, and implement all the blend modes therein.

Differential Revision: https://phabricator.services.mozilla.com/D103804
2021-02-02 22:18:21 +00:00
Brindusan Cristian d3b8616aad Backed out changeset f71aafc4e845 (bug 1674524) for build bustages in src/gl.cc. CLOSED TREE 2021-02-03 00:07:59 +02:00
Lee Salzman 7b87580cdf Bug 1674524 - implement KHR_blend_equation_advanced in SWGL. r=bradwerth
This patch has a few moving parts. We have to first tell WR that when it
detects the extension that it is actually allowed to use it. We have to make
the glsl-to-cxx translator eat the blend_supports_all_equations layout
qualifier. We have to enable generation of advanced-blend-equation variants
in the SWGL build setup. Then we report the actual extension inside SWGL.
Finally, we actually add all the necessary blend equation enums, hash them
down to a blend key, and implement all the blend modes therein.

Differential Revision: https://phabricator.services.mozilla.com/D103804
2021-02-02 21:43:12 +00:00
Markus Stange becfe5bfb3 Bug 1599606 - Don't interleave a non-scrolled canvas background color item and a fixed canvas background image with a scrolled background-color item. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D54855
2021-02-02 16:09:12 +00:00
Emilio Cobos Álvarez e0e8f146ba Bug 1673637 - Tweak fuzzy threshold in unit-vh-vw-overflow-auto.html.
MANUAL PUSH: Unreviewed fuzzy annotation / orange fix
2021-02-02 11:13:18 +01:00
Emilio Cobos Álvarez 39edfa3aac Bug 1690108 - Tweak fuzzy threshold of 1349646.html (fuzzy focus outline) 2021-02-02 11:13:13 +01:00
Timothy Nikkel 3437ea01ea Bug 1630489. Skip layout/reftests/bugs/1553571-1.html on debug and asan builds with webrender. r=dholbert
To accurately test the condition we need to tweak a transform every 74 ms. This leads to problems on platforms that can't complete a full paint cycle through the reftest harness (which consists of two paints, the one for the screen and then one to update the reftest canvas). This only used to affect android debug builds severely but seems to have gotten worse on linux debug and asan builds.

Differential Revision: https://phabricator.services.mozilla.com/D103738
2021-02-02 06:29:09 +00:00
Mats Palmgren 6886fdbba4 Bug 1683126 - Make nsCanvasFrame::Reflow more robust. r=TYLin
This patch improves nsCanvasFrame::Reflow in a few ways.
First, we now iterate over mFrames and reflow every child.
This makes it more robust vis-à-vis the order of any placeholders
and the root frame, and also resilient against a missing root
frame (this fixes the fatal assertion in this bug).  We now
also actually reflow all placeholders which wasn't the case
before. It seems like a prudent thing to do.

I also added a separate nsReflowStatus for each child.

We now also call SetOverflowAreasToDesiredBounds() in all
cases.  We failed to do that in the 'mFrames.IsEmpty()' case
before, which triggered the assertions in bug 1655630 and
bug 1392106.

Differential Revision: https://phabricator.services.mozilla.com/D103592
2021-02-01 23:46:17 +00:00
Emilio Cobos Álvarez db6f70d5f5 Bug 1689993 - One more fuzzy pixel in non-webrender because of the bigger font-size.
MANUAL PUSH: Orange on a CLOSED TREE
2021-02-01 20:10:25 +01:00
Emilio Cobos Álvarez 8ded196433 Bug 1689993 - Tweak a reftest annotation now that native and non-native theme fail similarly.
MANUAL PUSH: Orange on a CLOSED TREE
2021-02-01 17:43:01 +01:00
Jonathan Kew 18ae46fc22 Bug 1687426 - If a CSS generic font-family name is present, use this to determine which font prefs to look at during fallback. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D103598
2021-02-01 10:47:40 +00:00
Emilio Cobos Álvarez e9fbdade8f Bug 1689854 - Tweak the treetwisty-svg-context-paint-1.xhtml fuzzy annotation to allow for one more pixel being fuzzy.
MANUAL PUSH: Unreviewed fuzzy annotation tweak on a CLOSED TREE.
2021-02-01 12:32:47 +01:00
Emilio Cobos Álvarez d0771c47c0 Bug 1689856 - Tweak the Linux+nnt fuzzy range. 2021-02-01 12:22:39 +01:00
Bogdan Tara ed210ffba0 Backed out changeset 45fb48dc681c (bug 1687426) for arabic-final-ligature-spacing.html failures CLOSED TREE 2021-02-01 05:35:30 +02:00
Emilio Cobos Álvarez 0b49bad602 Bug 1689603 - Fix color input reftests which hard-code their height for the non-native theme.
MANUAL PUSH: Orange on a CLOSED TREE
2021-02-01 04:16:02 +01:00
Emilio Cobos Álvarez b25929c24d Bug 1456052 - Tweak a fuzzy test annotation. 2021-02-01 04:04:54 +01:00
Emilio Cobos Álvarez 10d7e8d01b Bug 1456052 - Change overflow-clip-box of textarea to be consistent with text inputs and match other browsers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D38794
2021-02-01 00:36:18 +00:00
Jonathan Kew 0b9ef71f7f Bug 1687426 - If a CSS generic font-family name is present, use this to determine which font prefs to look at during fallback. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D103598
2021-01-31 22:27:45 +00:00
Emilio Cobos Álvarez 6168703191 Bug 1689854, bug 1689855 - Two more nnt fuzzy tweaks.
MANUAL PUSH: Unreviewed intermittent fix.
2021-01-31 09:04:03 +01:00
longsonr c04dd7eafa Bug 1689799 - Ensure we move to the next path when displaying multiple adjacent textPaths r=emilio
reverts part of bug 1678756

Differential Revision: https://phabricator.services.mozilla.com/D103558
2021-01-30 21:35:17 +00:00
Emilio Cobos Álvarez 4d3481a3a2 Bug 1689359 - Two more fuzzy annotation tweaks.
MANUAL PUSH: Orange fix
2021-01-31 03:16:52 +01:00
Emilio Cobos Álvarez 20babafe8f Bug 1689359 - scrolling-attr-1 needs the same threshold as scrolling-attr-2.
MANUAL PUSH: Preventive orange fix.
2021-01-30 23:22:49 +01:00
Emilio Cobos Álvarez d8111fb49e Bug 1689359 - Tweak some fuzzy thresholds.
MANUAL PUSH: Orange on a CLOSED TREE
2021-01-30 20:47:59 +01:00
Emilio Cobos Álvarez 656310ede8 Bug 1689359 - Enable non-native-theme on Linux Nightly by default. r=spohl
Once all the remaining patches for test tweaks / fixes have landed, this
patch should be green on try. Couple test annotation changes:

 * clip-003.html fails the same way it fails on mac (odd, but couldn't
   repro...). I'll try to dig a bit more before calling it a day.

 * radiobutton-min-size starts behaving like every other platform.

 * Event-dispatch-redispatch and baseline-alignment-and-overflow start
   passing.

 * Couple minor fuzzy annotations (one was backwards, the other was
   missing).

Differential Revision: https://phabricator.services.mozilla.com/D103327
2021-01-30 15:55:00 +00:00
Emilio Cobos Álvarez ab8b88783f Bug 1689355 - Prevent uneven checkbox margin from growing the line with the non-native theme. r=spohl
The non-native theme does two things which, combined, cause this test to
fail.

The first one is that it has slightly bigger checkboxes than other
themes (14px vs. 13px).

The second one is that it has a 2px widget-imposed border, like Mac:

    https://searchfox.org/mozilla-central/rev/0dfbe5a699cc6c73cf8c14d1aa10ba10ef3ec8fa/widget/nsNativeBasicTheme.cpp#1367-1369

Which causes its baseline to go down by that amount. This was done
intentionally in bug 1675389, though I guess it could be reconsidered.

These two things combined make the checkbox grow the line slightly in
this test-case, causing the elements to move 1px apart.

The test is intended to check that the baseline calculation of a
checkbox/radio is correct, which it is, so prevent that undesired side
effect by resetting the margin to zero.

Differential Revision: https://phabricator.services.mozilla.com/D103324
2021-01-29 14:16:18 +00:00
Emilio Cobos Álvarez 5d69f38941 Bug 1689231 - Use box-sizing: border-box in an <input type=number> test. r=dholbert
With non-native theme, number inputs have zero padding-inline-end by
default, so otherwise the test would fail by a few pixels.

Differential Revision: https://phabricator.services.mozilla.com/D103246
2021-01-28 20:58:39 +00:00
Emilio Cobos Álvarez 9108464c06 Bug 1687870 - Fix two ua-style reftests for expected differences with the non-native theme. r=spohl
Buttons have a bit less padding in the non-native theme.

Differential Revision: https://phabricator.services.mozilla.com/D103314
2021-01-28 14:22:56 +00:00
Emilio Cobos Álvarez d1350df09d Bug 1689098 - follow-up: Tweak one more fuzzy threshold.
There are some more pixels now that there's a bit more padding.

MANUAL PUSH: orange on a CLOSED TREE
2021-01-28 14:02:00 +01:00
Emilio Cobos Álvarez f08a1fb7b1 Bug 1689098 - follow-up: Tweak some fuzzy thresholds.
MANUAL PUSH: Fix some minor OSX+WR-only orange on a CLOSED TREE.
2021-01-28 13:57:10 +01:00
Timothy Nikkel 208e860b07 Bug 1689291. Work around layout/reftests/transform/partial-prerender-expansion-translate.html failing by setting a meta viewport. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D103278
2021-01-28 09:10:18 +00:00
Emilio Cobos Álvarez a1bf2a82af Bug 1560824 - Move combobox select padding to the select rule rather than the combobox frame. r=dholbert
This doesn't change behavior by default but allows authors to remove the
padding if they wish to.

I thought this was going to be problematic because of the windows
arrowbutton, but that doesn't respect select padding so we're good.

Differential Revision: https://phabricator.services.mozilla.com/D103245
2021-01-28 07:09:23 +00:00
Emilio Cobos Álvarez 49e1237f27 Bug 1689098 - Make inputs, selects, and button actually have the same block-axis padding as claimed by our forms.css comments. r=dholbert
Combobox select has the block-axis padding in the comboboxcontrol frame.
Moving it fixes bug 1560824 and should be better, so will do that there.

1px block axis padding on buttons matches Chrome too, so shouldn't be a
problem compat-wise.

Differential Revision: https://phabricator.services.mozilla.com/D103244
2021-01-28 07:08:34 +00:00
Emilio Cobos Álvarez 9c258cbdc6 Bug 1689227 - Fix a text input test to not depend on specific padding values. r=dholbert
It was adding 1px manually, but the non-native theme has 2px
inline-padding, so it fails with that enabled.

Differential Revision: https://phabricator.services.mozilla.com/D103240
2021-01-28 07:04:57 +00:00
Emilio Cobos Álvarez 99a6a0db4f Bug 1687538 - Make HTMLLinkElement not inherit from Link. r=smaug
As per https://github.com/whatwg/html/pull/6269

Differential Revision: https://phabricator.services.mozilla.com/D103088
2021-01-28 05:35:05 +00:00
Butkovits Atila 66d2fa9c1e Backed out changeset 0927366150b7 (bug 1687538) for failures on link.html. CLOSED TREE 2021-01-28 07:01:27 +02:00
Emilio Cobos Álvarez 45e159fc05 Bug 1687538 - Make HTMLLinkElement not inherit from Link. r=smaug
As per https://github.com/whatwg/html/pull/6269

Differential Revision: https://phabricator.services.mozilla.com/D103088
2021-01-26 23:47:56 +00:00
Lee Salzman 8b4b32c5c1 Bug 1675590 - implement provisional fast-paths for linear and radial gradients. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103136
2021-01-27 06:00:15 +00:00
Ting-Yu Lin 60ba2b527c Bug 1688690 Part 2 - Ensure nsTableFrame's computed margins are all zero. r=emilio
This patch makes the following changes:

1. Don't call ReflowInput::CalculateBlockSideMargins() for nsTableFrame
so that setting nsTableFrame's computed margins to zero in
SizeComputationInput::InitOffsets() remains true. Also, add an assertion
in nsTableFrame::Reflow() to ensure that.

2. Remove useless nsTableFrameWrapper::GetChildMargin() because the
method is used to get nsTableFrame's margins, which are now all zero.
Also, the old code that subtracts the block-axis margin from available
block-size doesn't really make sense.

3. Pass all-zero innerMargins to nsTableWrapperFrame::SetDesiredSize(),
and use table wrapper's content-box inline-size as the final desired
border-box inline-size rather than reconstructing it from caption and
inner table's inline-size & margin like the old code.

This inline-size already takes inner table's intrinsic size and
caption's inline-size into consideration in
nsTableWrapperFrame::ComputeAutoSize(), and is the final inline-size we
want to use.

In the next part, we are going to simplify all nsTableWrapperFrame's
methods that take inner frame's margin.

Differential Revision: https://phabricator.services.mozilla.com/D103065
2021-01-27 01:53:36 +00:00
Daniel Holbert 0367ee057d Bug 1540635: Adjust a fuzzy annotation for reftest 1295466-1.xhtml to be specific to Windows 7, rather than to the "!nativeThemePref" configuration. r=emilio
I'm using "/^Windows\x20NT\x206\.1/.test(http.oscpu)" to check for Windows 7,
which I found (with Win7-related code comments) elsewhere in reftest.list
files.

I'm replacing a "fuzzy-if(!nativeThemePref,...)" annotation here, which I think
was simply mis-applied here -- this test doesn't have any form controls or
theme-related stuff, so it doesn't make sense that its rendering would be
theme-dependent.  I suspect this annotation was added by mistake, due to this
test intermittently failing by coincidence on a try run where the
!nativeThemePref configuration was being tested.

Differential Revision: https://phabricator.services.mozilla.com/D103083
2021-01-26 20:10:41 +00:00
Cameron McCormack b77842bf22 Bug 1687868 - Annotate fuzziness in reftest with the non-native theme enabled. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102884
2021-01-26 10:38:14 +00:00
Noemi Erli a99af52366 Backed out changeset 6495f98f94e0 (bug 1687868) for causing reftest failures CLOSED TREE 2021-01-26 03:53:49 +02:00
Cameron McCormack 15ed3bf857 Bug 1687868 - Annotate fuzziness in reftest with the non-native theme enabled. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102884
2021-01-25 22:56:12 +00:00
Emilio Cobos Álvarez 09c872c3ef Bug 1688325 - Make textarea default padding 2px on all platforms. r=dholbert,jdescottes
This matches other browsers, and the default themed textareas on Windows
too.

To be landed after the soft freeze, just in case, of course.

Differential Revision: https://phabricator.services.mozilla.com/D102843
2021-01-25 12:33:28 +00:00
Mats Palmgren 334efb391e Bug 1687239 part 1 - Remove plugin tests from layout/, dom/ and accessible/. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102139
2021-01-25 11:53:31 +00:00
Butkovits Atila 0fe67c0899 Backed out changeset 64682b454ac6 (bug 1688325) for causing failures on browser_inplace-editor_maxwidth.js. CLOSED TREE 2021-01-25 13:47:02 +02:00
Emilio Cobos Álvarez 3fad455482 Bug 1688325 - Make textarea default padding 2px on all platforms. r=dholbert
This matches other browsers, and the default themed textareas on Windows
too.

To be landed after the soft freeze, just in case, of course.

Differential Revision: https://phabricator.services.mozilla.com/D102843
2021-01-24 06:03:57 +00:00
Emilio Cobos Álvarez 0ed6409ab9 Bug 1688004 - Build top layer items for XUL documents that don't have scrollframes. r=miko
This will allow the browser chrome to use `<dialog>` etc, see
bug 1685313.

Tweak the check to support scrolling="false" on reftests, so that we can
test this.

Differential Revision: https://phabricator.services.mozilla.com/D102623
2021-01-25 00:31:30 +00:00
Lee Salzman c738dc904e Bug 1688104 - support builtin clip-mask blending in SWGL. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D102701
2021-01-22 20:48:14 +00:00
Butkovits Atila 9d529dd4e7 Backed out changeset 62050554681e (bug 1688004) for causing failure on test_disable_scroll_frame_plain.html. CLOSED TREE 2021-01-22 22:57:33 +02:00
Emilio Cobos Álvarez 6a72aab71b Bug 1688004 - Build top layer items for XUL documents that don't have scrollframes. r=miko
This will allow the browser chrome to use `<dialog>` etc, see
bug 1685313.

Tweak the check to support scrolling="false" on reftests, so that we can
test this.

Differential Revision: https://phabricator.services.mozilla.com/D102623
2021-01-22 14:44:17 +00:00
Cameron McCormack e2aad2fe04 Bug 1687869 - Tweak themed-select-padding-no-clip.html to pass with the non-native theme. r=spohl,emilio
We happen to fit a bit more text in with the new design.

Differential Revision: https://phabricator.services.mozilla.com/D102655
2021-01-22 03:04:39 +00:00
Cameron McCormack 05b0e056d5 Bug 1687888 - Some assorted test expectation updates on Linux for the non-native theme. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D102530
2021-01-21 22:14:24 +00:00
Lee Salzman 5c561b7b0f Bug 1686729 - flip source rect instead of dest. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D102513
2021-01-21 01:23:50 +00:00
Cameron McCormack 1db33852e6 Bug 1687202 - Tweak <input type="color"> tests so they work with the non-native theme. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D102124
2021-01-18 03:14:17 +00:00
Jonathan Kew fa6b797928 Bug 1686274 - Put the activation of app-bundled fonts behind a pref on all platforms, with a default auto option that is Windows-version-sensitive. r=lsalzman
This allows us to default to skipping the bundled Twemoji Mozilla font when running on Win8.1 or later,
where we can assume Segoe UI Emoji is available.

The new pref here replaces the existing pair of boolean prefs that were only supported on Android,
and is now respected on all platforms. Available settings are:

    0     disable use of app-bundled fonts
    > 0   enable use of app-bundled fonts
    < 0   default (auto): decide at startup, based on the system environment

(The pref is relevant only at startup; changing its value during a session will not make the bundled fonts
appear/disappear dynamically.)

Differential Revision: https://phabricator.services.mozilla.com/D102085
2021-01-18 20:04:36 +00:00
longsonr f292216c4e Bug 1687195 - Invalid enums should return the initial value, not the unknown value r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102131
2021-01-18 15:57:55 +00:00
longsonr dd9e8bf312 Bug 1687136 - remove svg.transform-box.enabled pref r=emilio
It's been default true since Firefox 55 via bug 1208550

Differential Revision: https://phabricator.services.mozilla.com/D102093
2021-01-18 08:11:05 +00:00
Emilio Cobos Álvarez 562c44a853 Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-17 14:44:41 +00:00
Dorel Luca dac45cc702 Backed out 3 changesets (bug 1551040) for Browser-chrome failures in browser/base/content/test/static/browser_parsable_css.js
Backed out changeset f48f479bcacd (bug 1551040)
Backed out changeset a6cd4b393999 (bug 1551040)
Backed out changeset 252cbf40efcb (bug 1551040)
2021-01-17 16:38:39 +02:00
Emilio Cobos Álvarez 71b5ff7515 Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-16 19:15:59 +00:00
Bogdan Tara c88a628881 Backed out 3 changesets (bug 1551040) for stylesheets related bustage CLOSED TREE
Backed out changeset 3822fe3e163d (bug 1551040)
Backed out changeset 032025f28d8f (bug 1551040)
Backed out changeset 1aeb38c2dce3 (bug 1551040)
2021-01-16 20:53:31 +02:00
Emilio Cobos Álvarez fcace619be Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-16 10:53:09 +00:00
Mihai Alexandru Michis f1247be876 Backed out 4 changesets (bug 1551040) for causing mochitest failures.
CLOSED TREE

Backed out changeset 06c07b144db8 (bug 1551040)
Backed out changeset a6ebb45be432 (bug 1551040)
Backed out changeset 38f1416a92c3 (bug 1551040)
Backed out changeset 6c80881c8844 (bug 1551040)
2021-01-16 12:47:04 +02:00
Emilio Cobos Álvarez 08ce37b5ed Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-16 03:19:38 +00:00
Andrew Osmond 680cfedad2 Bug 1683653 - Disable OMTP for users with less than 2 GB of virtual memory. r=jrmuizel
Also disable for users with 64-bit Firefox with 1-2 cores, and less than
2 GB of physical memory. It was already disabled for 32-bit Firefox.

Differential Revision: https://phabricator.services.mozilla.com/D101052
2021-01-14 19:51:00 +00:00
longsonr 6f36a97d0a Bug 1684625 - Disable active images in SVGs r=jrmuizel
- prefs off the code change in bug 1555356
- adds a reftest for this bug and also bug 1674163

Differential Revision: https://phabricator.services.mozilla.com/D101519
2021-01-13 01:16:09 +00:00
Daniel Holbert 45b4733e89 Bug 1667620: Use a more-permissive "asserts" annotation for reftest abspos-breaking-004.html. (no review, just adjusting test metadata)
This test spams the same assertion either 4 or 6 times, with this variation
probably being due to an extra reflow which we sometimes incur due to a
font-fallback task having coincidentally just completed, as described in
https://groups.google.com/g/mozilla.dev.platform/c/VBh6oLm4EbQ/m/dbaJcAe6BgAJ

Previously the test was annotated as asserting exactly 4 times, but now we
need to allow for it to sometimes assert 6 times instead.

Differential Revision: https://phabricator.services.mozilla.com/D101506
2021-01-12 22:40:33 +00:00
Ryan VanderMeulen 01d4f055a4 Bug 1686287 - Update reftest expectations. r=me for a CLOSED TREE
We'd previously loosened this check in the OTS 8.1.0 update (bug 1672563), but the changes in 8.1.3 are causing this to fail again.
2021-01-12 17:57:01 -05:00
Daniel Holbert f8273b8a32 Bug 1685895: Use a more-permissive "asserts" annotation for reftest abspos-breaking-001.xhtml. (no review, just adjusting test metadata)
This test recently increased its maximum intermittent assertion count, probably
due to an extra reflow that we sometimes incur due to a font-fallback task
having coincidentally just completed, as described in
https://groups.google.com/g/mozilla.dev.platform/c/VBh6oLm4EbQ/m/dbaJcAe6BgAJ

Differential Revision: https://phabricator.services.mozilla.com/D101420
2021-01-12 01:04:00 +00:00
longsonr 37b2661e41 Bug 1685607 - Make clip-path-ellipse reftests slightly fuzzier r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D101330
2021-01-11 18:43:31 +00:00
Jonathan Kew 90618d64ae Bug 1685434 - Respect fonts specified in the font.name-list.emoji preference even if this overrides the Unicode Emoji_Presentation style. r=m_kato
This is a minor adjustment to the font-selection heuristics implemented in bug 1371386:
for emoji codepoints, we should accept the font(s) specified in the font.name-list.emoji
preference even if it's a monochrome font for characters that would normally be expected
to use a color rendering, as this is the user's choice.

Differential Revision: https://phabricator.services.mozilla.com/D101162
2021-01-11 14:41:39 +00:00
longsonr 51ac8a0da6 Bug 488702 - Add tests for dynamic filter invalidation r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D101275
2021-01-11 08:34:57 +00:00
Daniel Holbert eaa8247e17 Bug 1685367: Use a more-permissive "asserts" annotation for reftest abspos-breaking-005.html. (no review, just adjusting test metadata)
This test spams the same assertion either 4 or 6 times, with this variation
probably being due to an extra reflow which we sometimes incur due to a
font-fallback task having coincidentally just completed, as described in
https://groups.google.com/g/mozilla.dev.platform/c/VBh6oLm4EbQ/m/dbaJcAe6BgAJ

Previously the test was annotated as asserting exactly 4 times, but now we
need to allow for it to sometimes assert 6 times instead.

Differential Revision: https://phabricator.services.mozilla.com/D101100
2021-01-08 01:19:23 +00:00
Nicolas Silva 98e1a767ee Bug 1685162 - Adjust reftest fuziness. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D100933
2021-01-07 08:32:53 +00:00
longsonr f518393a92 Bug 1518099 - Add support for lighter operator in feComposite r=jrmuizel,emilio
Spec: https://www.w3.org/TR/filter-effects-1/#attr-valuedef-operator-lighter

Lighter is defined in the compositing & blending spec as equivalent to porter-duff plus, https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators_plus.

The 'lighter' composite mode already works in <canvas> (via globalCompositeOperation), and it's the same there.

Chrome implemented support in https://bugs.chromium.org/p/chromium/issues/detail?id=439037

Per https://github.com/w3c/svgwg/issues/424 we should expose the new value in webidl and Chrome uses 7 too (https://codereview.chromium.org/779963002/patch/120001/130009)

Differential Revision: https://phabricator.services.mozilla.com/D100605
2021-01-05 20:49:00 +00:00
Nicolas Silva 0c31e298c4 Bug 1684448 - Adjust reftest fuzziness. r=jrmuizel
This is another fuziness change from tightened alignment of texture cache items causing sampling accuracy issues.

Differential Revision: https://phabricator.services.mozilla.com/D100671
2021-01-04 20:01:56 +00:00
Jonathan Kew 3e652ab885 Bug 1666382 - Allow more assertions in abspos-breaking-002.xhtml to account for possible extra reflow. r=lsalzman
Depends on D100663

Differential Revision: https://phabricator.services.mozilla.com/D100664
2021-01-04 20:57:05 +00:00
Jonathan Kew da78a75d4f Bug 1684726 - Disable async font fallback for text-transform tests. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D100624
2021-01-03 20:32:29 +00:00
Daniel Holbert db42508fcb Bug 1678047: Adjust fuzzy threshold for reftest 456219-1c.html to allow for a slightly-better pixel-mismatch-count on Android. (no review; trivial tweak to test manifest) DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D100574
2021-01-01 00:44:47 +00:00
Jonathan Kew 809ac36608 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-31 00:33:48 +00:00
Cosmin Sabou 74039caf3c Backed out changeset 345d6be71db1 (bug 1676966) for mochitest without e10s failures. CLOSED TREE 2020-12-30 15:36:10 +02:00
Jonathan Kew c19e845492 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-30 12:34:49 +00:00
Mihai Alexandru Michis d50d8d795e Backed out changeset 52eb1fa54b88 (bug 1676966) for causing mochitest failures in AsyncCompositionManager.cpp 2020-12-30 00:16:44 +02:00
Jonathan Kew 12c934e612 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-29 16:03:45 +00:00
Razvan Maries 0cb7aac5bd Backed out changeset 4a6818e6c81a (bug 1676966) for perma failures on AsyncCompositionManager.cpp. CLOSED TREE 2020-12-29 04:06:23 +02:00
Jonathan Kew 9e08463270 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-28 13:15:02 +00:00
Nicolas Silva 3051b1e968 Bug 1683380 - Adjust reftest fuzziness. r=jrmuizel.
Differential Revision: https://phabricator.services.mozilla.com/D100351
2020-12-22 20:33:52 +00:00
Edgar Chen 0fd119dae0 Bug 582459 - Reset the focused element when a frame loses document focus; r=mikedeboer,NeilDeakin,hsivonen,jaws
Resetting focus would also clear selection on editable element, so get
current selected text before moving focus to findbar to make
prefill-with-selection work if the content is loaded in chrome process.

Differential Revision: https://phabricator.services.mozilla.com/D89557
2020-12-21 21:35:49 +00:00
Lee Salzman 82e7fe6b1e Bug 1669841 - provide 1:1 rendering fast-paths for some SWGL shaders. r=jrmuizel
Mainly this implements a new set of SWGL intrinsics based around swgl_allowTextureNearest
and swgl_commitTextureNearest which can fairly easily provide a further fast-path above
and beyond swgl_commitTextureLinear. This requires the row be from an axis-aligned 1:1
draw so that we can do something not unlike a fast copy of the texture data straight
to the destination in cases where even the linear filter would be essentially doing
the same thing in a more expensive way. For now, only a few WR shaders that were already
using swgl_commitTextureLinear have been fast-pathed with the new intrinsics to see if
this provides significant performance benefit.

Differential Revision: https://phabricator.services.mozilla.com/D100079
2020-12-18 15:55:09 +00:00
Nicolas Silva 8c83bd0d93 Bug 1679751 - More android 8 reftest fuzziness adjustments. r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D100104
2020-12-18 13:24:37 +00:00
Emilio Cobos Álvarez 230946d6c4 Bug 1618584 - Simplify marquee widget to not use XUL. r=bgrins,mats
And also to use more similar markup and setup between
horizontal/vertical marquee.

Differential Revision: https://phabricator.services.mozilla.com/D99869
2020-12-18 11:55:00 +00:00
Nicolas Silva 76eedba1e1 Bug 1679751 - Fix reftest syntax error. r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D100087
2020-12-18 10:30:10 +00:00
Nicolas Silva 2a1b6ef316 Bug 1679751 - Adjust reftest references. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D99920
2020-12-18 09:26:56 +00:00
Glenn Watson a6887a5d71 Bug 1682473 - Update test expectations for SVG/CSS filters on android r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D99827
2020-12-17 22:26:15 +00:00
Glenn Watson f54e2ff3f5 Bug 1682465 - Update test expectations for perspective-scrolling-1.html r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D99826
2020-12-17 22:26:12 +00:00
Glenn Watson 56e53f3baf Bug 1682365 - Pt 2 - Remove texture array usage from render task graph. r=nical
With this change, all color/alpha intermediate surfaces are individual
textures, rather than texture arrays.

This can in theory cause more batch breaks in some cases, but this
is likely to be very rare in practice.

Benefits:
 - No more allocating the array at the size of the largest task / slice.
 - Remove a source of many driver bugs on android devices.
 - Simplify integration of future patches with render task graph.

Much of the render target array texture code is still present, since
picture cache tiles in the Draw compositor still make use of texture
arrays. However, once these are switched to normal textures, we can
remove most of the slice layer, blit workaround functionality etc.

Remove the default feature setting for selecting the image sampler
kind. Instead, this must be explicitly specified by the shader or
a dynamic feature define, which makes sampler selection less error prone.

Differential Revision: https://phabricator.services.mozilla.com/D99006
2020-12-17 22:26:10 +00:00
Bogdan Tara ac1c8e039b Backed out 5 changesets (bug 1682473, bug 1682498, bug 1682465, bug 1682365) for multi-mix-blend-mode.yaml failures CLOSED TREE
Backed out changeset 0146d623031f (bug 1682498)
Backed out changeset 22981934b3e7 (bug 1682473)
Backed out changeset 46cf4dd9cbb6 (bug 1682465)
Backed out changeset 86db847cfe57 (bug 1682365)
Backed out changeset c3495de132cd (bug 1682365)
2020-12-18 00:01:49 +02:00
Glenn Watson 564b13cda4 Bug 1682473 - Update test expectations for SVG/CSS filters on android r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D99827
2020-12-17 19:54:07 +00:00
Glenn Watson 0ba94b9c69 Bug 1682465 - Update test expectations for perspective-scrolling-1.html r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D99826
2020-12-17 19:54:04 +00:00
Glenn Watson 9cec1624e2 Bug 1682365 - Pt 2 - Remove texture array usage from render task graph. r=nical
With this change, all color/alpha intermediate surfaces are individual
textures, rather than texture arrays.

This can in theory cause more batch breaks in some cases, but this
is likely to be very rare in practice.

Benefits:
 - No more allocating the array at the size of the largest task / slice.
 - Remove a source of many driver bugs on android devices.
 - Simplify integration of future patches with render task graph.

Much of the render target array texture code is still present, since
picture cache tiles in the Draw compositor still make use of texture
arrays. However, once these are switched to normal textures, we can
remove most of the slice layer, blit workaround functionality etc.

Remove the default feature setting for selecting the image sampler
kind. Instead, this must be explicitly specified by the shader or
a dynamic feature define, which makes sampler selection less error prone.

Differential Revision: https://phabricator.services.mozilla.com/D99006
2020-12-17 19:54:02 +00:00
Timothy Nikkel ef067a9751 Bug 1602956. Mark layout/reftests/async-scrolling/position-fixed-iframe-{1,2}.html as passing with fission.
Depends on D62861

Differential Revision: https://phabricator.services.mozilla.com/D99988
2020-12-17 10:01:02 +00:00
Emilio Cobos Álvarez 0c6954bd7e Bug 1577530 - Annotate a test that is 1px less fuzzy.
MANUAL PUSH: Fix unexpected pass in a CLOSED TREE
2020-12-17 01:35:01 +01:00
Daniel Holbert 3ce94dff9d Bug 1675244: Annotate reftest 585598-2.xhtml as slightly fuzzy, on Windows webrender. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D99938
2020-12-16 22:12:24 +00:00
Jeff Muizelaar ac2d66db37 Bug 1682744. Mark mixed blend mode tests as passing. r=jnicol
Bug 1682398 caused us to layerize mixed-blend-mode less aggressively
which means that we're using Skia everywhere for these tests now
instead of relying on the GPU.

Differential Revision: https://phabricator.services.mozilla.com/D99896
2020-12-16 14:21:21 +00:00
Dorel Luca cbf69a75c1 Backed out changeset 2ac614e69ecb (bug 582459) for Mochitest failures in dom/tests/mochitest/chrome/test_focus.xhtml. CLOSED TREE 2020-12-16 03:44:13 +02:00
Ryan VanderMeulen 4106f30182 Merge m-c to autoland on a CLOSED TREE. a=merge 2020-12-15 19:45:55 -05:00
Ryan VanderMeulen ca03e2ed5e Backed out changeset a830b8440998 (bug 1682465) 2020-12-15 19:45:21 -05:00
Ryan VanderMeulen e7dd879c52 Backed out changeset c92b6aa1b03d (bug 1682473) 2020-12-15 19:45:18 -05:00
Ryan VanderMeulen 8654e3e18f Backed out 2 changesets (bug 1682365) for causing bug 1682566.
Backed out changeset 5589923a52c8 (bug 1682365)
Backed out changeset 0c03e3ad5e56 (bug 1682365)
2020-12-15 19:42:08 -05:00
Edgar Chen f9b8ba2a7c Bug 582459 - Reset the focused element when a frame loses document focus; r=mikedeboer,NeilDeakin,hsivonen,jaws
Resetting focus would also clear selection on editable element, so get
current selected text before moving focus to findbar to make
prefill-with-selection work if the content is loaded in chrome process.

Differential Revision: https://phabricator.services.mozilla.com/D89557
2020-12-15 19:55:35 +00:00
Glenn Watson d26e477c72 Bug 1682473 - Update test expectations for SVG/CSS filters on android r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D99827
2020-12-15 19:26:26 +00:00
Glenn Watson ccf1ef1319 Bug 1682465 - Update test expectations for perspective-scrolling-1.html r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D99826
2020-12-15 19:26:26 +00:00
Lee Salzman dc42df74b2 Bug 1675071 - silence SWGL unexpected pass on reftest 745025. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D99739
2020-12-15 01:58:47 +00:00
Glenn Watson ac7ea425db Bug 1682365 - Pt 2 - Remove texture array usage from render task graph. r=nical
With this change, all color/alpha intermediate surfaces are individual
textures, rather than texture arrays.

This can in theory cause more batch breaks in some cases, but this
is likely to be very rare in practice.

Benefits:
 - No more allocating the array at the size of the largest task / slice.
 - Remove a source of many driver bugs on android devices.
 - Simplify integration of future patches with render task graph.

Much of the render target array texture code is still present, since
picture cache tiles in the Draw compositor still make use of texture
arrays. However, once these are switched to normal textures, we can
remove most of the slice layer, blit workaround functionality etc.

Remove the default feature setting for selecting the image sampler
kind. Instead, this must be explicitly specified by the shader or
a dynamic feature define, which makes sampler selection less error prone.

Differential Revision: https://phabricator.services.mozilla.com/D99006
2020-12-15 00:43:28 +00:00
Brindusan Cristian 33455e97a9 Backed out changeset 15da94c6a7b1 (bug 1682365) for wrench bustage at shadow-transforms.yaml. CLOSED TREE 2020-12-15 02:13:25 +02:00
Glenn Watson d38a041500 Bug 1682365 - Pt 2 - Remove texture array usage from render task graph. r=nical
With this change, all color/alpha intermediate surfaces are individual
textures, rather than texture arrays.

This can in theory cause more batch breaks in some cases, but this
is likely to be very rare in practice.

Benefits:
 - No more allocating the array at the size of the largest task / slice.
 - Remove a source of many driver bugs on android devices.
 - Simplify integration of future patches with render task graph.

Much of the render target array texture code is still present, since
picture cache tiles in the Draw compositor still make use of texture
arrays. However, once these are switched to normal textures, we can
remove most of the slice layer, blit workaround functionality etc.

Remove the default feature setting for selecting the image sampler
kind. Instead, this must be explicitly specified by the shader or
a dynamic feature define, which makes sampler selection less error prone.

Differential Revision: https://phabricator.services.mozilla.com/D99006
2020-12-14 21:48:41 +00:00
Emilio Cobos Álvarez 6f9b45e8b3 Bug 1682295 - Remove some text-decoration prefs that are always on. r=layout-reviewers,mats
Differential Revision: https://phabricator.services.mozilla.com/D99675
2020-12-14 16:14:35 +00:00
Emilio Cobos Álvarez 330c920720 Bug 1603455 - Remove layout.css.xul-tree-pseudos.content.enabled. r=heycam
We unshipped these a while ago and left the pref just for testing
purposes. But now all the reftests using it were conveniently migrated
to chrome:// tests, so we no longer need it.

Differential Revision: https://phabricator.services.mozilla.com/D56950
2020-12-14 13:43:50 +00:00
Botond Ballo 93e700db4b Bug 1487181 - Ensure that the scroll metadata of a transform layer child of a perspective layer has the correct scroll clip as well. r=mattwoodrow
Depends on D99565

Differential Revision: https://phabricator.services.mozilla.com/D99566
2020-12-14 02:50:04 +00:00
Mats Palmgren 09aea8a939 Bug 1681050 - Fix a few test issues that were exposed with fragmentation fallback enabled. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D98942
2020-12-08 14:53:45 +00:00
Ting-Yu Lin 1652cd302e Bug 1679931 Part 4 - Remove workaround for flex item fragmentation reftests for Android. r=layout-reviewers,emilio,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D98518
2020-12-07 23:30:59 +00:00
Mats Palmgren f5f65add13 Bug 1655856 - Make nsPageContentFrame include its own border-box in its reported overflow-areas. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D98796
2020-12-06 14:52:44 +00:00
Andreea Pavel e9f4fd5d42 Bug 1574154 - adjust fuzzyness of img-simple-3.html on android r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D98853
2020-12-06 14:46:31 +00:00
Andreea Pavel 9f9b841703 Bug 1680682 - adjust filter-clipped-rect-01.svg fuzzyness r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D98858
2020-12-06 14:34:35 +00:00
longsonr 777beda23d Bug 1678756 - Check we don't run off the end of the textPath while skipping characters r=emilio
The textcase and reference differ by a single space.
We should check that we've not run off the end of the path while we're skipping characters
Also removes a redundant check presumably left over from some earlier refactoring.

Differential Revision: https://phabricator.services.mozilla.com/D97828
2020-12-05 21:05:41 +00:00
Butkovits Atila e82dd032af Backed out changeset 247ecae76586 (bug 1678756) for failures on gfxTextRun.h. CLOSED TREE 2020-12-04 18:16:29 +02:00
longsonr 16a19b1aa8 Bug 1678756 - Check for new clusters or ligature groups in textPaths even in skipped characters r=emilio
The textcase and reference differ by a single space.
We should check for new clusters or ligature groups in textPaths even in skipped characters
Also removes a redundant check presumably left over from some earlier refactoring.

Differential Revision: https://phabricator.services.mozilla.com/D97828
2020-12-04 06:21:37 +00:00
Botond Ballo 3695fe3d68 Bug 1673073 - Do not add clip to masked content if a filter applies to the content as well. r=mstange
Depends on D98559

Differential Revision: https://phabricator.services.mozilla.com/D98560
2020-12-03 17:11:40 +00:00
Ting-Yu Lin ca8fd6da81 Bug 1674774 Part 3 - Move flex item's position when flex container has a vertical-rl writing-mode. r=mats
The flex container fragment's tentative block-size can be different from
its final size if there is any unbreakable child that has a block-size
larger than the available block-size. The two passed reftests are such
examples.

Differential Revision: https://phabricator.services.mozilla.com/D97522
2020-12-01 05:45:59 +00:00
Ting-Yu Lin 859e445d03 Bug 1674774 Part 2 - Fix the border-box size which is used to position flex container's children. r=mats
If the flex container frame's tentative border-box size is different
from its final size, and it's in vertical-rl writing mode, we need to
adjust children's position. This is implemented in Part 3.

Differential Revision: https://phabricator.services.mozilla.com/D97521
2020-12-01 05:45:56 +00:00
Dorel Luca d0a0666e29 Backed out 3 changesets (bug 1674774) for Reftest failures in layout/reftests/flexbox/pagination/flexbox-single-column-vertical-rl-6.html. CLOSED TREE
Backed out changeset edf35fea5913 (bug 1674774)
Backed out changeset 52c3e2fefc03 (bug 1674774)
Backed out changeset d4fa50b48efd (bug 1674774)
2020-11-30 21:07:18 +02:00
Emilio Cobos Álvarez 92bd3ac8f5 Bug 1677917 - Change BlockReflowInput's skipsides setup to be sane. r=mats,TYLin
Precomputing the skipBEnd bit is odd / wrong. Using the PreReflow
version causes no regression, and allows us to simplify the code.

It also reverts the test annotations added to bug 1675376 which were
caused by the extra argument to GetLogicalSkipSides() somehow.

Differential Revision: https://phabricator.services.mozilla.com/D97418
2020-11-30 17:49:04 +00:00
Ting-Yu Lin bb4a2c09d0 Bug 1674774 Part 3 - Move flex item's position when flex container has a vertical-rl writing-mode. r=mats
The flex container fragment's tentative block-size can be different from
its final size if there is any unbreakable child that has a block-size
larger than the available block-size. The two passed reftests are such
examples.

Differential Revision: https://phabricator.services.mozilla.com/D97522
2020-11-30 18:02:03 +00:00
Ting-Yu Lin f354e52c66 Bug 1674774 Part 2 - Fix the border-box size which is used to position flex container's children. r=mats
If the flex container frame's tentative border-box size is different
from its final size, and it's in vertical-rl writing mode, we need to
adjust children's position. This is implemented in Part 3.

Differential Revision: https://phabricator.services.mozilla.com/D97521
2020-11-30 18:03:09 +00:00
Mats Palmgren e94fd41033 Bug 1669333 - Make the fragmentation fallback code use logical coordinates. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D97864
2020-11-30 15:58:19 +00:00
Geoff Brown 60d64f402a Bug 1388764 - Re-enable test_object_nav.html and 508908-1.xhtml; r=jmaher
Re-enable tests previously disabled by this bug, for intermittent crashes.

Differential Revision: https://phabricator.services.mozilla.com/D97929
2020-11-30 12:03:27 +00:00
Nicolas Silva e6197136b7 Bug 1624446 - Adjust reftest fuzziness. r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D98002
2020-11-26 16:54:32 +00:00
Razvan Maries 00226db676 Backed out changeset b2da4b644dd9 (bug 1677917) for perma failures on break-at-end-container-edge-000.html. CLOSED TREE 2020-11-21 19:23:33 +02:00
Emilio Cobos Álvarez d570280e88 Bug 1677917 - Change BlockReflowInput's skipsides setup to be sane. r=mats,TYLin
Precomputing the skipBEnd bit is odd / wrong. Using the PreReflow
version causes no regression, and allows us to simplify the code.

It also reverts the test annotations added to bug 1675376 which were
caused by the extra argument to GetLogicalSkipSides() somehow.

Differential Revision: https://phabricator.services.mozilla.com/D97418
2020-11-21 15:53:16 +00:00
Mats Palmgren 7352f9f7a6 Bug 1665214 - Reserve space at the top of the page for non-fragmented overflow from previous pages. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D97021
2020-11-19 20:16:11 +00:00
Tim Nguyen 73e2871fa8 Bug 1525737 - Remove layout/xul/grid directory. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53296
2020-11-17 01:20:33 +00:00
Tim Nguyen 082c712f75 Bug 1525737 - Remove/replace usages of XUL grid display values. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53300
2020-11-17 01:20:34 +00:00
Lee Salzman f6c80461bd Bug 1677872 - reduce division usage in brush shaders. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D97379
2020-11-18 19:08:37 +00:00
Cristina Coroiu b468838f9a Backed out changeset fc06dd6899fc (bug 1677872) for Wr failures at css/css-images/tiled-gradients.html on a CLOSED TREE 2020-11-18 19:07:55 +02:00
Lee Salzman e94ea21e9b Bug 1677872 - reduce division usage in brush shaders. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D97379
2020-11-18 14:39:20 +00:00
Butkovits Atila f16164a1b5 Backed out changeset 029ac94eb369 (bug 1677872) for failure at tiled-gradients.html. CLOSED TREE 2020-11-18 09:59:01 +02:00
Lee Salzman bca1de14ee Bug 1677872 - reduce division usage in brush shaders. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D97379
2020-11-18 04:35:22 +00:00
Ting-Yu Lin bccb437849 Bug 1676585 Part 2 - Use LogicalRect to compute joining boxes' border area. r=mats
The original code doesn't work for "writing-mode:vertical-rl" because
its block flow direction is the opposite of "writing-mode:vertical-lr."

Differential Revision: https://phabricator.services.mozilla.com/D96786
2020-11-17 05:36:42 +00:00
Ting-Yu Lin 7e3b64c3f2 Bug 1676585 Part 1 - Simplify vertical-wm-001.html by using logical properties. r=mats
This patch shouldn't change the rendering of the test at all.

Differential Revision: https://phabricator.services.mozilla.com/D96785
2020-11-17 05:35:33 +00:00
Nicolas Silva a8f628b1a7 Bug 1645318 - Adjust reftest references. r=jnicol
Depends on D97132

Differential Revision: https://phabricator.services.mozilla.com/D97133
2020-11-16 10:55:34 +00:00
Nicolas Silva e3c6dd3c03 Bug 1619715 - Adjust reftest references. r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D97132
2020-11-16 10:56:02 +00:00
longsonr f1fb147667 Bug 1677187 - ignore x values for vertical and y values for horizontal text in textPaths r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D97086
2020-11-16 10:54:56 +00:00
Nicolas Silva e49c8d70ea Bug 1673387 - Adjust reftest references. r=jnicol
Changing the size or number of layers of textures unfortunately usually leads to small sampling differences which requires fixing in the refetest references.

Differential Revision: https://phabricator.services.mozilla.com/D95680
2020-11-12 22:26:32 +00:00
Ting-Yu Lin 258d115092 Bug 1676565 Part 4 - Add flex item fragmentation reftests for "writing-mode: vertical-rl". r=emilio
First, copy the "vertical-lr" reftests added in Part 3, then running the
following command to convert to `writing-mode: vertical-rl` for all the
reftests.

```
rg -l "vertical-lr" flexbox-*vertical-rl*  | xargs sed -i "s/vertical-lr/vertical-rl/g"
```

reftest.list are modified manually.

Differential Revision: https://phabricator.services.mozilla.com/D96742
2020-11-12 12:09:30 +00:00
Ting-Yu Lin f5a02d2780 Bug 1676565 Part 3 - Add flex item fragmentation reftests for "writing-mode: vertical-lr". r=emilio
First, copy the original reftests, then running the following command to
add `writing-mode: vertical-lr` to all the reftests, and modify `<link>`
tag.

```
function rename () {
    rg -l "$1" flexbox-*vertical-lr* | xargs sed -i "s/$1/$2/g"
}

rename "<style>" "<style>\n  html \{\n    writing-mode: vertical-lr;\n  \}"
rename "single-column" "single-column-vertical-lr"
rename "multi-column" "multi-column-vertical-lr"
rename "single-row" "single-row-vertical-lr"
rename "multi-row" "multi-row-vertical-lr"
```

reftest.list are modified manually.

Differential Revision: https://phabricator.services.mozilla.com/D96741
2020-11-12 12:08:27 +00:00
Ting-Yu Lin 623a5f2ad2 Bug 1676565 Part 2 - Convert flex item fragmentation reftests to use logical properties. r=emilio
Part 3 is going to duplicate all the fragmentation reftests, and add
"writing-mode: vertical-lr" to them. If any of the physical property is
missed the conversion, we'll know when running the them.

This patch is generated by running the following script under
`layout/reftests/flexbox/pagination`.

```
#!/usr/bin/env bash

function rename() {
    rg -l "$1" flexbox-single-* flexbox-multi* | xargs sed -i "s/$1/$2/g"
}

rename "margin-top" "margin-block-start"
rename "margin-bottom" "margin-block-end"
rename "border-width: 10px 0" "border-block-width: 10px"
rename "border: solid white" "border: 0 solid white"
rename "border-width: 15px 0" "border-block-width: 15px"
rename "padding: 5px 0" "padding-block: 5px"
rename "padding: 15px 0" "padding-block: 15px"
rename "top:" "inset-block-start:"
rename "left:" "inset-inline-start:"

# Rename properties containing 'width' or 'Height' to something else temporarily.
rename "border-width" "border-XXX"
rename "border-block-width" "border-block-XXX"
rename "column-width" "column-XXX"
rename "offsetHeight" "offsetYYY"

rename "width" "inline-size"
rename "height" "block-size"
rename "Height" "Block-size"

# Switch them back.
rename "XXX" "width"
rename "YYY" "Height"
```

Differential Revision: https://phabricator.services.mozilla.com/D96740
2020-11-12 12:06:42 +00:00
Ting-Yu Lin b88ba04641 Bug 1676565 Part 1 - Remove flexbox-multicol-vert-empty-2.html. r=emilio
This reftest is not in reftest.list nor does it have a reference file.
Let's remove it.

Differential Revision: https://phabricator.services.mozilla.com/D96739
2020-11-12 11:47:37 +00:00
lonocvb 0e9a6edc05 Bug 1517385 - Use "visibility: hidden" to keep the frame of AccessibleCaret alive. r=TYLin
Depends on D96506

Differential Revision: https://phabricator.services.mozilla.com/D94072
2020-11-12 18:36:40 +00:00
Butkovits Atila bc8d4ed13b Backed out 2 changesets (bug 1673387) for bustage on gradient_cache_hardstop_clip.yaml. CLOSED TREE
Backed out changeset a315ba98577f (bug 1673387)
Backed out changeset 591c4143921f (bug 1673387)
2020-11-12 15:31:08 +02:00
Nicolas Silva a75b23d02b Bug 1673387 - Adjust reftest references. r=jnicol
Changing the size or number of layers of textures unfortunately usually leads to small sampling differences which requires fixing in the refetest references.

Differential Revision: https://phabricator.services.mozilla.com/D95680
2020-11-12 12:28:28 +00:00
Lee Salzman 238f5569e7 Bug 1670328 - reduce stack size for SwComposite threads. r=mattwoodrow
There appears to be a substantial overhead for trying to wake cold threads
from a thread pool (especially with rayon), so for now let's leave the existing
thread spawning in place, but reduce the stack size for individual threads.
Since these threads only call into SWGL's composite routines and do little else,
there isn't much harm in having a small stack size.

Differential Revision: https://phabricator.services.mozilla.com/D96748
2020-11-11 20:24:38 +00:00
Matt Woodrow 02b6bea865 Bug 1674154 - Don't create RenderExternalTextureHost when using SWGL. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D96337
2020-11-09 21:35:50 +00:00
alwu ff629c2074 Bug 1675326 - part4 : move webvtt related reftest to `dom/media/webvtt/test/reftest`. r=bryce
Differential Revision: https://phabricator.services.mozilla.com/D96106
2020-11-09 15:47:14 +00:00
Emilio Cobos Álvarez 771dd03229 Bug 1669854 - Add a single pageRanges print setting. r=nordzilla
... which is an array of pairs of ranges, and use it instead of the
existing printRange / startPage / endPage settings.

Differential Revision: https://phabricator.services.mozilla.com/D96093
2020-11-07 16:01:57 +00:00
Mats Palmgren a5415dec54 Bug 1674594 - Remove the obsolete nsMathMLmfencedFrame and associated pref and tests. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95451
2020-11-05 22:36:43 +00:00
Bogdan Tara 17e7c54035 Backed out 2 changesets (bug 1673387) for wrench/reftests/ failures CLOSED TREE DONTBUILD
Backed out changeset a755e87bf875 (bug 1673387)
Backed out changeset e4cf743d6916 (bug 1673387)
2020-11-05 20:00:08 +02:00
Nicolas Silva a5d95630e1 Bug 1673387 - Adjust reftest references. r=jnicol
Changing the size or number of layers of textures unfortunately usually leads to small sampling differences which requires fixing in the refetest references.

Differential Revision: https://phabricator.services.mozilla.com/D95680
2020-11-05 16:32:22 +00:00
Jonathan Kew 0e3cf9687e Bug 1665657 - Whitespace that will hang should not contribute to the min inline-size of a textframe. r=emilio
This affects a few of the examples in the text/white-space-2 reftest, but the changes look sensible;
more significantly from an interop point of view, there are specific web-platform reftests that are
currently failing, but will pass after the patch.

Differential Revision: https://phabricator.services.mozilla.com/D95811
2020-11-04 13:31:30 +00:00
Jonathan Kew 810bc229cc Bug 1674839 - Skip trimmable whitespace after a line-break when computing min inline-width for a textframe. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D95810
2020-11-04 13:31:16 +00:00
Matt Woodrow 96c437eeaf Bug 1674856 - Fiz fuzz annotations for Windows10 swr reftests. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95571
2020-11-03 23:51:40 +00:00
Bob Owen 9dea4325b4 Bug 1665413: Adjust fuzz for canvas-drawImage-alpha-2.html on Windows webrender with remote canvas disabled. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D95766
2020-11-03 19:48:45 +00:00
Ting-Yu Lin e841fbf716 Bug 1674863 Part 3 - Add GetIntrinsicSize() override for nsVideoFrame. r=emilio
Also, delete unused rendering context parameter for
GetVideoIntrinsicSize().

Differential Revision: https://phabricator.services.mozilla.com/D95579
2020-11-03 19:54:51 +00:00
Razvan Maries c032d89358 Backed out 3 changesets (bug 1674856) for Windows10 swr reftests perma failures. CLOSED TREE
Backed out changeset 8e52162cdf48 (bug 1674856)
Backed out changeset eb84f9c620ac (bug 1674856)
Backed out changeset 477a1070a971 (bug 1674856)
2020-11-03 21:43:26 +02:00
Matt Woodrow 66c1e2b63c Bug 1674856 - Fix fuzz annotations for Windows10 swr reftests. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95571
2020-11-03 18:16:36 +00:00
Lee Salzman 17c5e8a4aa Bug 1652266 - implement Gaussian blur fast-path for SWGL. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D95654
2020-11-03 17:03:32 +00:00
Lee Salzman 16d30bafd4 Bug 1674556 - adjust SWGL fuzz on layout/reftests/bugs/409659. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D95476
2020-11-02 01:57:17 +00:00
Lee Salzman d1f364349a Bug 1621454 - adjust fuzz for SWGL span shaders. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D95325
2020-10-31 13:30:57 +00:00
Butkovits Atila c4646c9aa3 Backed out 4 changesets (bug 1621454) for causing bustage src/swgl_ext.h. a=backout
Backed out changeset d0d03d5a81a8 (bug 1621454)
Backed out changeset 6675f76d6f11 (bug 1621454)
Backed out changeset 29943d5348df (bug 1621454)
Backed out changeset 80c0aaa81c2e (bug 1621454)
2020-10-31 12:28:47 +02:00