| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index c44b227186644837c5a4a628e8e496940d1075d4..3ff2914920492d893e77e9502ec6b5d9488d0ba6 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -4404,6 +4404,20 @@ HTMLFrameOwnerElement* Document::localOwner() const {
|
| return frame()->deprecatedLocalOwner();
|
| }
|
|
|
| +void Document::willChangeFrameOwnerProperties(int marginWidth,
|
| + int marginHeight,
|
| + ScrollbarMode scrollingMode) {
|
| + DCHECK(frame() && frame()->owner());
|
| + FrameOwner* owner = frame()->owner();
|
| +
|
| + if (marginWidth != owner->marginWidth())
|
| + body()->setIntegralAttribute(marginwidthAttr, marginWidth);
|
| + if (marginHeight != owner->marginHeight())
|
| + body()->setIntegralAttribute(marginheightAttr, marginHeight);
|
| + if (scrollingMode != owner->scrollingMode())
|
| + view()->setNeedsLayout();
|
| +}
|
| +
|
| bool Document::isInInvisibleSubframe() const {
|
| if (!localOwner())
|
| return false; // this is a local root element
|
|
|