Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
REGRESSION (r294902): Content with continuation leaves decoration bit…
…s behind when removed https://bugs.webkit.org/show_bug.cgi?id=241734 <rdar://95308322> Reviewed by Simon Fraser. This patch ensures that when a renderer is removed we always issue a repaint regardless of what the associated layer's repaint bit says. 1. after r294902, repaint is not issued anymore if either the associated or an ancestor layer have the "full repaint" bit set. 2. such layer-driven repaints happen after layout. In some dynamic content cases, the layer may be removed before layout happens. This patch ensures that we preemptively issue such repaints. * LayoutTests/fast/repaint/force-repaint-when-layer-is-destroyed-expected.txt: Added. * LayoutTests/fast/repaint/force-repaint-when-layer-is-destroyed.html: Added. * Source/WebCore/rendering/RenderLayerModelObject.cpp: Force (full) repaint when the renderer is being destroyed (detached -> non-internal move). (WebCore::RenderLayerModelObject::willBeRemovedFromTree): * Source/WebCore/rendering/RenderLayerModelObject.h: * Source/WebCore/rendering/RenderObject.cpp: move duplicated code from repaint() and repaintRectangle() to issueRepaint(). Canonical link: https://commits.webkit.org/251670@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
815da56
commit a440dc2
Showing
6 changed files
with
68 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PASS |
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,36 @@ | ||
<style> | ||
.content { | ||
transform: translateX(0px); | ||
border: 10px solid red; | ||
width: 120px; | ||
} | ||
|
||
.continuation { | ||
width: 100px; | ||
height: 100px; | ||
background-color: green; | ||
border: solid blue; | ||
} | ||
</style><div id=hide_this class=content><span><div class=continuation></div></span></div> | ||
<pre id=result></pre> | ||
<script> | ||
if (window.testRunner) { | ||
testRunner.dumpAsText(); | ||
testRunner.waitUntilDone(); | ||
} | ||
|
||
setTimeout(function() { | ||
if (window.internals) | ||
internals.startTrackingRepaints(); | ||
|
||
hide_this.style.display = "none"; | ||
|
||
if (window.internals) { | ||
result.innerText = internals.repaintRectsAsText().indexOf("8 8 140 126") != -1 ? "PASS" : "FAIL"; | ||
internals.stopTrackingRepaints(); | ||
} | ||
|
||
if (window.testRunner) | ||
testRunner.notifyDone(); | ||
}, 10); | ||
</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