mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Move perspective and perspective-origin properties from effects to box.
This commit is contained in:
parent
dd2aa4195a
commit
aeb5d34394
6 changed files with 101 additions and 98 deletions
|
@ -1567,9 +1567,9 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
let overflow = base_flow.overflow.paint.translate(&-border_box_offset);
|
||||
|
||||
let transform = self.transform_matrix(&border_box);
|
||||
let perspective = match self.style().get_effects().perspective {
|
||||
let perspective = match self.style().get_box().perspective {
|
||||
Either::First(length) => {
|
||||
let perspective_origin = self.style().get_effects().perspective_origin;
|
||||
let perspective_origin = self.style().get_box().perspective_origin;
|
||||
let perspective_origin =
|
||||
Point2D::new(model::specified(perspective_origin.horizontal,
|
||||
border_box.size.width).to_f32_px(),
|
||||
|
|
|
@ -2370,7 +2370,7 @@ impl Fragment {
|
|||
|
||||
// TODO(mrobinson): Determine if this is necessary, since blocks with
|
||||
// transformations already create stacking contexts.
|
||||
if let Either::First(ref _length) = self.style().get_effects().perspective {
|
||||
if let Either::First(ref _length) = self.style().get_box().perspective {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue