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

10790 Коммитов

Автор SHA1 Сообщение Дата
Cristina Horotan fae61692c7 Backed out 2 changesets (bug 1845095) for causing wpt failures at is-pseudo-containing-complex-in-has.html CLOSED TREE
Backed out changeset 28c18b287904 (bug 1845095)
Backed out changeset fb0e9233e07d (bug 1845095)
2023-07-28 19:07:26 +03:00
David Shin 9e02c40dd1 Bug 1845095: Make sure caching and filtering for relative selector isn't used in invalidation. r=emilio
Unify the invalidation flag used for nth index cache for this purpose.

Differential Revision: https://phabricator.services.mozilla.com/D184526
2023-07-28 13:13:35 +00:00
David Shin 398ecb5c1f Bug 1845095: Bloom filter for fast-rejecting `:has()`. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184525
2023-07-28 13:13:34 +00:00
Emilio Cobos Álvarez 55478c757e Bug 1845636 - Allow browser chrome to enable the non-native theme. r=dshin
I tried to reftest this, but actually the non-native-theme is already
enabled on all reftests, so...

Differential Revision: https://phabricator.services.mozilla.com/D184740
2023-07-27 22:09:10 +00:00
Emilio Cobos Álvarez 30adf86c52 Bug 1844900 - Improve memory usage with nesting. r=dshin
The idea is to share more memory when expanding nested rules (so being
able to share the whole :is() / :where() allocation), and same for the
Dependency computation (basically, share it across all descendant
selectors).

This prevents exponential explosion in cases like the one in bug 1844446
if you replace tag selectors by class selectors (so that we build
invalidation maps for them).

Differential Revision: https://phabricator.services.mozilla.com/D184283
2023-07-27 21:38:10 +00:00
Natalia Csoregi c181ea32cf Backed out changeset c59d018a76ed (bug 1844900) for causing bustages. CLOSED TREE 2023-07-28 00:04:59 +03:00
Emilio Cobos Álvarez 1f450024cb Bug 1844900 - Improve memory usage with nesting. r=dshin
The idea is to share more memory when expanding nested rules (so being
able to share the whole :is() / :where() allocation), and same for the
Dependency computation (basically, share it across all descendant
selectors).

This prevents exponential explosion in cases like the one in bug 1844446
if you replace tag selectors by class selectors (so that we build
invalidation maps for them).

Differential Revision: https://phabricator.services.mozilla.com/D184283
2023-07-27 20:24:23 +00:00
Natalia Csoregi cf7c6627a9 Backed out changeset 5939e79c9c50 (bug 1845636) for causing multiple failures moz-theme related. CLOSED TREE 2023-07-27 22:32:23 +03:00
Iulian Moraru 8ec6e4224d Backed out 2 changesets (bug 1845095) for causing build bustages related to DummyAtom: PrecomputedHash. CLOSED TREE
Backed out changeset c3549dbe2420 (bug 1845095)
Backed out changeset 2b7db53664a6 (bug 1845095)
2023-07-27 21:31:19 +03:00
Emilio Cobos Álvarez adfbcc4b42 Bug 1845636 - Allow browser chrome to enable the non-native theme. r=dshin
I tried to reftest this, but actually the non-native-theme is already
enabled on all reftests, so...

Differential Revision: https://phabricator.services.mozilla.com/D184740
2023-07-27 18:08:01 +00:00
Emilio Cobos Álvarez e3aa78816f Bug 1845679 - Add an internal light-dark() function to allow defining colors reacting to color-scheme. r=dshin
This implement something like what's proposed in
https://github.com/w3c/csswg-drafts/issues/7561, but the simplest
version possible, until issues are resolved.

This will allow the front-end to experiment with it and use it (and we
can update to the standard feature once there's a spec for it).

Differential Revision: https://phabricator.services.mozilla.com/D184680
2023-07-27 18:04:23 +00:00
David Shin e928053513 Bug 1845095: Make sure caching and filtering for relative selector isn't used in invalidation. r=emilio
Unify the invalidation flag used for nth index cache for this purpose.

Differential Revision: https://phabricator.services.mozilla.com/D184526
2023-07-27 18:03:38 +00:00
David Shin 50d297a299 Bug 1845095: Bloom filter for fast-rejecting `:has()`. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184525
2023-07-27 18:03:38 +00:00
Emilio Cobos Álvarez 2e99fa25ff Bug 1845623 - Remove more dead native appearance values. r=mhowell
Everytime I look at this code I find more stuff to remove... :)

-moz-default-appearance: groupbox is not used anywhere.

menulist-text is, but it does nothing (it only would prevent drawing a
background, but we don't specify another background anyways).

Differential Revision: https://phabricator.services.mozilla.com/D184647
2023-07-27 14:39:09 +00:00
Frederic Wang 75a319e2e4 Bug 1845641 - Remove runtime preference for lquote/rquote. r=emilio CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D184661
2023-07-27 13:31:18 +00:00
Noemi Erli 410db5c6df Backed out changeset 414d16a3f4d9 (bug 1845641) for causing build bustages in Decimal.h CLOSED TREE 2023-07-27 18:02:15 +03:00
Frederic Wang e651359cd7 Bug 1845641 - Remove runtime preference for lquote/rquote. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184661
2023-07-27 13:31:18 +00:00
Noemi Erli 6afe6f8b4b Backed out changeset 665285aadf62 (bug 1845641) for causing failures in quotes-1.xhtml 2023-07-27 15:20:57 +03:00
Emilio Cobos Álvarez 5986728210 Bug 1845690 - Don't expose -moz-headerbar system colors to content. r=stransky
I forgot to make these chrome-only.

Move them a bit further down after the standard colors while at it.

Differential Revision: https://phabricator.services.mozilla.com/D184682
2023-07-27 10:43:08 +00:00
Frederic Wang 5709f3323e Bug 1845641 - Remove runtime preference for lquote/rquote. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184661
2023-07-27 09:57:32 +00:00
Emilio Cobos Álvarez 1827dc203b Bug 1845540 - Remove some unused win-specific system colors and appearance values. r=mstange,devtools-reviewers,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D184597
2023-07-26 20:57:47 +00:00
Emilio Cobos Álvarez 37525ae110 Bug 1845540 - Remove some unused macOS system colors. r=mstange,desktop-theme-reviewers,dao
-moz-mac-secondaryhighlight has one user, but it's the same as
-moz-cellhighlight so just use that.

Differential Revision: https://phabricator.services.mozilla.com/D184596
2023-07-26 20:48:14 +00:00
Emilio Cobos Álvarez 7719dba185 Bug 1845540 - Remove -moz-windows-default-theme and -moz-mac-graphite-theme. r=dao,pip-reviewers,mhowell
The former is just `not (prefers-contrast)` now. The later is unused.

Differential Revision: https://phabricator.services.mozilla.com/D184602
2023-07-26 18:22:26 +00:00
Tiaan Louw 08b184704e Bug 1845294 - abs() function should simplify correctly. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184477
2023-07-26 09:32:51 +00:00
Emilio Cobos Álvarez b5d6ad43a2 Bug 1844832 - Share document-independent struct allocations. r=boris
In bug 1844755, a bunch of the time is spent allocating initial values.

There used to be more document-dependent initial values before
bug 1834487, but now that's only about default-font and direction.

This improves the situation by sharing initial structs that don't depend
on the document.

Differential Revision: https://phabricator.services.mozilla.com/D184256
2023-07-26 09:16:26 +00:00
Emilio Cobos Álvarez 7bf3b0e527 Bug 1844195 - Avoid duplicating rust and C++ display definitions. r=layout-reviewers,jfkthame
We need to inline Self::new() so cbindgen generates the constants, which
is kinda lame, but seems better than duplicating the values and type
definitions.

Differential Revision: https://phabricator.services.mozilla.com/D183921
2023-07-26 06:46:32 +00:00
Frederic Wang 57c82947ac Bug 1667090 - Implement CSS font-size: math and math-depth properties. r=emilio,devtools-reviewers
The font-size math keyword is implemented. It behaves as a font-size: 1em
with the extra fixup due to math-level change (and other legacy MathML
attributes). After that change, the CSS for math-level / font-size: math
is behaving as per the specification, so the math-depth is turned in
nightly.

The adjusting function for font-size: math is modified so that it's
executed only if both font-size: math (otherwise the spec says no scale
should apply) and math-depth (otherwise the scale is 1 and function exists
early anyway) are set on the element.

Differential Revision: https://phabricator.services.mozilla.com/D91744
2023-07-26 06:15:12 +00:00
Iulian Moraru 0c0945174b Backed out changeset f3394bd0f554 (bug 1844195) for causing conflicts with another backout. 2023-07-26 04:00:57 +03:00
Emilio Cobos Álvarez e56bda6fd8 Bug 1844195 - Avoid duplicating rust and C++ display definitions. r=layout-reviewers,jfkthame
We need to inline Self::new() so cbindgen generates the constants, which
is kinda lame, but seems better than duplicating the values and type
definitions.

Differential Revision: https://phabricator.services.mozilla.com/D183921
2023-07-25 21:14:39 +00:00
Iulian Moraru da43d00caa Backed out changeset 3a3f2d5937c4 (bug 1844195) for causing mass failures. CLOSED TREE 2023-07-25 23:07:30 +03:00
Emilio Cobos Álvarez c70814ab25 Bug 1844195 - Avoid duplicating rust and C++ display definitions. r=layout-reviewers,jfkthame
We need to inline Self::new() so cbindgen generates the constants, which
is kinda lame, but seems better than duplicating the values and type
definitions.

Differential Revision: https://phabricator.services.mozilla.com/D183921
2023-07-25 18:40:30 +00:00
David Shin 700bb9288f Bug 1822177: Simple relative selector caching. r=emilio
This simple relative selector cache avoids O(n^2) behaviour when the relative
selector is not in the subject position. e.g. `.anchor:has(.a) ~ .subject`,
with a DOM tree .anchor + .subject + .. + .subject.

Differential Revision: https://phabricator.services.mozilla.com/D184373
2023-07-25 14:23:27 +00:00
Zach Hoffman 98ad5a0692 Bug 1844295 - Don't duplicate ParsingMode in rust and C++. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184409
2023-07-25 10:00:59 +00:00
Boris Chiou a0d6bab413 Bug 1786161 - Support rect() function. r=devtools-reviewers,emilio
Note that rect() computes to the equivalent inset() function as well.
i.e. Given `rect(t r b l)`, the equivalent function is
`inset(t calc(100% - r) calc(100% - b) l)`.

The implementation is straightforward, and we don't have to change
anything in cpp because it is always `inset()` when building the gfx::Path.

The tests for clip-path will be added in the following patch.

Differential Revision: https://phabricator.services.mozilla.com/D183528
2023-07-25 02:32:43 +00:00
David Shin f8ba4f823c Bug 1843103: Proper cousin style sharing for non-rightmost `:has()` selectors. r=emilio
Previous code actually could not distinguish when `:has()` is on the rightmost
side or not. This caused every candidate containing any `:has()` selector to be
outright refused from being inserted into style sharing cache.

Differential Revision: https://phabricator.services.mozilla.com/D183405
2023-07-24 12:49:57 +00:00
Frederic Wang 9ad02dda76 Bug 1788637 - Remove MathML preferences scriptminsize_attribute and scriptsizemultiplier_attribute. r=emilio
This commit removes the runtime flags and related code for the
scriptminsize and scriptsizemultiplier, which have been disabled by
default for a while. The hardcoded default values
kMathMLDefaultScriptSizeMultiplier and kMathMLDefaultScriptMinSizePt
are still used in some places and are preserved for now.

Differential Revision: https://phabricator.services.mozilla.com/D157426
2023-07-24 10:02:24 +00:00
Cristian Tuns 37fd0fee76 Backed out changeset b1b105230b62 (bug 1842478) for causing mochitest failures in /test_transitions_and_zoom.html CLOSED TREE 2023-07-23 13:36:41 -04:00
Gregory Pappas ba080b120a Bug 1842478 - Remove layout.css.individual-transform.enabled pref r=boris,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184176
2023-07-23 14:24:59 +00:00
Sandor Molnar 290f09f319 Backed out changeset da009889019a (bug 1842478) for causing build bustage in gfx/layers/AnimationInfo.cpp CLOSED TREE 2023-07-23 16:59:19 +03:00
Gregory Pappas 7d6e837414 Bug 1842478 - Remove layout.css.individual-transform.enabled pref r=boris,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D184176
2023-07-23 13:17:59 +00:00
Gregory Pappas 079271d2c3 Bug 1842475 - Remove layout.css.color-scheme.enabled pref r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184013
2023-07-22 17:19:10 +00:00
Emilio Cobos Álvarez 7c8325b92c Bug 1844874 - Avoid an allocation in DocumentCascadeData::default(). r=zrhoffman
Differential Revision: https://phabricator.services.mozilla.com/D184271
2023-07-21 22:55:29 +00:00
Zach Hoffman bb24843439 Bug 1844501 - Replace some CustomIdent::from_ident usage with CustomIdent::parse r=emilio
The remaining CustomIdent::from_ident usages do case-insensitive
comparisons (which should stay, since <custom-ident> is case-sensitive)
or reuse the token/ident instead of only creating a CustomIdent.

Differential Revision: https://phabricator.services.mozilla.com/D184207
2023-07-21 16:16:48 +00:00
Narcis Beleuzu c77fcb8d11 Backed out changeset 0b78ab35b4e2 (bug 1842479) for mochitest failure on test_moz_prefixed_properties.html . CLOSED TREE 2023-07-21 00:54:10 +03:00
Gregory Pappas 543de9d394 Bug 1842479 - Remove layout.css.motion-path.enabled pref r=boris
Differential Revision: https://phabricator.services.mozilla.com/D184018
2023-07-20 20:31:24 +00:00
Emilio Cobos Álvarez 5babee8075 Bug 1844242 - Remove now unused windows appearance code. r=handyman,devtools-reviewers
After bug 1843663 these aren't used on Windows.

Some values aren't used anywhere so I removed them as well.

Differential Revision: https://phabricator.services.mozilla.com/D183945
2023-07-20 19:50:11 +00:00
Tiaan Louw c6d0960751 Bug 1836557 - The result of a color-mix() is always in the modern color syntax r=emilio
We convert the resulting colors of a color-mix() to srgb modern syntax.
This allows the result of a color-mix to be out of gamut, which is now
what the spec requires.

Discussion here: https://github.com/w3c/csswg-drafts/issues/8444

Differential Revision: https://phabricator.services.mozilla.com/D183647
2023-07-20 17:41:48 +00:00
Gregory Pappas 70d7faebc0 Bug 1842474 - Remove layout.css.accent-color.enabled pref r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184009
2023-07-20 17:21:55 +00:00
Cristina Horotan 8c8969086e Backed out changeset 88d90d0dc2e3 (bug 1842474) for causing build bustages at ServoCSSPropList.mako.py CLOSED TREE 2023-07-20 19:30:01 +03:00
Gregory Pappas b9b4dc302e Bug 1842474 - Remove layout.css.accent-color.enabled pref r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184009
2023-07-20 16:13:07 +00:00