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

Unified Diff: Source/core/layout/LayoutView.cpp

Issue 1209033002: SP: Invalidate paint for the entire layout tree when ending printing. (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
« no previous file with comments | « Source/core/layout/LayoutView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutView.cpp
diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp
index 02bd0e871c1e4eca0e1724e31eb3e5b0f5764760..74895d6bdecc84c0739b5f29141be9c3f8d09a0d 100644
--- a/Source/core/layout/LayoutView.cpp
+++ b/Source/core/layout/LayoutView.cpp
@@ -383,6 +383,19 @@ void LayoutView::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidatio
LayoutBlock::invalidateTreeIfNeeded(paintInvalidationState);
}
+static void setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(LayoutObject* object)
+{
+ object->setShouldDoFullPaintInvalidation();
+ for (LayoutObject* child = object->slowFirstChild(); child; child = child->nextSibling()) {
+ setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child);
+ }
+}
+
+void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants()
+{
+ setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this);
+}
+
void LayoutView::invalidatePaintForRectangle(const LayoutRect& paintInvalidationRect, PaintInvalidationReason invalidationReason) const
{
ASSERT(!paintInvalidationRect.isEmpty());
« no previous file with comments | « Source/core/layout/LayoutView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698