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

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

Issue 283333005: Use RecalcStyleDeferred for printing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « LayoutTests/printing/print-media-recalc-expected.txt ('k') | no next file » | 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 1fd588bc1e4d5888ecc1767e69ce62b1327a3a99..e8297a930010183b21fa250154237d9f29175844 100644
--- a/Source/core/frame/LocalFrame.cpp
+++ b/Source/core/frame/LocalFrame.cpp
@@ -180,7 +180,7 @@ void LocalFrame::setPrinting(bool printing, const FloatSize& pageSize, const Flo
document()->setPrinting(printing);
view()->adjustMediaTypeForPrinting(printing);
- document()->styleResolverChanged(RecalcStyleImmediately);
+ document()->styleResolverChanged(RecalcStyleDeferred);
if (shouldUsePrintingLayout()) {
view()->forceLayoutForPagination(pageSize, originalPageSize, maximumShrinkRatio);
} else {
« no previous file with comments | « LayoutTests/printing/print-media-recalc-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698