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

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

Issue 2802903002: Move PrintBrowser from SPV2 to SPV1 (Closed)
Patch Set: In the case of PrintBrowser PrintContext::end should not relayout. It should retain layout as is. Created 3 years, 8 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 | third_party/WebKit/Source/core/paint/TextPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index b64d75d627f1238ca45956bd77918f23f4ac64a6..401352dd85eadd2f7fcc5837068f143694d8ae9c 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -600,7 +600,7 @@ void LocalFrame::SetPrinting(bool printing,
if (ShouldUsePrintingLayout()) {
View()->ForceLayoutForPagination(page_size, original_page_size,
maximum_shrink_ratio);
- } else {
+ } else if (!RuntimeEnabledFeatures::printBrowserEnabled()) {
pdr. 2017/04/14 23:28:04 I see what you mean. Hmm... I don't know this code
nainar 2017/04/14 23:43:33 No we want that layout to happen so that we force
pdr. 2017/04/14 23:54:00 Couldn't UpdateLayout get called later? SetPrintin
nainar 2017/04/15 00:13:45 Yup, I see what you mean - we can indeed force a L
if (LayoutView* layout_view = View()->GetLayoutView()) {
layout_view->SetPreferredLogicalWidthsDirty();
layout_view->SetNeedsLayout(LayoutInvalidationReason::kPrintingChanged);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/TextPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698