Move transform related properties from effects to box.

This commit is contained in:
Nazım Can Altınova 2016-12-23 19:53:07 +03:00
parent ed7945e747
commit 2e9d4df223
5 changed files with 129 additions and 124 deletions

View file

@ -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 {