aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_caption.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2015-08-04 14:38:08 -0700
committerPatrick Walton <pcwalton@mimiga.net>2015-08-06 18:49:07 -0700
commited4172b2c6ead3010faf010835adfb5025286829 (patch)
treedd559eead6ca218c2607243ad6d3dab4d930da98 /components/layout/table_caption.rs
parentda06c2dda096bd5e2a8959c102c315f9838ed465 (diff)
downloadservo-ed4172b2c6ead3010faf010835adfb5025286829.tar.gz
servo-ed4172b2c6ead3010faf010835adfb5025286829.zip
layout: Make sure anonymous table flows are statically positioned.
The failing `float-applies-to-*` CSS 2.1 tests never really should have been passing in the first place; they depend on floats inside fixed-layout tables working properly, which they don't. Closes #6078. Closes #6709. Closes #6858.
Diffstat (limited to 'components/layout/table_caption.rs')
-rw-r--r--components/layout/table_caption.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/components/layout/table_caption.rs b/components/layout/table_caption.rs
index 003f03c92c2..24cc912af66 100644
--- a/components/layout/table_caption.rs
+++ b/components/layout/table_caption.rs
@@ -10,7 +10,6 @@ use block::BlockFlow;
use context::LayoutContext;
use flow::{FlowClass, Flow, OpaqueFlow};
use fragment::{Fragment, FragmentBorderBoxIterator};
-use wrapper::ThreadSafeLayoutNode;
use euclid::{Point2D, Rect};
use util::geometry::Au;
@@ -25,10 +24,9 @@ pub struct TableCaptionFlow {
}
impl TableCaptionFlow {
- pub fn from_node_and_fragment(node: &ThreadSafeLayoutNode, fragment: Fragment)
- -> TableCaptionFlow {
+ pub fn from_fragment(fragment: Fragment) -> TableCaptionFlow {
TableCaptionFlow {
- block_flow: BlockFlow::from_node_and_fragment(node, fragment, None)
+ block_flow: BlockFlow::from_fragment(fragment, None)
}
}
}