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

Unified Diff: Source/core/frame/LocalFrame.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 | « no previous file | Source/core/layout/LayoutView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index d11d1f74a4609fdcb0c9878323255e41ab740442..a1b7c4a0b2952aeccfc9850abba848407982b293 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -471,8 +471,11 @@ void LocalFrame::setPrinting(bool printing, const FloatSize& pageSize, const Flo
if (shouldUsePrintingLayout()) {
view()->forceLayoutForPagination(pageSize, originalPageSize, maximumShrinkRatio);
} else {
- if (LayoutView* layoutView = view()->layoutView())
- layoutView->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::PrintingChanged);
+ if (LayoutView* layoutView = view()->layoutView()) {
+ layoutView->setPreferredLogicalWidthsDirty();
+ layoutView->setNeedsLayout(LayoutInvalidationReason::PrintingChanged);
+ layoutView->setShouldDoFullPaintInvalidationForViewAndAllDescendants();
+ }
view()->layout();
view()->adjustViewSize();
}
« no previous file with comments | « no previous file | Source/core/layout/LayoutView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698