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

81790 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez dbfb8e8f05 Bug 1863620 - Set referrer info before calling SetComplete(). r=hiro
This makes sure that the URLExtraData contains the right referrer info,
and thus that mChromeRulesEnabled is correct.

Remove some useless includes while at it.

Differential Revision: https://phabricator.services.mozilla.com/D193047
2023-11-09 12:08:00 +00:00
Emilio Cobos Álvarez 95d7f69217 Bug 1863402 - Simplify top layer fixed list set-up and back out bug 1799036. r=dholbert
The top layer fixed list CB and the regular fixed list CB are always the
same (the viewport frame). We're currently using two different
AbsoluteFrameList for these, but that's wrong. Make sure to use the same
AbsoluteFrameList. This makes sure that placeholders for the fixed list
are properly ordered.

Revert bug 1799036 (for now at least), since this also fixes that issue
in a better, less breaking way.

While at it, also insert the top layer abspos list after the
non-top-layer one. This is needed so that a non-top-layer abspos element
and a top layer abspos element are laid out in the right order.

We don't need to share a list for those tho, because all top-layer
abspos items are also abspos containers themselves, so a non-top-layer
descendant of a top layer item can't escape the top layer chain. This
fixes a couple non-fatal asserts.

Differential Revision: https://phabricator.services.mozilla.com/D192908
2023-11-09 11:29:59 +00:00
Ting-Yu Lin c8883f9be0 Bug 1863855 - Disable high frequent intermittent tests for AccessibleCaret. r=dholbert
Disabling `test_minimum_select_one_character_textarea` and
`test_minimum_select_one_character_textarea_disabled` is OK since we still test
minimum select one character on other types elements.

`test_carets_not_show_after_key_scroll_down_and_up()` is not robust since the
selection highlight often disappears after page down and page up. I feel it is
OK to disable it since bug 1833081 (where test is added) is an edge case that
requires some user interaction, and AccessibleCaret code does not change much
these days.

Differential Revision: https://phabricator.services.mozilla.com/D193155
2023-11-09 06:32:57 +00:00
Emilio Cobos Álvarez 0c2cda4dd8 Bug 1863620 - Make animation traversal work for style roots other than the document element. r=boris
This fixes some flickering when transitioning doc-level anonymous
content.

Differential Revision: https://phabricator.services.mozilla.com/D193046
2023-11-08 20:48:56 +00:00
Norisz Fay 33e4b4bf8e Backed out changeset 2c84b8379060 (bug 1863620) for causing failures on test_group_mouseevents.html | helper_drag_root_scrollbar_mouse_not_over_thumb.html CLOSED TREE 2023-11-09 03:44:13 +02:00
Boris Chiou 9cd466df70 Bug 1583429 - Keep repeat() information for specified/computed value for subgrid. r=layout-reviewers,firefox-style-system-reviewers,emilio
We introduce a different rust type for `<line-name-list>` for subgrid,
which keeps `repeat()` information at computed time. At this moment,
we don't expand `repeat()`.

Also, we precompute the possible expanded list length, so we can expand
`repeat(auto-fill)` in a single iteration in nsGridContainerFrame. If we
don't have this precompution, we have to go through `<line-name-list>`
first to know how many items we have after expanding `repeat(Integer)`.

Differential Revision: https://phabricator.services.mozilla.com/D192876
2023-11-08 21:44:36 +00:00
Emilio Cobos Álvarez 9f47428819 Bug 1863620 - Make animation traversal work for style roots other than the document element. r=boris
This fixes some flickering when transitioning doc-level anonymous
content.

Differential Revision: https://phabricator.services.mozilla.com/D193046
2023-11-08 20:48:56 +00:00
Stanca Serban 9065361f47 Backed out changeset 269afd5c7d29 (bug 1852513) for causing wr failures in oklab-gradient.html. CLOSED TREE 2023-11-08 08:36:19 +02:00
Tooru Fujisawa f5cf3b7309 Bug 1839519 - Part 2: Convert reftest JSM to ESM. r=tnikkel
Depends on D192840

Differential Revision: https://phabricator.services.mozilla.com/D192841
2023-11-08 00:01:58 +00:00
Tooru Fujisawa d612bd8504 Bug 1839519 - Part 1: Stop loading jsm into window context. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D192840
2023-11-08 00:01:58 +00:00
Ashley Hale e97bb30b34 Bug 1852513 - Use more gradient color stops for interpolation r=tlouw,emilio
Differential Revision: https://phabricator.services.mozilla.com/D190903
2023-11-07 22:28:50 +00:00
Sandor Molnar ae081ec358 Backed out changeset 36cd4787833a (bug 1724089) for causing xpc failures on docshell/test/unit/test_subframe_stop_after_parent_error.js CLOSED TREE 2023-11-08 03:04:53 +02:00
Gregory Pappas 2eec0c40d8 Bug 1724089 - Remove browser.tabs.remote.autostart pref r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jgraham,extension-reviewers,mossop,sparky,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D192136
2023-11-07 21:44:01 +00:00
Natalia Csoregi eca38a5e75 Backed out changeset 910d9a3cb77f (bug 1852513) for causing failures on css-color-4-colors-default-to-oklab-gradient.html. CLOSED TREE 2023-11-07 10:16:35 +02:00
Ashley Hale 2dc77ca1be Bug 1852513 - Use more gradient color stops for interpolation r=tlouw,emilio
This enables layout.css.gradient-color-interpolation-method.enabled pref, as these gradient types are now renderable.

Differential Revision: https://phabricator.services.mozilla.com/D190903
2023-11-07 06:34:57 +00:00
Cristian Tuns 81bc26556e Backed out changeset 4953e7db7d08 (bug 1857618) because of some performance regressions CLOSED TREE 2023-11-06 17:46:51 -05:00
Emilio Cobos Álvarez f3cfe85712 Bug 1789214 - When forcing colors without a color-scheme, compute prefers-color-scheme based on them. r=morgan
This requires moving some code around to PreferenceSheet, but that makes
stuff actually a bit simpler.

Depends on D192574

Differential Revision: https://phabricator.services.mozilla.com/D192575
2023-11-06 19:59:38 +00:00
Emilio Cobos Álvarez 7c79b75571 Bug 1789214 - In Windows HCM, derive system color-scheme from the HCM theme background. r=win-reviewers,mhowell
We might want to do this more generally at the PreferencesSheet level
all the times we're forcing colors, but this should be uncontroversial
and fix the default behavior.

Differential Revision: https://phabricator.services.mozilla.com/D192574
2023-11-06 19:59:37 +00:00
Emilio Cobos Álvarez be8b88445c Bug 1855861 - Make stylesheet load events only fire if the sheet has an owner node. r=smaug
This matches the behavior of other browsers, and avoids having to keep
alive the link element and thus associated document etc for too long.

Differential Revision: https://phabricator.services.mozilla.com/D192834
2023-11-06 17:05:10 +00:00
Emilio Cobos Álvarez 9a23481b1c Bug 1861726 - Make StyleImage::GetResolution account for CSS zoom. r=layout-reviewers,jfkthame
This fixes rendering of background-image when CSS zoom is in effect.

Note that we want to scale the resolution by the _inverse_ of the
zoom, since having a higher image resolution means that the CSS
size gets shrunk and viceversa.

Differential Revision: https://phabricator.services.mozilla.com/D192130
2023-11-06 10:24:53 +00:00
Jonathan Kew 41ce345193 Bug 1472876 - Make empty URL in CSS compute to empty (rather than about:invalid), as required by the spec. r=firefox-style-system-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D192809
2023-11-06 10:15:27 +00:00
Robert Longson 433bcba24e Bug 1863206 - Remove virtual keyword from overrides and stop prefixing variables that don't need prefixing r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192807
2023-11-05 18:04:53 +00:00
Jonathan Kew f07e49b438 Bug 1862659 - Don't try to do fake-smallcaps rendering if the font lacks the required uppercase characters. r=layout-reviewers,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D192616
2023-11-04 19:02:04 +00:00
Emilio Cobos Álvarez 963fd8d292 Bug 1862924 - Remove devtools.toolbox.force-chrome-prefs. r=devtools-reviewers,nchevobbe
Instead, use forced-color-adjust: none to disable HCM forced colors in
DevTools, for now. It's a more straight-forward way of doing it.

Differential Revision: https://phabricator.services.mozilla.com/D192669
2023-11-03 21:46:49 +00:00
owlishDeveloper 5dbae0b525 Bug 1855514 - Disable currently failing M-xorig tests on Fission Android and start running M-xorig for Fission Android on central and autoland r=extension-reviewers,jmaher,robwu
Differential Revision: https://phabricator.services.mozilla.com/D192647
2023-11-03 19:26:26 +00:00
David Shin fd9a55673d Bug 1862900: Fix build bustage. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D192687
2023-11-03 18:05:38 +00:00
Robert Longson 87a1d9c8eb Bug 1862411 - simplify array access by using range based loops and LastElement r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192465
2023-11-03 16:22:23 +00:00
Robert Longson f4ff77a8a4 Bug 1861736 - don't invalidate when SVGRenderingObserverSet is destroyed r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D192406
2023-11-03 16:16:32 +00:00
Cathie Chen 1a3d0bd724 Bug 1668136 - Set visible the content relevancy of an element with content-visibility:auto if its descendant is called scrollIntoView, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D186943
2023-11-03 15:37:29 +00:00
Jonathan Kew 5ea2e66c02 Bug 1834320 - Don't apply justification spacing when there are further tabs on the line. r=layout-reviewers,emilio
The spec explicitly requires that we "must ensure that tab stops continue to line up"
when applying justification to content with preserved white-space that includes tabs.
So when we're computing justification spacing adjustments, we must not apply adjustments
if there is a preserved tab later on the same line; only text after the last tab is to
be justified.

Differential Revision: https://phabricator.services.mozilla.com/D191996
2023-11-03 09:06:29 +00:00
Makoto Kato afd374a967 Bug 1856084 - Destroy nsLanguageAtomService even if nsLayoutStatics isn't destroyed. r=platform-i18n-reviewers,dminor
When looking pernos debug session, since `nsLayoutStatics` isn't destroyed,
`nsLanguageAtomService` isn't destroyed. It seems to be some objects are
leaked according to stdout and stderr on debug build.

So we should destroy this service to avoid other debug assertion even if
`nsLayoutStatics` isn't destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D192607
2023-11-03 03:56:41 +00:00
Sean Feng 539e32202b Bug 1722322 - Implement LargestContentfulPaint r=emilio
Spec: https://w3c.github.io/largest-contentful-paint

Differential Revision: https://phabricator.services.mozilla.com/D151079
2023-11-02 20:53:36 +00:00
Jonathan Kew 10361ccabe Bug 1862249 - patch 2 - Recognize ideographic space (U+3000) as trimmable, so it can hang at end-of-line. r=layout-reviewers,emilio
Fixing this also resolves a couple of text-transform test failures, because what was
failing was not the text-transform itself, but rather the trailing-ideographic-space
treatment.

Differential Revision: https://phabricator.services.mozilla.com/D192396
2023-11-02 19:33:31 +00:00
Ting-Yu Lin 84409099da Bug 1861539 - Use logical ReflowChild() and FinishReflowChild() to reflow table column group & table column. r=layout-reviewers,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D192041
2023-11-02 18:37:10 +00:00
Sandor Molnar a4163792c6 Backed out 7 changesets (bug 1722322) for causing bp-nu bustages
Backed out changeset 0ebd32e273b8 (bug 1722322)
Backed out changeset 7a75717f127c (bug 1722322)
Backed out changeset c2a6440a83d7 (bug 1722322)
Backed out changeset 9955756855bd (bug 1722322)
Backed out changeset 37fccb407777 (bug 1722322)
Backed out changeset f52b1f28f753 (bug 1722322)
Backed out changeset 0121c8cf5d2f (bug 1722322)
2023-11-02 21:27:24 +02:00
Sean Feng 611093989e Bug 1722322 - Implement LargestContentfulPaint r=emilio
Spec: https://w3c.github.io/largest-contentful-paint

Differential Revision: https://phabricator.services.mozilla.com/D151079
2023-11-02 17:04:47 +00:00
David Shin 77c37e8065 Bug 1833679 - DevTools warnings infrastructure. r=nchevobbe,emilio
Differential Revision: https://phabricator.services.mozilla.com/D191333
2023-11-02 15:29:12 +00:00
Natalia Csoregi 3d9f0b337e Backed out changeset d55b7b5e620c (bug 1852513) for causing gradient-eval-* failures. CLOSED TREE 2023-11-02 13:51:15 +02:00
Ashley Hale 556a43e13e Bug 1852513 - Use more gradient color stops for interpolation r=tlouw,emilio
This fixes gradient interpolation when CSS4 gradient color interpolation methods are enabled (pref is off by default), or if color management is set to ALL (pref is off by default).

Differential Revision: https://phabricator.services.mozilla.com/D190903
2023-11-02 07:08:09 +00:00
Emilio Cobos Álvarez 77a79110dc Bug 1861726 - Remove unused StyleImage::GetIntrinsicSize. r=boris
It doesn't account for various subtleties like aspect ratios etc, so
let's remove it.

Depends on D192131

Differential Revision: https://phabricator.services.mozilla.com/D192132
2023-11-01 17:17:13 +00:00
Emilio Cobos Álvarez e3d3714eba Bug 1861726 - Expose some CSS zoom boilerplate to C++. r=boris
Not making use of Zoom() / Unzoom() on this patch, but will need it, so
doesn't hurt...

Differential Revision: https://phabricator.services.mozilla.com/D192131
2023-11-01 17:17:12 +00:00
Norisz Fay 37cbcfe9be Backed out changeset 6e5782df6da1 (bug 1668136) for causing wpt failures on content-visibility-vs-scrollIntoView-003.html CLOSED TREE 2023-11-01 18:02:54 +02:00
Norisz Fay 458130d63a Backed out changeset 09a6e2a57a02 (bug 1847503) for causing canvas failures on canvas-display-p3-drawImage.https.html 2023-11-01 17:58:20 +02:00
Cathie Chen eeb53397a8 Bug 1668136 - Set visible the content relevancy of an element with content-visibility:auto if its descendant is called scrollIntoView, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D186943
2023-11-01 12:01:51 +00:00
Emilio Cobos Álvarez c25b3b246f Bug 1862061 - Remove -moz-font-smoothing-background-color. r=gfx-reviewers,desktop-theme-reviewers,devtools-reviewers,dao,gw
See comments in the bug for reasoning. macOS hasn't used subpixel AA for
quite a while.

Emulating this macOS AA on vibrant backgrounds was the only point of
this feature.

This allows to simplify the WebRender code quite a bit, too.

Differential Revision: https://phabricator.services.mozilla.com/D192311
2023-11-01 09:14:29 +00:00
Emilio Cobos Álvarez 40c5cc4d11 Bug 1861954 - Remove vibrancy on the osx sidebar. r=desktop-theme-reviewers,dao
This accidentally broke in 119 and nobody noticed on the whole nightly +
beta cycle (other than due to bug 1861669).

Given sidebars are not super-commonly used these days, this makes the
code a bit less fragile, and it still looks pretty good IMO. Also, since
we want to get rid of <xul:tree>s, this is one less thing to worry
about.

Depends on D192102

Differential Revision: https://phabricator.services.mozilla.com/D192103
2023-11-01 09:05:51 +00:00
Tiaan Louw 1568f5568f Bug 1847503 - Map colors into gamut limits before rendering. r=layout-reviewers,emilio
When colors are converted to sRGB to render onto the display, make sure
that they are within sRGB gamut limits.

Gamut mapping is implemented according to:
https://drafts.csswg.org/css-color-4/#gamut-mapping

The color-mix-non-srgb-001 test is checking the expected result in
sRGB, which happens to be out of gamut limits, but because the test
is for color-mix and not gamut mapping, I changed the expected
results to the color space of the mix.

The svg reftest now has an increased fuzzy to allow for the final colors
to be gamut mapped. Gamut mapping is dependent of available hardware, so
we can't pin down exact colors for the result.

Differential Revision: https://phabricator.services.mozilla.com/D191083
2023-11-01 08:28:33 +00:00
Narcis Beleuzu 21af958c87 Backed out changeset e5e1bc9736a5 (bug 1847503) for reftest failures on anim-css-floodcolor-overflow-1-from-by.svg . CLOSED TREE 2023-11-01 03:22:46 +02:00
Tiaan Louw ef59084b47 Bug 1847503 - Map colors into gamut limits before rendering. r=layout-reviewers,emilio
When colors are converted to sRGB to render onto the display, make sure
that they are within sRGB gamut limits.

Gamut mapping is implemented according to:
https://drafts.csswg.org/css-color-4/#gamut-mapping

The color-mix-non-srgb-001 test is checking the expected result in
sRGB, which happens to be out of gamut limits, but because the test
is for color-mix and not gamut mapping, I changed the expected
results to the color space of the mix.

The svg reftest now has an increased fuzzy to allow for the final colors
to be gamut mapped. Gamut mapping is dependent of available hardware, so
we can't pin down exact colors for the result.

Differential Revision: https://phabricator.services.mozilla.com/D191083
2023-11-01 00:06:11 +00:00
Razvan Cojocaru b2c34cc36b Bug 1819411 - Use APZ even when scrollbar dragging doesn't start over the thumb. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D190910
2023-10-31 20:47:04 +00:00