Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed #4170 - Incremental reflow wasn't being aggressive enough when …
…nodes get reparented. When inserting a node that was already dirtied, the dirtying logic would short circuit: "This node is already dirty? Great! Then its parents must be HAS_DIRTY_DESCENDANTS, too! Let's skip that step." This isn't appropriate when nodes move around the tree. In that case, the node may be marked HAS_CHANGED, but ancestors may not yet have the HAS_DIRTY_DESCENDANTS flag set. This patch adds a `content_and_heritage_changed` hook in the document, to deal with these cases appropriately.
- Loading branch information
Clark Gaebel
committed
Dec 3, 2014
1 parent
873ca6c
commit d3e4d29
Showing
3 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d3e4d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from pcwalton
at cgaebel@d3e4d29
d3e4d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging cgaebel/servo/incremental-reflow-fix = d3e4d29 into auto
d3e4d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cgaebel/servo/incremental-reflow-fix = d3e4d29 merged ok, testing candidate = 8ee2ca1
d3e4d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from pcwalton
at cgaebel@d3e4d29
d3e4d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging cgaebel/servo/incremental-reflow-fix = d3e4d29 into auto
d3e4d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cgaebel/servo/incremental-reflow-fix = d3e4d29 merged ok, testing candidate = 5c506f7
d3e4d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://build.servo.org/builders/linux1/builds/208
success: http://build.servo.org/builders/linux2/builds/208
success: http://build.servo.org/builders/android/builds/275
success: http://build.servo.org/builders/mac1/builds/425
success: http://build.servo.org/builders/mac2/builds/425
d3e4d29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 5c506f7