| 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 4b3890451c3955028d38f7151ad5f03ea2d9cfde..edffcbc88e4da8d531a89317fb15519b58254808 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| @@ -500,7 +500,7 @@ bool LayoutView::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ance
|
| if (ancestor == this)
|
| return true;
|
|
|
| - Element* owner = document().ownerElement();
|
| + Element* owner = document().localOwner();
|
| if (!owner)
|
| return true;
|
|
|
| @@ -1018,7 +1018,7 @@ void LayoutView::updateFromStyle()
|
| LayoutBlockFlow::updateFromStyle();
|
|
|
| // LayoutView of the main frame is responsible for painting base background.
|
| - if (!document().ownerElement())
|
| + if (document().isInMainFrame())
|
| setHasBoxDecorationBackground(true);
|
| }
|
|
|
|
|