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

Unified Diff: Source/core/frame/LocalFrame.cpp

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/frame/LocalFrame.cpp
diff --git a/Source/core/frame/LocalFrame.cpp b/Source/core/frame/LocalFrame.cpp
index 76bedf73a0151d3b19aaf80ac893cdad320c284a..ec9d4d6671b7c29a40ba8745314f78686f14cddc 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -474,7 +474,7 @@ void LocalFrame::setPrinting(bool printing, const FloatSize& pageSize, const Flo
view()->forceLayoutForPagination(pageSize, originalPageSize, maximumShrinkRatio);
} else {
if (LayoutView* layoutView = view()->layoutView())
- layoutView->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation();
+ layoutView->setNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(LayoutInvalidationReason::PrintingChanged);
view()->layout();
view()->adjustViewSize();
}

Powered by Google App Engine
This is Rietveld 408576698