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

345 Коммитов

Автор SHA1 Сообщение Дата
Matt Woodrow a6d0dff2b5 Bug 1707513 - Add 'drawSnapshot' mode to reftest harness, and annotate all current failures. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D114188
2021-05-10 00:28:01 +00:00
Alexandru Michis 4b2cad43d1 Backed out 2 changesets (bug 1707513) for causing reftest failures in partial-prerender-expansion-with-resolution-1.html
Backed out changeset f9bdd1b929f2 (bug 1707513)
Backed out changeset b76d28f3a159 (bug 1707513)
2021-05-08 22:13:23 +03:00
Matt Woodrow a77dc2167d Bug 1707513 - Add 'drawSnapshot' mode to reftest harness, and annotate all current failures. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D114188
2021-05-08 05:52:19 +00:00
Glenn Watson bb6799c7b5 Bug 1700539 - Allow negative scale in ScaleOffset type. r=gfx-reviewers,kvark
Previously, a transform with a negative scale would result in a
new coordinate system being created when updating the spatial
tree.

This meant that a primitive in that space with a clip in a parent
space would create a clip mask (and was thus unable to be promoted
to a compositor surface).

This change allows negative scales to be part of the same coord
system (since they are still axis-aligned with the parent) and
avoid a clip mask in this case.

Differential Revision: https://phabricator.services.mozilla.com/D109580
2021-03-31 00:48:48 +00:00
Brindusan Cristian 519ef52f2d Backed out changeset 9040424c0cb8 (bug 1700539) for wpt crashes. CLOSED TREE 2021-03-30 01:44:34 +03:00
Glenn Watson a062b3f7ec Bug 1700539 - Allow negative scale in ScaleOffset type. r=gfx-reviewers,kvark
Previously, a transform with a negative scale would result in a
new coordinate system being created when updating the spatial
tree.

This meant that a primitive in that space with a clip in a parent
space would create a clip mask (and was thus unable to be promoted
to a compositor surface).

This change allows negative scales to be part of the same coord
system (since they are still axis-aligned with the parent) and
avoid a clip mask in this case.

Differential Revision: https://phabricator.services.mozilla.com/D109580
2021-03-29 20:09:13 +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
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
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
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 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 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
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
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
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
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
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
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
Jonathan Kew b01264f7cb Bug 1673510 - Add reftest for vertical alternate of wavy dash alone or in bopomofo context. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95067
2020-10-29 08:18:21 +00:00
Ting-Yu Lin ee75f5d972 Bug 1669885 Part 2 - Support all replaced elements which have intrinsic sizes in CalculateHypotheticalPosition(). r=emilio
GetIntrinsicSizeFor() is used to get intrinsic size only for images.
This patch removes the restriction by removing the function, and uses
nsIFrame::GetIntrinsicSize() directly to get intrinsic sizes for all
replaced elements.

1183431-orthogonal-modes-8a.html passes because we can now get
<iframe>'s intrinsic size in CalculateHypotheticalPosition().

Differential Revision: https://phabricator.services.mozilla.com/D92874
2020-10-08 19:12:28 +00:00
Stephen A Pohl f6a573510f Bug 1657743: Fix reftests. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D86721
2020-08-21 14:01:44 +00:00
Emilio Cobos Álvarez 6e64162359 Bug 1620479 - Annotate reftests with native theme enabled. r=mstange
Most of them are straight-forward. Some fuzziness due to Skia around rounded
corners still. Some tests that already fail in other widgets as expected.

This is enough to green up reftests (but not WPT, yet) on Android, both with and
without WR enabled.

Nothing too concerning, all-in-all.

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

--HG--
extra : moz-landing-system : lando
2020-03-07 10:07:59 +00:00
Emilio Cobos Álvarez 43f69ea130 Bug 1430141 - Remove hardcoded <input type=number> width. r=jfkthame
Now that we're subclassing nsTextControlFrame we can use the regular replaced
element intrinsic sizing, rather than just faking it in the UA sheet with a
suspicious width declaration.

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

--HG--
extra : moz-landing-system : lando
2020-01-15 16:52:37 +00:00
Andrew Osmond 7243a387ca Bug 1575258 - Make text rasterize, render and snap glyphs consistently. r=lsalzman
The glyph pixel space in which we rasterized glyphs differed from how we
rendered the rasterized glyphs in the shader. They need to be in
agreement because the glyph subpixel offset selected during
rasterization depends on it. This patch should make the paths consistent
with each other.

Additionally, during animations, we now snap the reference frame
relative offset ignoring the impact of any animated transforms. This
helps with minimizing glyph wiggling during the transition.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 12:17:43 +00:00
Cosmin Sabou ac35928c0f Backed out changeset 4c4b65f3e7fb (bug 1575258) for causing wrench bustages. CLOSED TREE
--HG--
extra : rebase_source : b27ff2fc38aa0fb3d83aa3841ff92e5f1916a4c0
2019-11-05 15:54:39 +02:00
Andrew Osmond 19674dcc8a Bug 1575258 - Make text rasterize, render and snap glyphs consistently. r=lsalzman
The glyph pixel space in which we rasterized glyphs differed from how we
rendered the rasterized glyphs in the shader. They need to be in
agreement because the glyph subpixel offset selected during
rasterization depends on it. This patch should make the paths consistent
with each other.

Additionally, during animations, we now snap the reference frame
relative offset ignoring the impact of any animated transforms. This
helps with minimizing glyph wiggling during the transition.

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

--HG--
extra : moz-landing-system : lando
2019-11-05 11:58:01 +00:00
Lee Salzman 6e3b197012 Bug 1591996 - fuzz for Skia m79 update. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D50827

--HG--
extra : moz-landing-system : lando
2019-10-28 21:42:05 +00:00
Ting-Yu Lin 7fd6d04f2b Bug 1588025 - Make the custom content container a font inflation root. r=emilio
font-inflation-1e.html is adapted from font-inflation-1a.html with the
writing-mode set on <html> instead of <body>. It can trigger the
assertion "current writing mode should match that of our flow root" in
nsFontInflationData::FindFontInflationDataFor().

The root cause is: nsCanvasFrame can generate the position:absolute
custom content container to contain elements like AccessibleCaret. When
the container is constructed, the container's writing-mode is always
horizontal-rl, which is getting from nsCanvasFrame that uses
ViewportFrame's style.

If <html> has a vertical writing-mode, custom content container's used
mWritingMode becomes orthogonal to ViewportFrame, because <html>'s used
mWritingMode is propagated all the way up to ViewportFrame.

This patch solves the above issue by making the custom content container
a font inflation root, so FindFontInflationDataFor() stops at it instead
of finding all the way up to the ViewportFrame.

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

--HG--
extra : moz-landing-system : lando
2019-10-28 20:42:06 +00:00
Ting-Yu Lin fa66dbfbaa Bug 1102175 Part 2 - Modify the reference file for 817406-4.html, and update test expectations. r=jfkthame
In 817406-4.html, `<body style="direction: rtl;">` needs to propagate up
to `<html>`, so we should compare its result to 817406-1-ref.html.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 22:16:46 +00:00
Gurzau Raul 5542cedd05 Backed out 4 changesets (bug 1102175) for Android reftest failures at font-inflation-1a.html
Backed out changeset 33914610f60f (bug 1102175)
Backed out changeset 004a0cb8af9f (bug 1102175)
Backed out changeset 2ac28b335c3c (bug 1102175)
Backed out changeset 50b041e06f23 (bug 1102175)
2019-10-10 07:40:38 +03:00
Ting-Yu Lin 13b040befc Bug 1102175 Part 2 - Modify the reference file for 817406-4.html, and update test expectations. r=jfkthame
In 817406-4.html, `<body style="direction: rtl;">` needs to propagate up
to `<html>`, so we should compare its result to 817406-1-ref.html.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 22:11:09 +00:00
Lee Salzman fd28aa44da Bug 1583707 - enable text subpixel positioning on Android and Linux. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D47035

--HG--
extra : moz-landing-system : lando
2019-10-02 14:04:45 +00:00
Geoff Brown d964f2d601 Bug 1584290 - Enable many reftests on Android; r=geckoview-reviewers,snorp
Most of these tests have been disabled for a long time; they run well
in the current test environment.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 16:34:16 +00:00
L. David Baron e09d436481 Bug 1220352 - Make baseline positioning in vertical writing-mode independent of border and padding. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D47014

--HG--
extra : moz-landing-system : lando
2019-09-25 20:47:35 +00:00
Lee Salzman 4b7fcf7dca Bug 1547063 - fuzz for SharedFTFace. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D44498

--HG--
extra : moz-landing-system : lando
2019-09-16 16:46:12 +00:00
Cosmin Sabou 8113720646 Backed out 8 changesets (bug 1547063) for causing bug 1581466. a=backout
Backed out changeset c969a93b0ca7 (bug 1547063)
Backed out changeset 003f5a79c6a7 (bug 1547063)
Backed out changeset 2c7032b4d022 (bug 1547063)
Backed out changeset 23892ecc6ef8 (bug 1547063)
Backed out changeset af6e6807ece7 (bug 1547063)
Backed out changeset ebc71e607938 (bug 1547063)
Backed out changeset 772c3427c791 (bug 1547063)
Backed out changeset e74a67e2afe3 (bug 1547063)
2019-09-16 10:44:20 +03:00
Lee Salzman d1e33e3e11 Bug 1547063 - fuzz for SharedFTFace. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D44498

--HG--
extra : moz-landing-system : lando
2019-09-15 03:01:37 +00:00
Andrew Osmond ab39496ccc Bug 1574493 - Part 6. Add reftest annotations for newly failing/passing tests. r=jrmuizel,kvark
Differential Revision: https://phabricator.services.mozilla.com/D45539

--HG--
extra : moz-landing-system : lando
2019-09-14 16:16:59 +00:00
Ciure Andrei a4046ec458 Backed out 6 changesets (bug 1574493) for causing nested-sticky-2.html to perma fail CLOSED TREE
Backed out changeset 358746636448 (bug 1574493)
Backed out changeset 34aef5498237 (bug 1574493)
Backed out changeset 1f88e2031c76 (bug 1574493)
Backed out changeset 07c588b5ea10 (bug 1574493)
Backed out changeset 0685e8d3510e (bug 1574493)
Backed out changeset 15d4390220c4 (bug 1574493)
2019-09-13 19:26:50 +03:00
Andrew Osmond 35a0f13ba2 Bug 1574493 - Part 6. Add reftest annotations for newly failing/passing tests. r=jrmuizel,kvark
Differential Revision: https://phabricator.services.mozilla.com/D45539

--HG--
extra : moz-landing-system : lando
2019-09-13 14:03:28 +00:00
Ciure Andrei 8c3feea58a Backed out 6 changesets (bug 1574493) for causing nested-sticky-1.html to perma fail CLOSED TREE
Backed out changeset fdc25a90b0ef (bug 1574493)
Backed out changeset 0ce3c48c1f79 (bug 1574493)
Backed out changeset 326b9f96614b (bug 1574493)
Backed out changeset b0817c0aee77 (bug 1574493)
Backed out changeset 70d99c264df9 (bug 1574493)
Backed out changeset e5217ab4b668 (bug 1574493)
2019-09-13 16:17:47 +03:00
Andrew Osmond 4d96fe56c4 Bug 1574493 - Part 6. Add reftest annotations for newly failing/passing tests. r=jrmuizel,kvark
Differential Revision: https://phabricator.services.mozilla.com/D45539

--HG--
extra : moz-landing-system : lando
2019-09-13 10:48:37 +00:00
Gurzau Raul fe4bb6d539 Backed out 6 changesets (bug 1574493) for wrench failures at stacking-context-clip.yaml on a CLOSED TREE.
Backed out changeset 8a8736ac4e25 (bug 1574493)
Backed out changeset 4a3294e88823 (bug 1574493)
Backed out changeset 0c26ecdc1ddc (bug 1574493)
Backed out changeset 11257f7b3ad3 (bug 1574493)
Backed out changeset dcedc286ad9d (bug 1574493)
Backed out changeset 87f216e0753d (bug 1574493)
2019-09-12 18:34:07 +03:00
Andrew Osmond ff567c5ddb Bug 1574493 - Part 6. Add reftest annotations for newly failing/passing tests. r=jrmuizel,kvark
Differential Revision: https://phabricator.services.mozilla.com/D45539

--HG--
extra : moz-landing-system : lando
2019-09-12 12:42:52 +00:00
Ting-Yu Lin b8fee8f71c Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert
This patch is generated by the following script:

```
function remove_column_prefix() {
    echo "Renaming $1 to $2"
    find .\
         -type f\
         ! -path "./obj*"\
         ! -path "./.git"\
         ! -path "./.hg"\
         \( -name "*.html" -or\
            -name "*.xhtml" -or\
            -name "*.xht" -or\
            -name "*.xul" -or\
            -name "*.xml" -or\
            -name "*.css"  \)\
            -exec sed -i -e "s/$1/$2/g" "{}" \;
}

remove_column_prefix "-moz-columns" "columns"
remove_column_prefix "-moz-column-width" "column-width"
remove_column_prefix "-moz-column-count" "column-count"
remove_column_prefix "-moz-column-fill" "column-fill"
remove_column_prefix "-moz-column-gap" "column-gap"
remove_column_prefix "-moz-column-rule" "column-rule"
remove_column_prefix "-moz-column-rule-width" "column-rule-width"
remove_column_prefix "-moz-column-rule-color" "column-rule-color"
remove_column_prefix "-moz-column-rule-style" "column-rule-style"

```

Note: after running the above script, I reverted one minor change to the
file multicol-nested-column-rule-001.xht in the theoretically read-only
directory layout/reftests/w3c-css/received/css-multicol/.

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

--HG--
extra : moz-landing-system : lando
2019-09-05 21:37:32 +00:00