tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 89e077094a322ffe5cb14cf2c01d675e615f23e8
parent 76250e12d931995fded6ef5e12c9bce79fdbeaaa
Author: Oriol Brufau <obrufau@igalia.com>
Date:   Tue,  7 Oct 2025 23:16:10 +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:
Mservo/components/style/properties/properties.mako.rs | 1+
Mservo/components/style/servo/animation.rs | 2+-
Mservo/components/style/stylist.rs | 1+
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 @@ -1618,6 +1618,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,