Repository navigation
Allow LonghandsToSerialize to check for initial value regardless of pref - #534
Merged
Merged
Conversation
This is a cherry-pick of b43c3e7 from upstream (https://phabricator.services.mozilla.com/D343762). `LonghandsToSerialize` serialization typically needs to check if longhands are set to their initial values. This was specially tedious when a longhand is gated by a pref in Servo, but not in Gecko. Because then the value will be wrapped in an `Option` only in Servo. This patch adds some helper methods that take care of that, simplifying the code. No behavior change.
mrobinson
approved these changes
Nov 24, 2026
This was referenced Nov 25, 2026
Loirooriol
added a commit
to Loirooriol/stylo
that referenced
this pull request
Nov 25, 2026
…alue()` (servo#536) If a property is disabled, then treat it as having its initial value. Fixes a mistake from servo#534 Servo PR: servo/servo#50203 Signed-off-by: Oriol Brufau <[email protected]>
Loirooriol
added a commit
to Loirooriol/servo
that referenced
this pull request
Nov 25, 2026
…ss of pref (servo#50203) Bumps Stylo to servo/stylo#534 + servo/stylo#536 fix Testing: None, no behavior change Signed-off-by: Oriol Brufau <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a cherry-pick of b43c3e7 from upstream (https://phabricator.services.mozilla.com/D343762).
LonghandsToSerializeserialization typically needs to check if longhands are set to their initial values.This was specially tedious when a longhand is gated by a pref in Servo, but not in Gecko. Because then the value will be wrapped in an
Optiononly in Servo.This patch adds some helper methods that take care of that, simplifying the code.
No behavior change.