| 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 b84eba735d75a2a6988cb780a05e42b83bef8dd4..17493c390d6b43e3b22b0cf016e64225d8990466 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| @@ -238,7 +238,7 @@ void LayoutView::layout()
|
| if (!document().paginated())
|
| setPageLogicalHeight(0);
|
|
|
| - if (shouldUsePrintingLayout()) {
|
| + if (pageLogicalHeight() && shouldUsePrintingLayout()) {
|
| m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = logicalWidth();
|
| if (!m_fragmentationContext)
|
| m_fragmentationContext = adoptPtr(new ViewFragmentationContext(*this));
|
|
|