diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2016-11-10 12:00:55 -0800 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-11-10 16:38:15 -0800 |
commit | bb5f351f4ac8febcb6669afeaf336e3e9fa34c39 (patch) | |
tree | f5f0f90c1ba3cfebe550badd2542a6617e8e0e5d /components/layout | |
parent | 86a56822470af14c184a2d3cc8f58d3633c9d28a (diff) | |
download | servo-bb5f351f4ac8febcb6669afeaf336e3e9fa34c39.tar.gz servo-bb5f351f4ac8febcb6669afeaf336e3e9fa34c39.zip |
stylo: support transform
Diffstat (limited to 'components/layout')
-rw-r--r-- | components/layout/display_list_builder.rs | 4 | ||||
-rw-r--r-- | components/layout/fragment.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index d5f3317cee5..0b2beedcff9 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -1813,7 +1813,7 @@ impl FragmentDisplayListBuilding for Fragment { fn transform_matrix(&self, stacking_relative_border_box: &Rect<Au>) -> Matrix4D<f32> { let mut transform = Matrix4D::identity(); - let operations = match self.style.get_effects().transform.0 { + let operations = match self.style.get_box().transform.0 { None => return transform, Some(ref operations) => operations, }; @@ -2036,7 +2036,7 @@ impl BlockFlowDisplayListBuilding for BlockFlow { self.base.clip = self.base.clip.translate(&-stacking_relative_border_box.origin); // Account for `transform`, if applicable. - if self.fragment.style.get_effects().transform.0.is_none() { + if self.fragment.style.get_box().transform.0.is_none() { return } let transform = match self.fragment diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index a0f09dd5dd1..f947c4f9493 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -2584,7 +2584,7 @@ impl Fragment { if self.style().get_effects().mix_blend_mode != mix_blend_mode::T::normal { return true } - if self.style().get_effects().transform.0.is_some() { + if self.style().get_box().transform.0.is_some() { return true } @@ -2638,7 +2638,7 @@ impl Fragment { _ => return self.style().get_position().z_index.number_or_zero(), } - if self.style().get_effects().transform.0.is_some() { + if self.style().get_box().transform.0.is_some() { return self.style().get_position().z_index.number_or_zero(); } |