Chromium Code Reviews| 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 4ea28a71e472ac90b904ef538954f21f0d609eca..31243c4498b0c5791804ef5472ae257786725327 100644 |
| --- a/third_party/WebKit/Source/core/dom/Document.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp |
| @@ -4310,6 +4310,19 @@ HTMLFrameOwnerElement* Document::localOwner() const { |
| return frame()->deprecatedLocalOwner(); |
| } |
| +void Document::didChangeFrameOwnerProperties(int marginWidth, |
| + int marginHeight, |
| + ScrollbarMode scrollingMode) { |
| + DCHECK(localOwner()); |
|
bokan
2016/11/21 16:11:36
The owner can be remote. You need some way to get
alexmos
2016/11/21 17:56:56
Just using frame()->owner() instead should work he
|
| + |
| + if (marginWidth != localOwner()->marginWidth()) |
| + body()->setIntegralAttribute(marginwidthAttr, marginWidth); |
| + if (marginHeight != localOwner()->marginHeight()) |
| + body()->setIntegralAttribute(marginheightAttr, marginHeight); |
| + if (scrollingMode != localOwner()->scrollingMode()) |
| + view()->setNeedsLayout(); |
| +} |
| + |
| bool Document::isInInvisibleSubframe() const { |
| if (!localOwner()) |
| return false; // this is a local root element |