aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2018-04-28 09:37:25 -0400
committerGitHub <noreply@github.com>2018-04-28 09:37:25 -0400
commitda43a33fb11d0ebd640d5173f98be9f3571959eb (patch)
treed803a5f9180d3ab8cfbff08dcc92f3ecd71e8421 /components/layout
parent625634a0275bb1ea1e918407368ab70990a728f1 (diff)
parent1eec31ace044963ff15e43e4edf2fe42aaa8ebdd (diff)
downloadservo-da43a33fb11d0ebd640d5173f98be9f3571959eb.tar.gz
servo-da43a33fb11d0ebd640d5173f98be9f3571959eb.zip
Auto merge of #20692 - emilio:gecko-sync-next, r=emilio,Manishearth,nox
style: Sync more changes from m-c. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20692) <!-- Reviewable:end -->
Diffstat (limited to 'components/layout')
-rw-r--r--components/layout/multicol.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/multicol.rs b/components/layout/multicol.rs
index 3659d50e219..487a878c08b 100644
--- a/components/layout/multicol.rs
+++ b/components/layout/multicol.rs
@@ -104,13 +104,13 @@ impl Flow for MulticolFlow {
self.block_flow.fragment.border_box.size.inline - padding_and_borders;
let column_width;
{
- let column_style = self.block_flow.fragment.style.get_column();
-
- let column_gap = match column_style.column_gap {
+ let style = &self.block_flow.fragment.style;
+ let column_gap = match style.get_position().column_gap {
Either::First(len) => len.0.to_pixel_length(content_inline_size).into(),
Either::Second(_normal) => self.block_flow.fragment.style.get_font().font_size.size(),
};
+ let column_style = style.get_column();
let mut column_count;
if let Either::First(column_width) = column_style.column_width {
let column_width = Au::from(column_width);