Commit Graph

15969 Commits

Author SHA1 Message Date
David Shin
938b045ce3 Bug 1960032: Introduce new ctors for anchor-resolved types that are LengthPercentage. r=jwatt
`mozilla::UniqueOrNonOwningPtr` requires construction with ctors.

Differential Revision: https://phabricator.services.mozilla.com/D246659
2025-04-29 23:34:52 +00:00
Cathy Lu
9b532e96df Bug 1940052 - Apply fixed position css to Android pip media query r=emilio,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D246364
2025-04-29 14:33:50 +00:00
Jonathan Kew
c68d97e633 Bug 1962602 - Give gfxFontGroup::GetMetricsForCSSUnits flags to control whether it should load extra font resources to measure the ZERO or WATER IDEOGRAPH characters. r=firefox-style-system-reviewers,emilio
This makes the style system pass flags down to GetMetricsForCSSUnits to specify
whether it needs the 'ch' or 'ic' units, which may trigger downloading additional
font resources.

There should be no change in user-visible behavior, except by observing (e.g. in
the devtools network panel) what resources end up being fetched in an example
like the reporter's.

Differential Revision: https://phabricator.services.mozilla.com/D246780
2025-04-26 16:22:46 +00:00
Jonathan Watt
70466896b1 Bug 1962604. Remove pref layout.css.page-orientation.enabled. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D246712
2025-04-25 11:59:04 +00:00
Erich Gubler
d58d10bee0 Bug 1961207 - build(rust): shim-upgrade itertools 0.10.0 → 0.14.0 r=supply-chain-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D245935
2025-04-22 12:03:45 +00:00
Keith Cirkel
cb712337bb Bug 1960561 - allow :dir, :lang, :-moz-locale-dir, after ::part r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D245551
2025-04-16 11:18:18 +00:00
Stanca Serban
3074b08cc8 Backed out changeset 806992d03500 (bug 1960561) for causing build bustages. 2025-04-16 12:17:41 +03:00
Keith Cirkel
0ee67ea0ad Bug 1960561 - allow :dir, :lang, :-moz-locale-dir, after ::part r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D245551
2025-04-16 08:50:21 +00:00
Nico Burns
759dda7318 Bug 1933015: Allow stylo to compile for wasm32-unknown-unknown (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D230018
2025-04-15 21:28:23 +00:00
David Shin
d682b4c3da Bug 1923959: Make axis for anchor function resolution optional. r=jwatt
Axis is determines validity for `anchor()` only. For properties allowing
just `anchor-size()`, just not providing it seems worth the overhead of
carrying the optional value around.

Differential Revision: https://phabricator.services.mozilla.com/D240862
2025-04-08 02:29:17 +00:00
Emilio Cobos Álvarez
171a2eef5c Bug 1958733 - Use non-native GTK tooltip drawing. r=stransky
This looks pretty good, is simpler, and should avoid issues where the
CSS colors and the widget colors are out of sync like bug 1958596.

Differential Revision: https://phabricator.services.mozilla.com/D244537
2025-04-07 09:28:54 +00:00
Oriol Brufau
cf2bc95277 Bug 1958404 - Remove Display::is_atomic_inline_level(). r=emilio
Just a piece of code that is no longer used by Servo.
It was also missing the `display: inline-grid` case.

Differential Revision: https://phabricator.services.mozilla.com/D244442
2025-04-03 21:44:38 +00:00
David Shin
9dcac8482f Bug 1957747: Remove ResolveWithAnchor. r=firefox-style-system-reviewers,emilio
Since we're replacing anchor functions in calc nodes in advance, we only need
to resolve percentage bases.

Differential Revision: https://phabricator.services.mozilla.com/D244082
2025-04-02 21:30:54 +00:00
David Shin
f0a45366f2 Bug 1957747: Replace anchor in calc without resolving basis. r=firefox-style-system-reviewers,emilio
With the previous patch, where anchor-function-containing calc nodes is of its
own type, we have no concern for wasted clones. When callers receive the anchor
resolved values, it's guaranteed to have any reference to anchor functions
resolved, so that the value can be used as auto/keywords/length-percentage
without any modification.

Differential Revision: https://phabricator.services.mozilla.com/D244081
2025-04-02 21:30:54 +00:00
David Shin
8a1bc3b226 Bug 1957747: Add a separate type for CalcLengthPercentage containing anchor functions. r=firefox-style-system-reviewers,emilio
... At least for now, pay the price at parse time, by trying to parse calc
nodes disallowing anchor functions, then retrying allowing them.

Differential Revision: https://phabricator.services.mozilla.com/D244080
2025-04-02 21:30:54 +00:00
Nico Burns
c42e5e7f9c Bug 1957541: Change rounding behaviour of length_percentage values (r=firefox-style-system-reviewers,supply-chain-reviewers)
These functions are only used by Servo (not Gecko), which has
been verified by removing them and checking that Gecko still
compiles.

Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D243751
2025-04-02 18:46:02 +00:00
Nico Burns
fca95adb1b Bug 1957541: Enable font-variation-settings property for servo engine (r=jwatt)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D243750
2025-04-02 18:46:02 +00:00
Nico Burns
d979fcdd68 Bug 1957541: Enable publishing for all Stylo crates (r=firefox-style-system-reviewers,emilio)
These crates are now being published by the Servo project.

Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D243749
2025-04-02 18:46:02 +00:00
Nico Burns
c3f5ffb992 Bug 1957541: Add description to stylo crates that don't have one (r=firefox-style-system-reviewers,emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D243748
2025-04-02 18:46:01 +00:00
Nico Burns
0250931c9f Bug 1957541: Update feature flagging in cascade (r=firefox-style-system-reviewers,emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D243747
2025-04-02 18:46:01 +00:00
Nico Burns
9d0bcd5b31 Bug 1957541: Fix typo in servo GenericFilter parameter (r=firefox-style-system-reviewers,emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D243746
2025-04-02 18:46:01 +00:00
Nico Burns
e36652b056 Bug 1957541: Fix typo in servo pref name (r=firefox-style-system-reviewers,emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D243745
2025-04-02 18:46:01 +00:00
Nico Burns
3c36a4b44d Bug 1957541: Only count enabled prioritary properties (r=jwatt)
Servo does not enable all priortary properties so when counting them we
need to filter by those which are enabled.

Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D243744
2025-04-02 18:46:01 +00:00
Emilio Cobos Álvarez
da7a004328 Bug 1957689 - Track local SVG references independently. r=longsonr
Differential Revision: https://phabricator.services.mozilla.com/D243996
2025-04-02 15:38:59 +00:00
Jan-Niklas Jaeschke
bf3e8a887d Bug 1761043, part 3 - hidden=until-found: Setting hidden=until-found elements as content-visibility: hidden instead of display: none. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D241449
2025-04-02 08:22:46 +00:00
pstanciu
ad161885ec Backed out changeset 5afd7589bab6 (bug 1942001) for causing mass build bustages CLOSED TREE 2025-04-02 11:10:20 +03:00
Martin Robinson
d91198afde Bug 1942001 - Remove some stylo preferences for Servo that are always enabled r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D234464
2025-04-02 07:35:20 +00:00
Martin Robinson
92d34ad77c Bug 1956771 - Update rustdoc about PseudoElementCascadeType r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D243301
2025-03-28 10:59:00 +00:00
Jonathan Watt
99c0d2083b Bug 1931721. Remove Servo -webkit-text-decorations-in-effect code. r=emilio,Oriol
Differential Revision: https://phabricator.services.mozilla.com/D229243
2025-03-24 13:54:56 +00:00
Oriol Brufau
9ee59e55a2 Bug 1955871 - Enable the fit-content() sizing function for Servo. r=emilio
Also remove a bunch of dead code.

Imported from https://github.com/servo/stylo/pull/153

Differential Revision: https://phabricator.services.mozilla.com/D242665
2025-03-24 10:34:10 +00:00
Swarup Ukil
ae20e24979 Bug 1915096 - Ensure CSS Zoom (effective_zoom) is applied correctly when font-size is specified by keywords. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D241936
2025-03-19 16:06:34 +00:00
Luke Warlow
04b2e7fa2e Bug 1953557: Update CSS parser to allow pseudo elements after element-backed pseudo elements r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D241392
2025-03-19 13:29:01 +00:00
Luke Warlow
4467217321 Bug 1901037: Implement ::details-content pseudo element r=emilio,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D241100
2025-03-17 22:17:22 +00:00
Zach Hoffman
e4625509a6 Bug 1910646 - Do not assert that variables are computed before substituting references. r=firefox-style-system-reviewers,emilio
If the value of a custom property is a CSS-wide keyword in fallback, it
will not already be computed.

Differential Revision: https://phabricator.services.mozilla.com/D241773
2025-03-17 18:49:32 +00:00
Emilio Cobos Álvarez
b14be4c008 Bug 1954145 - Make the IS_IN_PSEUDO_ELEMENT_SUBTREE flag more specific. r=dshin
We only need it for ::first-line (and things inheriting from it) really.

Differential Revision: https://phabricator.services.mozilla.com/D241659
2025-03-17 13:23:51 +00:00
Emilio Cobos Álvarez
9b223d6485 Bug 1953974 - Remove an invalid assertion. r=dholbert
In this case the center is positive, min and max are negative, so we
know the center is greater than both.

But we still can't compare the min and max because they're different
units, so it can't be simplified.

Differential Revision: https://phabricator.services.mozilla.com/D241722
2025-03-15 15:45:44 +00:00
Emilio Cobos Álvarez
bd84b97e9b Bug 1954140 - Don't forbid display: contents on element-backed pseudo-elements. r=lukewarlow
This will be tested after a few other related changes land by tests like
testing/web-platform/tests/html/rendering/the-details-element/details-blockification.html

Differential Revision: https://phabricator.services.mozilla.com/D241723
2025-03-15 15:44:56 +00:00
Nico Burns
26fc7b8489 Bug 1953984 - Update doc output path for Servo builds (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241576
2025-03-15 10:50:50 +00:00
Nico Burns
f61dbc3f05 Bug 1953984 - Only collect system font keywords in Gecko builds (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241575
2025-03-15 10:50:50 +00:00
Nico Burns
ce98f5d305 Bug 1953984 - Fix servo version of KeyframesName::to_css (r=emilio)
The previous version required a "mut" annotation on the closure for
Servo no annotation for Gecko which is annoying to conditionally apply.

So it has been rewritten to use a plain function instead of a closure.

Differential Revision: https://phabricator.services.mozilla.com/D241574
2025-03-15 10:50:49 +00:00
Nico Burns
e98f4e8914 Bug 1953984 - Adjust apply_prioritary_properties for Servo (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241573
2025-03-15 10:50:49 +00:00
Nico Burns
a41b5aba2d Bug 1953984 - Update servo-only property declaration macro (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241572
2025-03-15 10:50:48 +00:00
Nico Burns
67403b312c Bug 1953984 - Fix size_of tests for Servo (r=emilio)
Servo and Gecko sometimes have different sized structs, so we
conditionally compile so we can assert them separately.

Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241571
2025-03-15 10:50:48 +00:00
Nico Burns
c13a273630 Bug 1953984 - Fix README documentation link (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241570
2025-03-15 10:50:48 +00:00
Nico Burns
3df443eac4 Bug 1953984 - Make font-size:math gecko-only (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241569
2025-03-15 10:50:47 +00:00
Nico Burns
f85f0f783a Bug 1953984 - Unify Servo and Gecko implementations of FontSizeKeyword::to_length (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241568
2025-03-15 10:50:47 +00:00
Nico Burns
5f01ba5679 Bug 1953984 - Make spelling and grammar error underlines gecko-only (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241567
2025-03-15 10:50:46 +00:00
Nico Burns
786d5ebcd4 Bug 1953984 - Add dummy Servo matches function for MozPrefFeature (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241565
2025-03-15 10:50:46 +00:00
Nico Burns
d469fb0d8e Bug 1953984 - Fix AnimationFillMode::match_keywords (r=emilio)
This function now matches AnimationPlayState::match_keywords
and AnimationDirection::match_keywords above.

Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241564
2025-03-15 10:50:45 +00:00
Nico Burns
c48b35b804 Bug 1953984 - Uncfg import used by both Gecko and Servo (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D241563
2025-03-15 10:50:45 +00:00