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

11373 Коммитов

Автор SHA1 Сообщение Дата
Lee Salzman cf4a050155 Bug 1682194 - Accelerate cs_clip_rectangle in SWGL. r=jrmuizel
cs_clip_rectangle is slow because we evaluate distance AA for every fragment
the shader touches. With SWGL, we can do much better since we have control
over span. We calculate an inner opaque octagon which can just use a cheap
solid fill and an outer AA octagon within which we need to actually we do
AA and outside which we can just do another solid clear. This reduces most
of the cost of rounded-rectangles to just some setup work, a few fragments
of distance AA on the ends of a span, and large runs of solid color where
we don't have to do much work.

Differential Revision: https://phabricator.services.mozilla.com/D106658
2021-02-27 11:26:30 +00:00
Andrew Osmond 3c43f9b95a Bug 1686960 - Add jobs for OSX Software WebRender reftests. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D106567
2021-02-26 01:45:24 +00:00
Emilio Cobos Álvarez 18f0466bc6 Bug 1694864 - Remove prefers-contrast: forced as per CSSWG resolution. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D106485
2021-02-25 18:05:08 +00:00
Bob Owen be799e35a1 Bug 1692894 p1: Don't create devices for canvas when remote canvas is in use. r=jrmuizel
This also adds related DLLs to be delay loaded to xul's moz.build. This means
that if we don't create the devices they are not loaded at all.

Differential Revision: https://phabricator.services.mozilla.com/D105630
2021-02-25 15:10:57 +00:00
Stephen A Pohl a384bc0997 Bug 1694273: Add fuzz to css-grid-with-xul-item-1.xhtml for macOS when the non-native theme and webrender are enabled. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D106327
2021-02-24 23:24:47 +00:00
Daniel Holbert dd90573e35 Bug 1560242: Increase fuzzy tolerance for reftest flexbox-resizeviewport-1.xhtml to account for observed fuzziness levels. (no review; just a reftest annotation adjustment) DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D106159
2021-02-23 18:56:06 +00:00
Stephen A Pohl 7abea3417b Bug 1694193: Fix intermittent test failure of disabled-1.html due to turning on the non-native theme on macOS by adjusting fuzziness. DONTBUILD
Depends on D106140

Differential Revision: https://phabricator.services.mozilla.com/D106141
2021-02-23 15:12:19 +00:00
Stephen A Pohl 1480c1ee8b Bug 1694177: Fix intermittent test failure of reset-value.html due to turning on the non-native theme on macOS by adjusting fuzziness. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D106140
2021-02-23 15:12:19 +00:00
Emilio Cobos Álvarez 503c1ae27c Bug 1694059 - Green up swgl tests.
MANUAL PUSH: Orange on a CLOSED TREE
2021-02-23 13:02:33 +01:00
Emilio Cobos Álvarez 643d8c9b88 Bug 1693969 - Remove default styling for :-moz-ui-{valid,invalid} pseudo-classes. r=xidorn
Other browsers don't have this UI, and there's no way to know whether
the form will actually be validated, so it can cause false-positives.

Depends on D105968

Differential Revision: https://phabricator.services.mozilla.com/D105969
2021-02-23 11:26:17 +00:00
Emilio Cobos Álvarez b0bc0f75a5 Bug 1693969 - Remove <form novalidate> handling from :-moz-ui-{valid,invalid} pseudo-classes. r=smaug
There's no way to know whether the submission will actually be
validated, because formnovalidate on submit buttons is a thing (and even
if all the submit controls had formnovalidate, you could still submit
the form and validate it via form.submit()), so it seems better to make
these pseudo-classes not depend on this.

Differential Revision: https://phabricator.services.mozilla.com/D105968
2021-02-23 11:26:17 +00:00
Emilio Cobos Álvarez de7b30696a Bug 1694299 - Tweak a fuzzy annotation to also cover Cocoa+NNT.
Differential Revision: https://phabricator.services.mozilla.com/D106123
2021-02-23 11:19:12 +00:00
Emilio Cobos Álvarez 7f2b3314e0 Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange
We basically use a couple primitives to draw these
(PaintRoundedRectWithRadius, FillRect), so making the code a bit generic
implementing stuff with WebRender seems straight-forward.

I've kept using the fallback codepath for the bits that draw complex
paths like arrows and such, but the rest of the things should work with
this patch.

A thing I'm not too happy about is the scrollbar painting setup (requires a lot
of boilerplate), but modulo template hacks make nsNativeBasicTheme a template
that receives its super class as a parameter or something) it seems hard to do
better.

Differential Revision: https://phabricator.services.mozilla.com/D105931
2021-02-23 10:49:37 +00:00
smolnar 7f2e38a6b3 Backed out changeset 960cb2cf2009 (bug 1694059) for causing reftest failures. 2021-02-23 06:41:58 +02:00
Emilio Cobos Álvarez c0fec9f98e Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange
We basically use a couple primitives to draw these
(PaintRoundedRectWithRadius, FillRect), so making the code a bit generic
implementing stuff with WebRender seems straight-forward.

I've kept using the fallback codepath for the bits that draw complex
paths like arrows and such, but the rest of the things should work with
this patch.

A thing I'm not too happy about is the scrollbar painting setup (requires a lot
of boilerplate), but modulo template hacks make nsNativeBasicTheme a template
that receives its super class as a parameter or something) it seems hard to do
better.

Differential Revision: https://phabricator.services.mozilla.com/D105931
2021-02-23 02:58:47 +00:00
Daniel Holbert 220c7dbb13 Bug 1540635: Increase win7 fuzzy-pixel threshold for reftest 1295466-1.xhtml, to match the mismatch-count observed for intermittent fuzzy failures. (no review, just adjusting a test annotation) DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D106056
2021-02-23 01:49:21 +00:00
smolnar 79ca2f76fa Backed out changeset 4436a8bb02fd (bug 1694059) for causing reftest failures. CLOSED TREE 2021-02-23 04:17:14 +02:00
Emilio Cobos Álvarez cb286403d0 Bug 1694059 - Use WebRender to render most non-native-theme widgets when possible. r=mstange
We basically use a couple primitives to draw these
(PaintRoundedRectWithRadius, FillRect), so making the code a bit generic
implementing stuff with WebRender seems straight-forward.

I've kept using the fallback codepath for the bits that draw complex
paths like arrows and such, but the rest of the things should work with
this patch.

A thing I'm not too happy about is the scrollbar painting setup (requires a lot
of boilerplate), but modulo template hacks make nsNativeBasicTheme a template
that receives its super class as a parameter or something) it seems hard to do
better.

Differential Revision: https://phabricator.services.mozilla.com/D105931
2021-02-23 01:10:22 +00:00
Emilio Cobos Álvarez 89b87d3c09 Bug 1694129 - Hide :-moz-submit-invalid behind a pref. r=hiro
No other browser supports anything like this and we don't even have
internal users. Only uses of this I've found on the wild were just
resetting the box shadow internal styling we added in bug 582277 (and
since removed in bug 600151).

Differential Revision: https://phabricator.services.mozilla.com/D105955
2021-02-23 00:46:36 +00:00
Emilio Cobos Álvarez 15ff419df0 Bug 1694059 - Rename various nnt prefs. r=spohl,mstange
As per feedback in D105931.

Differential Revision: https://phabricator.services.mozilla.com/D105991
2021-02-22 20:05:35 +00:00
Stephen A Pohl baee2fc29b Bug 1693675: Designate 513153-2a.html and 513153-2b.html as expected fails when the non-native theme is enabled while we investigate and fix the underlying webrender bug. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105820
2021-02-22 13:05:08 +00:00
Lee Salzman d3c41e5679 Bug 1686244 - Avoid zero offset in radial gradient. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D105935
2021-02-22 05:52:41 +00:00
Lee Salzman 38845a4afa Bug 1686244 - Accelerate nearest repeat filtering in SWGL. r=jrmuizel
Some sites use pixelated/crisp image-rendering and/or 1x1 images as color
sources. When we hit these, we fall off the fast-path. Try to handle some
of those cases we are finding in the wild, namely nearest filtering and
repeat filtering.

There is some slight movement in the wrench fuzz due to the composite shader
being accelerated in situations it was previously not due to nearest filter.

Differential Revision: https://phabricator.services.mozilla.com/D105864
2021-02-22 04:14:39 +00:00
Lee Salzman 7d3755c3f6 Bug 1686244 - Accelerate radial gradients in SWGL. r=jrmuizel
The same optimization of looking for merged linear gradients can also be
applied to radial gradients by solving the quadratic equation to check
how large a span we can process within a given merged span. This allows
us to save a bunch of table lookup and some other math in the inner loops.

Differential Revision: https://phabricator.services.mozilla.com/D105858
2021-02-22 04:14:39 +00:00
Lee Salzman 6d46022aa7 Bug 1686244 - Accelerate linear gradients in SWGL. r=jrmuizel
For linear gradients, we are currently bottlenecked by looking up a gradient
table entry, doing interpolation, and converting to pixel formats for every
sample.

We can accelerate this by instead looking for contiguous segments of gradient
within the range of entries we need to sample and then interpolating these
as a single gradient. This also enables us to convert to relevant pixel formats
only when setting up this gradient, which greatly reduces the per-pixel processing
down to essentially a shift and add.

To enable this sort of crawling of the gradient table, the output gradients have
been modified such that each entry's step value will equal an adjacent entry's
step value if and only if they are from same gradient. We can ensure this by, in
the very rare case two segments of gradient have the same step, using the equivalent
of nextafter() to imperceptibly alter the value so that the invariant is maintained.

Differential Revision: https://phabricator.services.mozilla.com/D105716
2021-02-22 04:14:38 +00:00
Emilio Cobos Álvarez 6825bbc8f8 Bug 1693688 - Make the non-native theme not return minimum sizes for checkboxes (and most other widgets). r=spohl,mstange
This matches closer what Chrome and Safari do (Safari paints outside of
the box when this happens, but the layout box still respects the
author), see:

  data:text/html,<button style="padding: 0; width: 0">
  data:text/html,<input type=checkbox style="width: 0">

Etc. For checkboxes, this matches what OSX does, too.

Since we still want checkboxes to be slightly larger than what they'd be
otherwise, we add a hook to tweak it when non-native theme is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D105798
2021-02-20 00:13:10 +00:00
Noemi Erli 73493a49e5 Backed out 2 changesets (bug 1693688) for causing failures in browser_options-view-01.js CLOSED TREE
Backed out changeset d0bd198837ee (bug 1693688)
Backed out changeset e0b1f4b79d4b (bug 1693688)
2021-02-19 23:39:07 +02:00
Emilio Cobos Álvarez 44bbb7fda4 Bug 1693688 - Remove unnecessarily hard-coded checkbox size that we now honor from a test.
MANUAL PUSH: orange fix on a CLOSED TREE.
2021-02-19 21:22:32 +01:00
Emilio Cobos Álvarez d1915bcf15 Bug 1693688 - Make the non-native theme not return minimum sizes for checkboxes (and most other widgets). r=spohl,mstange
This matches closer what Chrome and Safari do (Safari paints outside of
the box when this happens, but the layout box still respects the
author), see:

  data:text/html,<button style="padding: 0; width: 0">
  data:text/html,<input type=checkbox style="width: 0">

Etc. For checkboxes, this matches what OSX does, too.

Since we still want checkboxes to be slightly larger than what they'd be
otherwise, we add a hook to tweak it when non-native theme is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D105798
2021-02-19 18:42:17 +00:00
Stephen A Pohl a570dfc9d1 Bug 1693764: Keep skipping radio-clamp-01.html and checkbox-clamp-01.html tests on Linux when the native theme is in use. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105796
2021-02-19 16:59:53 +00:00
Mats Palmgren 3f5d12857d Bug 1692607 - Make table columns without an originating cell have cell spacing if their corresponding <col> has a non-zero definite computed size/min-size. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D105543
2021-02-19 06:01:31 +00:00
Stephen A Pohl eb98d332fe Bug 1693623: Adjust fuzziness in various reftests on Windows when the non-native theme is enabled. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105676
2021-02-19 01:47:33 +00:00
Stephen A Pohl 4650f05a22 Bug 1691141: Ensure that previous fuzziness still applies to backplate-bg-image-008.html test on macOS when the non-native theme is enabled. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105707
2021-02-19 01:44:01 +00:00
Dorel Luca e2c767f2af Backed out changeset 5085098b5d9a (bug 1692607) for WPT failures incss/css-tables/column-track-merging.html. CLOSED TREE 2021-02-18 23:57:00 +02:00
Mats Palmgren d69e62a8fd Bug 1692607 - Make table columns without an originating cell have cell spacing if their corresponding <col> has a non-zero definite computed size/min-size. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D105543
2021-02-18 20:41:40 +00:00
Stephen A Pohl 6e0f534177 Bug 1693592: Mark checkbox-clamp-02.html as expected pass with the new non-native theme on Android. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D105650
2021-02-18 17:53:44 +00:00
Stephen A Pohl 5fadfce88b Bug 1693471: Adjust fuzziness for anonymous-block.html on macOS and Android when the non-native theme is enabled. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105592
2021-02-18 17:30:24 +00:00
Stephen A Pohl bb8b0d939c Bug 1693346: Adjust fuzziness for auto-size.html to make this test pass on macOS as well when the non-native theme is enabled. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105590
2021-02-18 17:30:15 +00:00
Stephen A Pohl b32a399ebc Bug 1693466: Mark radio-minimum-size.html as expected pass on macOS when the non-native theme is enabled. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D105588
2021-02-18 17:30:05 +00:00
Stephen A Pohl 282b1a2006 Bug 1691148: Adjust checkbox and radio button tests to work with the non-native theme enabled. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D105587
2021-02-18 16:54:45 +00:00
Ting-Yu Lin e84baf5c73 Bug 1674302 Part 4 - Fix reftests and adjust test expectations. r=dholbert
With this patch series, firefox now renders
flexbox-table-flex-items-1.html the same as Google Chrome. Hence the
modification to flexbox-table-flex-items-1-ref.html.

Both table-as-item-flex-cross-size.html and
table-as-item-stretch-cross-size.html contain multiple captions. We still
don't support multiple caption (bug 144517), but passing them means we
correctly subtract caption's block-size when overriding table flex
item's block-size.

We also don't have enough test coverage for table flex items in column
flex container. Add some reftests adapted from existing ones that tests
table flex items in a row flex containers

Differential Revision: https://phabricator.services.mozilla.com/D103440
2021-02-18 05:45:25 +00:00
Emilio Cobos Álvarez 5e826cb7c5 Bug 1673637 - Tweak cocoa fuzz in another test with a different ref.
Differential Revision: https://phabricator.services.mozilla.com/D105576
2021-02-18 05:38:10 +00:00
longsonr 826df957d6 Bug 1633038 - change selectSubString reftests to wait for MozReftestInvalidate r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D105240
2021-02-17 03:52:30 +00:00
Emilio Cobos Álvarez ca89009775 Bug 1692721 - nsNativeBasicTheme should handle outline-offset like non-auto outline does. r=mstange
I thought we didn't support outline-offset on auto-style outline.

The rect we get is already inflated, so we just got to compute the
radius using that.

Differential Revision: https://phabricator.services.mozilla.com/D105125
2021-02-16 10:25:32 +00:00
Jonathan Kew 4a675c2c2f Bug 1692498 - Let the emoji font pref override Unicode presentation style only if it's explicitly user-set. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D105102
2021-02-16 10:06:10 +00:00
Bogdan Tara 2a3a8792b0 Backed out changeset 95d35d57d5d6 (bug 1692498) for assertion failure at StaticPrefList_gfx.h CLOSED TREE 2021-02-15 23:23:33 +02:00
Jonathan Kew 1260865663 Bug 1692498 - Let the emoji font pref override Unicode presentation style only if it's explicitly user-set. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D105102
2021-02-15 20:11:17 +00:00
Emilio Cobos Álvarez 1b7ed77360 Bug 1673637 - Tweak fuzz range on cocoa as well.
MANUAL PUSH: Intermittent test annotation fix on a CLOSED TREE.
2021-02-14 00:36:55 +01:00
longsonr 17abb2b7e9 Bug 1691659 - don't re-enter ScheduleReflowSVG r=emilio
The testcase in the bug does assert under a debug Firefox here: https://searchfox.org/mozilla-central/source/layout/svg/SVGUtils.cpp#156 presumably fuzz testing has not uncovered this because of the mouse over part. I don't know how to write an automated test for this.

Note that scheduling a reflow will cause a repaint especially as we're setting state bits so we don't need to do a paint notify too.

Differential Revision: https://phabricator.services.mozilla.com/D104564
2021-02-13 07:45:31 +00:00
Emilio Cobos Álvarez 951a0342d6 Bug 1692380 - The intrinsic min isize of the marquee scroller should be zero. r=dholbert
I couldn't come up with a way to effectively cause this effect with
regular CSS I could put in marquee.css... But this matches the legacy
xul behavior and the chrome behavior, which should be compatible.

This undoes a reftest expectation change I included in bug 1618584. Our
behavior in those tests before this patch matches Safari, but Safari
passes the test I'm adding on this bug, so it is somewhat inconsistent.

Differential Revision: https://phabricator.services.mozilla.com/D105045
2021-02-12 19:32:22 +00:00
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