aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/sequential.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2016-09-20 16:14:54 -0700
committerPatrick Walton <pcwalton@mimiga.net>2016-09-26 14:20:30 -0700
commit65e3db1c0d664c244880a01141b143cb27a5586d (patch)
tree79c17510c215f1b4efb53bd8242bca29d41da894 /components/layout/sequential.rs
parent1235f4bff613df791d5ceb02f3ee04177492563b (diff)
downloadservo-65e3db1c0d664c244880a01141b143cb27a5586d.tar.gz
servo-65e3db1c0d664c244880a01141b143cb27a5586d.zip
layout: Add a `REPOSITION` restyle damage type.
Separating out `REPOSITION` from `REPAINT` allows us to compute stacking-context-relative positions without rebuilding the display list. This saves a lot of time when responding to script-to-layout queries.
Diffstat (limited to 'components/layout/sequential.rs')
-rw-r--r--components/layout/sequential.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/layout/sequential.rs b/components/layout/sequential.rs
index 2479731c69f..d59774c46d5 100644
--- a/components/layout/sequential.rs
+++ b/components/layout/sequential.rs
@@ -17,7 +17,7 @@ use generated_content::ResolveGeneratedContent;
use gfx::display_list::{DisplayItem, StackingContext};
use script_layout_interface::restyle_damage::{REFLOW, STORE_OVERFLOW};
use style::context::StyleContext;
-use traversal::{AssignBSizes, AssignISizes, BubbleISizes, BuildDisplayList, ComputeAbsolutePositions};
+use traversal::{AssignBSizes, AssignISizes, BubbleISizes, BuildDisplayList};
use util::opts;
pub use style::sequential::traverse_dom;
@@ -78,7 +78,6 @@ pub fn build_display_list_for_subtree(flow_root: &mut Flow,
root_stacking_context: &mut StackingContext,
shared_layout_context: &SharedLayoutContext)
-> Vec<DisplayItem> {
- flow_root.traverse_preorder(&ComputeAbsolutePositions { layout_context: shared_layout_context });
let mut children = vec![];
flow_root.collect_stacking_contexts(root_stacking_context.id,
&mut children);