Bug 1952776: Reduce scope of context variable (r=emilio)

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

Differential Revision: https://phabricator.services.mozilla.com/D240804
This commit is contained in:
Nico Burns
2025-03-11 11:52:24 +00:00
parent 8a5cd55092
commit 93d70cc49a

View File

@@ -1998,11 +1998,11 @@ impl ComputedValues {
/// Serializes the computed value of this property as a string.
pub fn computed_value_to_string(&self, property: PropertyDeclarationId) -> String {
let context = resolved::Context {
style: self,
};
match property {
PropertyDeclarationId::Longhand(id) => {
let context = resolved::Context {
style: self,
};
let mut s = String::new();
self.computed_or_resolved_value(
id,