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

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..6eea7c81985ba13a0d263eed313ec75616f54a9a 100644
--- a/Source/core/layout/LayoutView.cpp
+++ b/Source/core/layout/LayoutView.cpp
@@ -383,6 +383,22 @@ void LayoutView::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidatio
LayoutBlock::invalidateTreeIfNeeded(paintInvalidationState);
}
+
+
Xianzhu 2015/06/25 18:50:05 Nit: Too many empty lines.
chrishtr 2015/06/25 18:55:24 Fixed
+static void setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(LayoutObject* object)
+{
+ object->setShouldDoFullPaintInvalidation();
+ for (LayoutObject* child = object->slowFirstChild(); child; child = child->nextSibling()) {
+ setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child);
+ }
+}
+
+void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants()
+{
+ setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this);
+
Xianzhu 2015/06/25 18:50:05 Nit: Remove extra empty line.
chrishtr 2015/06/25 18:55:24 Fixed.
+}
+
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