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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2908503003: Always relayout children of LayoutView when printing. (Closed)
Patch Set: Created 3 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 | « third_party/WebKit/Source/core/layout/LayoutView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index 04fd60e700f29ea69fdc099b00fa0ec8a955305e..28b02a5556322afab423f1b7829a86080191756e 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -821,6 +821,13 @@ LayoutRect LayoutView::DebugRect() const {
return rect;
}
+bool LayoutView::UpdateLogicalWidthAndColumnWidth() {
+ bool relayout_children = LayoutBlockFlow::UpdateLogicalWidthAndColumnWidth();
+ // When we're printing, the size of LayoutView is changed outside of layout,
+ // so we'll fail to detect any changes here. Just return true.
+ return relayout_children || ShouldUsePrintingLayout();
+}
+
bool LayoutView::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() const {
// Frame scroll corner is painted using LayoutView as the display item client.
if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() &&
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698