Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update all non-static Servo preference names to match new names #108

Closed
wants to merge 1 commit into from

Conversation

mrobinson
Copy link
Member

No description provided.

Copy link
Collaborator

@nicoburns nicoburns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine. We could consider dropping the _enabled suffixes in future.

@mrobinson
Copy link
Member Author

Yes, I agree. I've tried to keep the changes as small as possible, because the Servo change is unfortunately massive (and this shouldn't land until that is ready). In addition we can probably remove some of these such as the flexbox and transition-behavior preferences.

Comment on lines 191 to +192
gecko_pref="layout.css.transition-behavior.enabled",
servo_pref="layout.css.transition-behavior.enabled",
servo_pref="layout_css_transition_behavior_enabled",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the inconsistency with gecko prefs looks a bit weird. What's the reasoning for the rename?

Copy link
Member Author

@mrobinson mrobinson Jan 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unfortunate, but a flat data structure allows setting defaults by using impl Default. For more context see https://servo.zulipchat.com/#narrow/channel/263398-general/topic/Preferences.3A.20defaults.2C.20overrides.2C.20and.20embedders/near/482099593

Unfortunately, Servo is using the output of css-properties.json to generate CSSStyleDeclaration_generated.webidl which needs to properties to match between Stylo and Servo. I'm not sure exactly how to get around this. Maybe some sort of mapping in the Servo code generator?

@mrobinson
Copy link
Member Author

I'm going to go ahead and use mapping in the Servo code generator to accomplish this instead of modifying the Stylo preferences.

@mrobinson mrobinson closed this Jan 14, 2025
@mrobinson mrobinson deleted the rename-prefs branch January 16, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants