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..3742bbc2d2a266b6cd04fbe8b085688566faf337 100644 |
| --- a/third_party/WebKit/Source/core/dom/Document.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp |
| @@ -4310,6 +4310,17 @@ HTMLFrameOwnerElement* Document::localOwner() const { |
| return frame()->deprecatedLocalOwner(); |
| } |
| +void Document::didChangeFrameOwnerProperties(WTF::Optional<int> marginWidth, |
| + WTF::Optional<int> marginHeight, |
|
bokan
2016/11/21 13:21:52
Rather than using Optionals here, always pass in t
|
| + bool scrollingModeChanged) { |
| + if (marginWidth) |
| + body()->setIntegralAttribute(marginwidthAttr, marginWidth.value()); |
| + if (marginHeight) |
| + body()->setIntegralAttribute(marginheightAttr, marginHeight.value()); |
| + if (scrollingModeChanged) |
| + view()->setNeedsLayout(); |
| +} |
| + |
| bool Document::isInInvisibleSubframe() const { |
| if (!localOwner()) |
| return false; // this is a local root element |