mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Allow CalculateStackingRelativePositions to short-circuit
This commit is contained in:
parent
832b811198
commit
ca300d6424
5 changed files with 23 additions and 23 deletions
|
@ -54,7 +54,7 @@ use style::context::SharedStyleContext;
|
|||
use style::logical_geometry::{LogicalRect, LogicalSize, WritingMode};
|
||||
use style::properties::ComputedValues;
|
||||
use style::selector_parser::RestyleDamage;
|
||||
use style::servo::restyle_damage::{RECONSTRUCT_FLOW, REFLOW, REFLOW_OUT_OF_FLOW, REPAINT, REPOSITION};
|
||||
use style::servo::restyle_damage::{RECONSTRUCT_FLOW, REFLOW, REFLOW_OUT_OF_FLOW, REPAINT};
|
||||
use style::values::computed::LengthOrPercentageOrAuto;
|
||||
use table::TableFlow;
|
||||
use table_caption::TableCaptionFlow;
|
||||
|
@ -343,7 +343,6 @@ pub trait Flow: fmt::Debug + Sync + Send + 'static {
|
|||
/// in coordinates relative to the nearest ancestor stacking context).
|
||||
fn compute_stacking_relative_position(&mut self, _: &LayoutContext) {
|
||||
// The default implementation is a no-op.
|
||||
mut_base(self).restyle_damage.remove(REPOSITION)
|
||||
}
|
||||
|
||||
/// Phase 5 of reflow: builds display lists.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue