Skip to content
Permalink
Browse files

Remove LayoutDamageComputation

  • Loading branch information...
nox committed Jan 14, 2019
1 parent aacaf1b commit 495a0dd41a7e1c53b37e3a7ad751c30239179839
Showing with 4 additions and 9 deletions.
  1. +3 −8 components/layout/incremental.rs
  2. +1 −1 components/layout_thread/lib.rs
@@ -22,13 +22,8 @@ bitflags! {
}
}

pub trait LayoutDamageComputation {
fn compute_layout_damage(self) -> SpecialRestyleDamage;
fn reflow_entire_document(self);
}

impl<'a> LayoutDamageComputation for &'a mut dyn Flow {
fn compute_layout_damage(self) -> SpecialRestyleDamage {
impl dyn Flow {
pub fn compute_layout_damage(&mut self) -> SpecialRestyleDamage {
let mut special_damage = SpecialRestyleDamage::empty();
let is_absolutely_positioned = self
.base()
@@ -91,7 +86,7 @@ impl<'a> LayoutDamageComputation for &'a mut dyn Flow {
special_damage
}

fn reflow_entire_document(self) {
pub fn reflow_entire_document(&mut self) {
let self_base = self.mut_base();
self_base
.restyle_damage
@@ -45,7 +45,7 @@ use layout::display_list::items::{OpaqueNode, WebRenderImageInfo};
use layout::display_list::{IndexableText, ToLayout, WebRenderDisplayListConverter};
use layout::flow::{Flow, GetBaseFlow, ImmutableFlowUtils, MutableOwnedFlowUtils};
use layout::flow_ref::FlowRef;
use layout::incremental::{LayoutDamageComputation, RelayoutMode, SpecialRestyleDamage};
use layout::incremental::{RelayoutMode, SpecialRestyleDamage};
use layout::layout_debug;
use layout::parallel;
use layout::query::{

0 comments on commit 495a0dd

Please sign in to comment.
You can’t perform that action at this time.