| 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 588507c25ae389c0e2c4265b702a8840cdae3b48..4edfb426b2477fa272d9dc3c18d5c454a6c2491f 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| @@ -614,8 +614,9 @@ bool LocalFrame::shouldUsePrintingLayout() const {
|
| // Only top frame being printed should be fit to page size.
|
| // Subframes should be constrained by parents only.
|
| return document()->printing() &&
|
| - (!tree().parent() || !tree().parent()->isLocalFrame() ||
|
| - !toLocalFrame(tree().parent())->document()->printing());
|
| + (!tree().parent() ||
|
| + (tree().parent()->isLocalFrame() &&
|
| + !toLocalFrame(tree().parent())->document()->printing()));
|
| }
|
|
|
| FloatSize LocalFrame::resizePageRectsKeepingRatio(
|
|
|