aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/lib.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-12-07 13:40:57 +0100
committerSimon Sapin <simon.sapin@exyr.org>2019-12-07 14:25:16 +0100
commitfa1adf2ad31206a3dcade6015569c1266fd95ecd (patch)
treeeb1ace3358c557ddfe3dc341a0471929de4a28a2 /components/layout_2020/lib.rs
parent40ad9a722d3824dfb2fcbf598b77b3a46659ba03 (diff)
downloadservo-fa1adf2ad31206a3dcade6015569c1266fd95ecd.tar.gz
servo-fa1adf2ad31206a3dcade6015569c1266fd95ecd.zip
Containing blocks contains styles rather than just a writing mode
Diffstat (limited to 'components/layout_2020/lib.rs')
-rw-r--r--components/layout_2020/lib.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/components/layout_2020/lib.rs b/components/layout_2020/lib.rs
index 654c35f6941..f0c56afa6f1 100644
--- a/components/layout_2020/lib.rs
+++ b/components/layout_2020/lib.rs
@@ -29,20 +29,19 @@ pub use flow::{BoxTreeRoot, FragmentTreeRoot};
use crate::geom::flow_relative::Vec2;
use crate::style_ext::ComputedValuesExt;
use style::computed_values::position::T as Position;
-use style::logical_geometry::WritingMode;
use style::properties::ComputedValues;
use style::values::computed::{Length, LengthOrAuto};
use style::Zero;
-struct ContainingBlock {
+struct ContainingBlock<'a> {
inline_size: Length,
block_size: LengthOrAuto,
- mode: WritingMode,
+ style: &'a ComputedValues,
}
-struct DefiniteContainingBlock {
+struct DefiniteContainingBlock<'a> {
size: Vec2<Length>,
- mode: WritingMode,
+ style: &'a ComputedValues,
}
/// https://drafts.csswg.org/css2/visuren.html#relative-positioning