commit b528dd56433537d7fb5e4d86ab2fd730e904f1ac
parent 3c3da3086d1bd30865eac10add51ac9cc49d19a5
Author: Oriol Brufau <obrufau@igalia.com>
Date: Tue, 7 Oct 2025 12:23:20 +0000
Bug 1992880 - Fixups to allow Servo to compile. r=firefox-style-system-reviewers,emilio
- Fixup for https://phabricator.services.mozilla.com/D259803, which
added `:Context:for_property`.
- Fixup for https://phabricator.services.mozilla.com/D265595, which
removed `Stylist::get_animation`
- Fixup for https://phabricator.services.mozilla.com/D267062, which
added a method with Gecko-specific code.
Differential Revision: https://phabricator.services.mozilla.com/D267700
Diffstat:
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/servo/components/style/properties/properties.mako.rs b/servo/components/style/properties/properties.mako.rs
@@ -2041,6 +2041,7 @@ impl ComputedValues {
PropertyDeclarationId::Longhand(id) => {
let context = resolved::Context {
style: self,
+ for_property: id.into(),
};
let mut s = String::new();
self.computed_or_resolved_value(
diff --git a/servo/components/style/servo/animation.rs b/servo/components/style/servo/animation.rs
@@ -1495,7 +1495,7 @@ pub fn maybe_start_animations<E>(
continue;
}
- let keyframe_animation = match context.stylist.get_animation(name, element) {
+ let keyframe_animation = match context.stylist.lookup_keyframes(name, element) {
Some(animation) => animation,
None => continue,
};
diff --git a/servo/components/style/stylist.rs b/servo/components/style/stylist.rs
@@ -1611,6 +1611,7 @@ impl Stylist {
/// Returns the registered `@position-try-rule` animation for the specified name.
#[inline]
+ #[cfg(feature = "gecko")]
fn lookup_position_try<'a, E>(
&'a self,
name: &Atom,