diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2016-09-20 16:14:54 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2016-09-26 14:20:30 -0700 |
commit | 65e3db1c0d664c244880a01141b143cb27a5586d (patch) | |
tree | 79c17510c215f1b4efb53bd8242bca29d41da894 /components/layout/inline.rs | |
parent | 1235f4bff613df791d5ceb02f3ee04177492563b (diff) | |
download | servo-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/inline.rs')
-rw-r--r-- | components/layout/inline.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/layout/inline.rs b/components/layout/inline.rs index d1d50b22fe4..ec1d223cd36 100644 --- a/components/layout/inline.rs +++ b/components/layout/inline.rs @@ -25,8 +25,8 @@ use gfx_traits::print_tree::PrintTree; use layout_debug; use model::IntrinsicISizesContribution; use range::{Range, RangeIndex}; -use script_layout_interface::restyle_damage::{BUBBLE_ISIZES, REFLOW}; -use script_layout_interface::restyle_damage::{REFLOW_OUT_OF_FLOW, RESOLVE_GENERATED_CONTENT}; +use script_layout_interface::restyle_damage::{BUBBLE_ISIZES, REFLOW, REFLOW_OUT_OF_FLOW}; +use script_layout_interface::restyle_damage::{REPOSITION, RESOLVE_GENERATED_CONTENT}; use script_layout_interface::wrapper_traits::PseudoElementType; use std::{fmt, i32, isize, mem}; use std::cmp::max; @@ -1650,6 +1650,8 @@ impl Flow for InlineFlow { _ => {} } } + + self.base.restyle_damage.remove(REPOSITION) } fn update_late_computed_inline_position_if_necessary(&mut self, _: Au) {} |