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

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

Issue 285103003: [RAL] Make sure RenderLayers are invalidated when moved. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
Index: Source/core/rendering/RenderBlock.cpp
diff --git a/Source/core/rendering/RenderBlock.cpp b/Source/core/rendering/RenderBlock.cpp
index 5c6b01a231492ccdf2bad9a1c94081bf0e2dff37..625d9283e72e88e6650efe659153759d8e19aed7 100644
--- a/Source/core/rendering/RenderBlock.cpp
+++ b/Source/core/rendering/RenderBlock.cpp
@@ -368,10 +368,12 @@ void RenderBlock::styleDidChange(StyleDifference diff, const RenderStyle* oldSty
void RenderBlock::invalidateTreeAfterLayout(const RenderLayerModelObject& invalidationContainer)
{
- if (!shouldCheckForPaintInvalidationAfterLayout())
- return;
+ // Note, we don't want to early out here using shouldCheckForInvalidationAfterLayout as
+ // we have to make sure we go through any positioned objects as they won't be seen in
+ // the normal tree walk.
- RenderBox::invalidateTreeAfterLayout(invalidationContainer);
+ if (shouldCheckForPaintInvalidationAfterLayout())
+ RenderBox::invalidateTreeAfterLayout(invalidationContainer);
// Take care of positioned objects. This is required as LayoutState keeps a single clip rect.
if (TrackedRendererListHashSet* positionedObjects = this->positionedObjects()) {

Powered by Google App Engine
This is Rietveld 408576698