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

Unified Diff: Source/web/WebFrameImpl.cpp

Issue 104433003: Attach a WebLayer to a frame element for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added missing null check Created 7 years 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
« no previous file with comments | « Source/web/WebFrameImpl.h ('k') | public/web/WebFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFrameImpl.cpp
diff --git a/Source/web/WebFrameImpl.cpp b/Source/web/WebFrameImpl.cpp
index 23dfa4720749c85b546f9aea1b7b5a338b3e01de..049c3599cbccd680edb0af07baa2e0917c9c2905 100644
--- a/Source/web/WebFrameImpl.cpp
+++ b/Source/web/WebFrameImpl.cpp
@@ -188,6 +188,7 @@
#include "public/platform/WebFileSystem.h"
#include "public/platform/WebFloatPoint.h"
#include "public/platform/WebFloatRect.h"
+#include "public/platform/WebLayer.h"
#include "public/platform/WebPoint.h"
#include "public/platform/WebRect.h"
#include "public/platform/WebSize.h"
@@ -555,6 +556,19 @@ WebVector<WebIconURL> WebFrameImpl::iconURLs(int iconTypesMask) const
return WebVector<WebIconURL>();
}
+void WebFrameImpl::setRemoteWebLayer(WebLayer* webLayer)
+{
+ if (!frame())
+ return;
+
+ if (frame()->remotePlatformLayer())
+ GraphicsLayer::unregisterContentsLayer(frame()->remotePlatformLayer());
+ if (webLayer)
+ GraphicsLayer::registerContentsLayer(webLayer);
+ frame()->setRemotePlatformLayer(webLayer);
+ frame()->ownerElement()->setNeedsStyleRecalc(WebCore::SubtreeStyleChange, WebCore::StyleChangeFromRenderer);
+}
+
WebSize WebFrameImpl::scrollOffset() const
{
FrameView* view = frameView();
« no previous file with comments | « Source/web/WebFrameImpl.h ('k') | public/web/WebFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698