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

Unified Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1164713010: Invalidate non-composited subtree on needsPaintInvalidationLayer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expectations Created 5 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/paint/DeprecatedPaintLayer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/DeprecatedPaintLayer.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp
index e3c7b739c76629aedd987d85ca6e5a47b674c5be..cdee1c9ce8e062961839cb4e65bf21dbb21c3358 100644
--- a/Source/core/paint/DeprecatedPaintLayer.cpp
+++ b/Source/core/paint/DeprecatedPaintLayer.cpp
@@ -1219,7 +1219,7 @@ void DeprecatedPaintLayer::removeOnlyThisLayer()
// Our children will be reparented and contained by a new paint invalidation container,
// so need paint invalidation. CompositingUpdate can't see this layer (which has been
// removed) so won't do this for us.
- setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
+ layoutObject()->setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
}
}
@@ -2741,19 +2741,6 @@ void DeprecatedPaintLayer::computeSelfHitTestRects(LayerHitTestRects& rects) con
}
}
-void DeprecatedPaintLayer::setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants()
-{
- layoutObject()->setShouldDoFullPaintInvalidation();
-
- // Disable for reading compositingState() in isPaintInvalidationContainer() below.
- DisableCompositingQueryAsserts disabler;
-
- for (DeprecatedPaintLayer* child = firstChild(); child; child = child->nextSibling()) {
- if (!child->isPaintInvalidationContainer())
- child->setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants();
- }
-}
-
DisableCompositingQueryAsserts::DisableCompositingQueryAsserts()
: m_disabler(gCompositingQueryMode, CompositingQueriesAreAllowed) { }
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698