diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2015-03-05 08:43:36 -0800 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2015-03-09 14:22:36 -0700 |
commit | cabbbcc97801e53dff4d1111cba66b0054216ee3 (patch) | |
tree | 2f10735e89010ad3f45c654448bd1ee34f0c85c5 /components/layout/block.rs | |
parent | 8221bfc3ef854d90ecb9a0df3aa490310cbe8469 (diff) | |
download | servo-cabbbcc97801e53dff4d1111cba66b0054216ee3.tar.gz servo-cabbbcc97801e53dff4d1111cba66b0054216ee3.zip |
Keep track of the containing block writing mode.
This is necessary for correctly converting `relative_containing_block_size`
to physical coordinates.
Diffstat (limited to 'components/layout/block.rs')
-rw-r--r-- | components/layout/block.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs index 356232f90f8..456ee73d09b 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -1804,6 +1804,7 @@ impl Flow for BlockFlow { stacking_relative_position_of_absolute_containing_block: stacking_relative_position_of_absolute_containing_block_for_children, relative_containing_block_size: self.fragment.content_box().size, + relative_containing_block_mode: self.base.writing_mode, layers_needed_for_positioned_flows: self.base .flags .contains(LAYERS_NEEDED_FOR_DESCENDANTS), @@ -1836,6 +1837,9 @@ impl Flow for BlockFlow { &self.base .absolute_position_info .relative_containing_block_size, + self.base + .absolute_position_info + .relative_containing_block_mode, CoordinateSystem::Self); let clip = self.fragment.clipping_region_for_children(&clip_in_child_coordinate_system, &stacking_relative_border_box); @@ -1939,6 +1943,9 @@ impl Flow for BlockFlow { &self.base .absolute_position_info .relative_containing_block_size, + self.base + .absolute_position_info + .relative_containing_block_mode, CoordinateSystem::Parent) .translate(stacking_context_position)); } |