forked from crosswalk-project/chromium-crosswalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check subtree paint invalidation when overflow clip status changes
Before https://crrev.com/392652 because we included descendant overflow into container overflow and the paint invalidation rect covered the changed part of descendants. Call setNeedsPaintInvalidationSubtree() to force checking of paint invalidation of descendants when overflow clip status changes. The other changes are needed because we need to move clearPaintInvalidationFlags() after newPaintInvalidationState.updateForChildren(). Several overriding invalidateTreeIfNeeded() methods in subclasses are removed because they have been the same as inherited ones after we changed the paint invalidation tree walk order. BUG=613475 TEST=paint/invalidation/overflow-hidden-to-visible.html TEST=paint/invalidation/overflow-visible-to-hidden.html Review-Url: https://codereview.chromium.org/2000763003 Cr-Commit-Position: refs/heads/master@{#395491} Review URL: https://codereview.chromium.org/2007003003 . Cr-Commit-Position: refs/branch-heads/2743@{crosswalk-project#44} Cr-Branched-From: 2b3ae3b-refs/heads/master@{#394939}
- Loading branch information
1 parent
9aae238
commit 3104da0
Showing
13 changed files
with
71 additions
and
44 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
4 changes: 4 additions & 0 deletions
4
third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-to-visible-expected.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!DOCTYPE html> | ||
Tests paint invalidation of overflowing contents when the container's overflow changes from hidden to visible. | ||
Passes if there is no red. | ||
<div id="green" style="width: 200px; height: 400px; background-color: green"></div> |
15 changes: 15 additions & 0 deletions
15
third_party/WebKit/LayoutTests/paint/invalidation/overflow-hidden-to-visible.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
Tests paint invalidation of overflowing contents when the container's overflow changes from hidden to visible. | ||
Passes if there is no red. | ||
<div id="indicator" style="position: absolute; z-index: -1; width: 200px; height: 400px; background-color: red"></div> | ||
<div id="container" style="width: 200px; height: 200px; overflow: hidden"> | ||
<div style="width: 0; height: 0"> | ||
<div id="green" style="width: 200px; height: 400px; background-color: green"></div> | ||
</div> | ||
</div> | ||
<script src="../../resources/run-after-layout-and-paint.js"></script> | ||
<script> | ||
runAfterLayoutAndPaint(function() { | ||
container.style.overflow = 'visible'; | ||
}, true); | ||
</script> |
4 changes: 4 additions & 0 deletions
4
third_party/WebKit/LayoutTests/paint/invalidation/overflow-visible-to-hidden-expected.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!DOCTYPE html> | ||
Tests paint invalidation of overflowing contents when the container's overflow changes from visible to hidden. | ||
Passes if there is no red. | ||
<div id="green" style="width: 200px; height: 200px; background-color: green"></div> |
15 changes: 15 additions & 0 deletions
15
third_party/WebKit/LayoutTests/paint/invalidation/overflow-visible-to-hidden.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
Tests paint invalidation of overflowing contents when the container's overflow changes from visible to hidden. | ||
Passes if there is no red. | ||
<div id="container" style="width: 200px; height: 200px; overflow: visible"> | ||
<div style="width: 0; height: 0"> | ||
<div id="green" style="width: 200px; height: 200px; background-color: green"></div> | ||
<div id="red" style="width: 200px; height: 200px; background-color: red"></div> | ||
</div> | ||
</div> | ||
<script src="../../resources/run-after-layout-and-paint.js"></script> | ||
<script> | ||
runAfterLayoutAndPaint(function() { | ||
container.style.overflow = 'hidden'; | ||
}, true); | ||
</script> |
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
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
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