aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/inline.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/main/layout/inline.rs')
-rw-r--r--src/components/main/layout/inline.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/main/layout/inline.rs b/src/components/main/layout/inline.rs
index c6e0c06d82b..dc05d359ed7 100644
--- a/src/components/main/layout/inline.rs
+++ b/src/components/main/layout/inline.rs
@@ -5,6 +5,7 @@
use css::node_style::StyledNode;
use layout::box_::{Box, CannotSplit, GenericBox, IframeBox, ImageBox, ScannedTextBox, SplitDidFit};
use layout::box_::{SplitDidNotFit, UnscannedTextBox, InlineInfo};
+use layout::box_::{TableColumnBox, TableRowBox, TableWrapperBox, TableCellBox, TableBox};
use layout::context::LayoutContext;
use layout::display_list_builder::{DisplayListBuilder, ExtraDisplayListData};
use layout::floats::{FloatLeft, Floats, PlacementInfo};
@@ -761,10 +762,12 @@ impl Flow for InlineFlow {
(text_offset, line_height - text_offset, text_ascent)
},
- GenericBox | IframeBox(_) => {
+ GenericBox | IframeBox(_) | TableBox | TableCellBox | TableRowBox |
+ TableWrapperBox => {
let height = cur_box.border_box.get().size.height;
(height, Au::new(0), height)
},
+ TableColumnBox(_) => fail!("Table column boxes do not have height"),
UnscannedTextBox(_) => {
fail!("Unscanned text boxes should have been scanned by now.")
}