| 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 96d5a40ade75f7e2d2651fee6df1faeb9000b46d..7089a50aadf9728d1c2c44142e15f9afac362abf 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| @@ -490,7 +490,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
|
|
|