aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/table_wrapper.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-10-30 13:27:35 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-10-31 12:24:40 -0700
commit08fc7c2795ebfbb53b409ad563e9b1131c99f669 (patch)
tree7cba247ef4993af57d6106ef6e7265680dab73e6 /components/layout/table_wrapper.rs
parent7712052e137cdefc567d17366b233c060cf2477b (diff)
downloadservo-08fc7c2795ebfbb53b409ad563e9b1131c99f669.tar.gz
servo-08fc7c2795ebfbb53b409ad563e9b1131c99f669.zip
layout: Make incremental reflow more fine-grained by introducing "reflow
out-of-flow" and "reconstruct flow" damage bits. This is needed for good performance on the maze solver.
Diffstat (limited to 'components/layout/table_wrapper.rs')
-rw-r--r--components/layout/table_wrapper.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/layout/table_wrapper.rs b/components/layout/table_wrapper.rs
index 60d65b91570..b4494b129f0 100644
--- a/components/layout/table_wrapper.rs
+++ b/components/layout/table_wrapper.rs
@@ -26,8 +26,9 @@ use wrapper::ThreadSafeLayoutNode;
use servo_util::geometry::Au;
use std::cmp::{max, min};
use std::fmt;
-use style::CSSFloat;
+use style::{ComputedValues, CSSFloat};
use style::computed_values::table_layout;
+use sync::Arc;
#[deriving(Encodable)]
pub enum TableLayout {
@@ -329,6 +330,10 @@ impl Flow for TableWrapperFlow {
fn build_display_list(&mut self, layout_context: &LayoutContext) {
self.block_flow.build_display_list(layout_context)
}
+
+ fn repair_style(&mut self, new_style: &Arc<ComputedValues>) {
+ self.block_flow.repair_style(new_style)
+ }
}
impl fmt::Show for TableWrapperFlow {