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

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

Issue 1510353002: PrintContext::pageProperty() shouldn't use 0 as page height. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No need to call updateLayout() manually. PrintContext::begin() does it for us. Created 5 years 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: 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 87c03483a421bcc65aacd97f0da39a769ec26ca6..fc1a96ed043106bdd5df131f6f0a404f182acf00 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -241,9 +241,7 @@ void LayoutView::layout()
if (shouldUsePrintingLayout()) {
m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = logicalWidth();
- // TODO(mstensho): Get rid of m_pageLogicalHeight zero check. Currently, pageProperty() in
- // PrintContext starts printing with zero height, so we have to cope for now.
- if (!m_fragmentationContext && m_pageLogicalHeight)
+ if (!m_fragmentationContext)
m_fragmentationContext = adoptPtr(new ViewFragmentationContext(*this));
} else if (m_fragmentationContext) {
m_fragmentationContext.clear();

Powered by Google App Engine
This is Rietveld 408576698