Chromium Code Reviews| 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); |