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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user