| 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 a1f5a977f9e3d31fe10640850ec1b03bf95a1455..56abe967c6a2949a6660fffbddd99879ce32890e 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| @@ -479,7 +479,9 @@ bool LayoutView::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ance
|
| return obj->mapToVisualRectInAncestorSpace(ancestor, rect, visualRectFlags);
|
| }
|
|
|
| - return true;
|
| + // This can happen, e.g., if the iframe element has display:none.
|
| + rect = LayoutRect();
|
| + return false;
|
| }
|
|
|
| void LayoutView::adjustOffsetForFixedPosition(LayoutRect& rect) const
|
|
|