aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flow.rs
diff options
context:
space:
mode:
authorClark Gaebel <cgaebel@mozilla.com>2014-10-17 13:23:42 -0700
committerClark Gaebel <cgaebel@mozilla.com>2014-10-20 11:13:31 -0700
commit81bd3cbd9d2e8da5bd7dd281e083e218d928c202 (patch)
treeca0c3c5290188beae7e813553c37418abbffa134 /components/layout/flow.rs
parent852378209badb936e8929c31501cb8cabeea6bc5 (diff)
downloadservo-81bd3cbd9d2e8da5bd7dd281e083e218d928c202.tar.gz
servo-81bd3cbd9d2e8da5bd7dd281e083e218d928c202.zip
Fixes the table_percentage_width_a.html reftest with incremental reflow turned on.
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r--components/layout/flow.rs34
1 files changed, 1 insertions, 33 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs
index 49a182d54aa..175f6058664 100644
--- a/components/layout/flow.rs
+++ b/components/layout/flow.rs
@@ -32,7 +32,7 @@ use floats::Floats;
use flow_list::{FlowList, FlowListIterator, MutFlowListIterator};
use flow_ref::FlowRef;
use fragment::{Fragment, TableRowFragment, TableCellFragment};
-use incremental::{RestyleDamage, Reflow};
+use incremental::RestyleDamage;
use inline::InlineFlow;
use model::{CollapsibleMargins, IntrinsicISizes, MarginCollapseInfo};
use parallel::FlowParallelInfo;
@@ -435,10 +435,6 @@ pub trait MutableFlowUtils {
fn collect_static_block_offsets_from_children(self);
fn propagate_restyle_damage(self);
-
- /// At the moment, reflow isn't idempotent. This function resets this flow
- /// (and all its descendants, recursively), and marks them as needing reflow.
- fn nonincremental_reset(self);
}
pub trait MutableOwnedFlowUtils {
@@ -1219,34 +1215,6 @@ impl<'a> MutableFlowUtils for &'a mut Flow + 'a {
doit(self, RestyleDamage::empty(), &mut DirtyFloats { left: false, right: false });
}
-
- fn nonincremental_reset(self) {
- fn reset_flow(flow: &mut Flow) {
- let base = mut_base(flow);
-
- if !base.restyle_damage.contains(Reflow) {
- return
- }
-
- let writing_mode = base.writing_mode;
-
- base.position = LogicalRect::zero(writing_mode);
- base.overflow = LogicalRect::zero(writing_mode);
- base.floats = Floats::new(writing_mode);
- base.collapsible_margins = CollapsibleMargins::new();
- base.abs_position = Zero::zero();
- base.block_container_explicit_block_size = None;
- base.display_list = DisplayList::new();
- base.layers = DList::new();
- base.absolute_position_info = AbsolutePositionInfo::new(writing_mode);
- }
-
- reset_flow(self);
-
- for child in child_iter(self) {
- child.nonincremental_reset();
- }
- }
}
impl MutableOwnedFlowUtils for FlowRef {