Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/WebKit/Source/web/WebFrame.cpp

Issue 1938753002: OOPIF: Replicate allowFullscreen flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..1c4b5b4cce46d5568969978b2dec78a3d8687ee9 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.
+ RemoteFrameOwner* owner = toRemoteFrameOwner(toImplBase()->frame()->owner());
+ DCHECK(owner);
+ owner->setScrollingMode(properties.scrollingMode);
+ owner->setMarginWidth(properties.marginWidth);
+ owner->setMarginHeight(properties.marginHeight);
+ owner->setAllowFullscreen(properties.allowFullscreen);
+}
+
WebFrame* WebFrame::opener() const
{
return m_opener;
« no previous file with comments | « third_party/WebKit/Source/web/RemoteFrameOwner.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698