aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-09-15 09:29:39 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-09-15 09:29:39 -0700
commit13ae369dec3f02b5f992f1c6c276cde646ef39e9 (patch)
tree0c28823d06eb8a6b424a69b83e9ad66f72869f2d /components/layout/table.rs
parent00150b8c712ee2eaac7bc383f3b7e996ac3449fc (diff)
parentcab15531b55d1b52a774e5ad5f71be667cb8de48 (diff)
downloadservo-13ae369dec3f02b5f992f1c6c276cde646ef39e9.tar.gz
servo-13ae369dec3f02b5f992f1c6c276cde646ef39e9.zip
Merge pull request #3341 from glennw/table-cb
Implement generated_containing_block_rect for TableFlow. Fixes #3337.
Diffstat (limited to 'components/layout/table.rs')
-rw-r--r--components/layout/table.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/layout/table.rs b/components/layout/table.rs
index 98569d68c95..1708ceca23a 100644
--- a/components/layout/table.rs
+++ b/components/layout/table.rs
@@ -18,6 +18,7 @@ use wrapper::ThreadSafeLayoutNode;
use servo_util::geometry::Au;
use servo_util::geometry;
+use servo_util::logical_geometry::LogicalRect;
use std::fmt;
use style::computed_values::table_layout;
@@ -290,6 +291,10 @@ impl Flow for TableFlow {
fn compute_absolute_position(&mut self) {
self.block_flow.compute_absolute_position()
}
+
+ fn generated_containing_block_rect(&self) -> LogicalRect<Au> {
+ self.block_flow.generated_containing_block_rect()
+ }
}
impl fmt::Show for TableFlow {