mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fixes the table_percentage_width_a.html reftest with incremental reflow turned on.
This commit is contained in:
parent
852378209b
commit
81bd3cbd9d
11 changed files with 48 additions and 70 deletions
|
@ -10,12 +10,6 @@
|
|||
//! intermediate data that goes with a DOM node and hasn't found its "home" yet-maybe it's a box,
|
||||
//! maybe it's an absolute or fixed position thing that hasn't found its containing block yet.
|
||||
//! Construction items bubble up the tree from children to parents until they find their homes.
|
||||
//!
|
||||
//! TODO(pcwalton): There is no incremental reflow yet. This scheme requires that nodes either have
|
||||
//! weak references to flows or that there be some mechanism to efficiently (O(1) time) "blow
|
||||
//! apart" a flow tree and have the flows migrate "home" to their respective DOM nodes while we
|
||||
//! perform flow tree construction. The precise mechanism for this will take some experimentation
|
||||
//! to get right.
|
||||
|
||||
#![deny(unsafe_block)]
|
||||
|
||||
|
@ -85,11 +79,11 @@ pub enum ConstructionResult {
|
|||
|
||||
impl ConstructionResult {
|
||||
pub fn swap_out(&mut self) -> ConstructionResult {
|
||||
if opts::get().incremental_layout {
|
||||
return (*self).clone();
|
||||
if opts::get().nonincremental_layout {
|
||||
return mem::replace(self, NoConstructionResult)
|
||||
}
|
||||
|
||||
mem::replace(self, NoConstructionResult)
|
||||
(*self).clone()
|
||||
}
|
||||
|
||||
pub fn debug_id(&self) -> uint {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue