Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(791)

Unified Diff: Source/core/rendering/RenderLayer.cpp

Issue 354613003: Properly repaint RenderLayer's descendants when it moves (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test expectations Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayer.cpp
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp
index b3199f8a10a57700ffeb7a1761da4f42cb5ab1bc..531ad74e09af8161a956fb884e178b89ee51883f 100644
--- a/Source/core/rendering/RenderLayer.cpp
+++ b/Source/core/rendering/RenderLayer.cpp
@@ -257,9 +257,18 @@ void RenderLayer::updateLayerPositionsAfterLayout(const RenderLayer* rootLayer,
updateLayerPositionRecursive(flags);
}
+void RenderLayer::markDescendantLayersMayNeedPaintInvalidation()
+{
+ for (RenderLayer* childLayer = firstChild(); childLayer; childLayer = childLayer->nextSibling()) {
esprehn 2014/06/24 20:37:07 We should take a different approach than this and
+ childLayer->renderer()->setMayNeedPaintInvalidation(true);
+ childLayer->markDescendantLayersMayNeedPaintInvalidation();
+ }
+}
+
void RenderLayer::updateLayerPositionRecursive(UpdateLayerPositionsFlags flags)
{
- updateLayerPosition();
+ if (updateLayerPosition())
+ markDescendantLayersMayNeedPaintInvalidation();
esprehn 2014/06/24 20:37:07 Doesn't this make us traverse down the same subtre
// Clear our cached clip rect information.
m_clipper.clearClipRects();
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698