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

Unified Diff: Source/core/html/HTMLFrameOwnerElement.h

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: Removed unnecessary #include 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
Index: Source/core/html/HTMLFrameOwnerElement.h
diff --git a/Source/core/html/HTMLFrameOwnerElement.h b/Source/core/html/HTMLFrameOwnerElement.h
index 834ac123c70af030eaf94926ddb244fb900c836b..70a3d71369206d8769917f281ee2063c4d57fb16 100644
--- a/Source/core/html/HTMLFrameOwnerElement.h
+++ b/Source/core/html/HTMLFrameOwnerElement.h
@@ -24,6 +24,10 @@
#include "core/html/HTMLElement.h"
#include "wtf/HashCountedSet.h"
+namespace blink {
+class WebLayer;
+}
+
namespace WebCore {
class DOMWindow;
@@ -63,6 +67,9 @@ public:
virtual bool isObjectElement() const { return false; }
+ void setPlatformLayer(blink::WebLayer* platformLayer) { m_platformLayer = platformLayer; }
+ blink::WebLayer* platformLayer() const { return m_platformLayer; }
+
protected:
HTMLFrameOwnerElement(const QualifiedName& tagName, Document&);
void setSandboxFlags(SandboxFlags);
@@ -75,6 +82,9 @@ private:
Frame* m_contentFrame;
SandboxFlags m_sandboxFlags;
+
+ // This layer is for frames whose contents are being renderered in a separate process.
+ blink::WebLayer* m_platformLayer;
};
DEFINE_NODE_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement());
« no previous file with comments | « no previous file | Source/core/html/HTMLFrameOwnerElement.cpp » ('j') | Source/core/rendering/RenderLayerCompositor.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698