mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Move transform related properties from effects to box.
This commit is contained in:
parent
ed7945e747
commit
2e9d4df223
5 changed files with 129 additions and 124 deletions
|
@ -1336,7 +1336,7 @@ impl ComputedValues {
|
|||
return transform_style::T::flat;
|
||||
}
|
||||
|
||||
if effects.transform_style == transform_style::T::auto {
|
||||
if box_.transform_style == transform_style::T::auto {
|
||||
if box_.transform.0.is_some() {
|
||||
return transform_style::T::flat;
|
||||
}
|
||||
|
@ -1346,7 +1346,7 @@ impl ComputedValues {
|
|||
}
|
||||
|
||||
// Return the computed value if not overridden by the above exceptions
|
||||
effects.transform_style
|
||||
box_.transform_style
|
||||
}
|
||||
|
||||
pub fn transform_requires_layer(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue