Index: third_party/WebKit/Source/web/WebFrame.cpp |
diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp |
index a65d50dcad1a89989d68feae3c674e1513e315df..dc1947c2cdb111dc0de8e3d6d12d9421b10a9679 100644 |
--- a/third_party/WebKit/Source/web/WebFrame.cpp |
+++ b/third_party/WebKit/Source/web/WebFrame.cpp |
@@ -134,6 +134,18 @@ bool WebFrame::shouldEnforceStrictMixedContentChecking() const |
return toImplBase()->frame()->securityContext()->shouldEnforceStrictMixedContentChecking(); |
} |
+void WebFrame::setFrameOwnerProperties(const WebFrameOwnerProperties& properties) |
+{ |
+ // At the moment, this is only used to replicate frame owner properties |
+ // for frames with a remote owner. |
+ FrameOwner* owner = toImplBase()->frame()->owner(); |
dcheng
2016/05/19 22:12:07
Perhaps just make this:
RemoteFrameOwner* owner =
alexmos
2016/05/19 22:56:42
Done.
|
+ DCHECK(owner); |
+ toRemoteFrameOwner(owner)->setScrollingMode(properties.scrollingMode); |
+ toRemoteFrameOwner(owner)->setMarginWidth(properties.marginWidth); |
+ toRemoteFrameOwner(owner)->setMarginHeight(properties.marginHeight); |
+ toRemoteFrameOwner(owner)->setAllowFullscreen(properties.allowFullscreen); |
+} |
+ |
WebFrame* WebFrame::opener() const |
{ |
return m_opener; |