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

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: 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
Index: Source/core/paint/DeprecatedPaintLayer.cpp
diff --git a/Source/core/paint/DeprecatedPaintLayer.cpp b/Source/core/paint/DeprecatedPaintLayer.cpp
index 81f29ebe4fcb059286468123362ea893c1637fc0..240592de60821ff8f25b6b8f25174f9b3ee2e1c0 100644
--- a/Source/core/paint/DeprecatedPaintLayer.cpp
+++ b/Source/core/paint/DeprecatedPaintLayer.cpp
@@ -1285,7 +1285,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();
}
}
@@ -2930,19 +2930,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) { }
« Source/core/frame/FrameView.cpp ('K') | « Source/core/paint/DeprecatedPaintLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698