reuse effects var in establishes_stacking_context (#35836)

Signed-off-by: Stephen Muss <stephenmuss@gmail.com>
This commit is contained in:
Stephen Muss 2025-03-07 23:22:32 +11:00 committed by GitHub
parent e928697982
commit 96554453b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -606,11 +606,11 @@ impl ComputedValuesExt for ComputedValues {
return true; return true;
} }
if self.has_transform_or_perspective(fragment_flags) { if !effects.filter.0.is_empty() {
return true; return true;
} }
if !self.get_effects().filter.0.is_empty() { if self.has_transform_or_perspective(fragment_flags) {
return true; return true;
} }