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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 1132133009: Plumb whether or not a frame is in shadow DOM to the embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments Created 5 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
« no previous file with comments | « Source/web/WebLocalFrameImpl.h ('k') | Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index 3646a835f83e06c6442eec7b9cc00b5343cfb546..b4b9eaedcccf30a82306f5b2da1d1a06845429a3 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -204,6 +204,7 @@
#include "public/web/WebRange.h"
#include "public/web/WebScriptSource.h"
#include "public/web/WebSerializedScriptValue.h"
+#include "public/web/WebTreeScopeType.h"
#include "web/AssociatedURLLoader.h"
#include "web/CompositionUnderlineVectorBuilder.h"
#include "web/FindInPageCoordinates.h"
@@ -1586,12 +1587,17 @@ WebString WebLocalFrameImpl::layerTreeAsText(bool showDebugInfo) const
WebLocalFrame* WebLocalFrame::create(WebFrameClient* client)
{
- return WebLocalFrameImpl::create(client);
+ return WebLocalFrame::create(WebTreeScopeType::Document, client);
}
-WebLocalFrameImpl* WebLocalFrameImpl::create(WebFrameClient* client)
+WebLocalFrame* WebLocalFrame::create(WebTreeScopeType scope, WebFrameClient* client)
{
- WebLocalFrameImpl* frame = new WebLocalFrameImpl(client);
+ return WebLocalFrameImpl::create(scope, client);
+}
+
+WebLocalFrameImpl* WebLocalFrameImpl::create(WebTreeScopeType scope, WebFrameClient* client)
+{
+ WebLocalFrameImpl* frame = new WebLocalFrameImpl(scope, client);
#if ENABLE(OILPAN)
return frame;
#else
@@ -1599,8 +1605,9 @@ WebLocalFrameImpl* WebLocalFrameImpl::create(WebFrameClient* client)
#endif
}
-WebLocalFrameImpl::WebLocalFrameImpl(WebFrameClient* client)
- : m_frameLoaderClientImpl(this)
+WebLocalFrameImpl::WebLocalFrameImpl(WebTreeScopeType scope, WebFrameClient* client)
+ : WebLocalFrame(scope)
+ , m_frameLoaderClientImpl(this)
, m_frameWidget(0)
, m_client(client)
, m_autofillClient(0)
« no previous file with comments | « Source/web/WebLocalFrameImpl.h ('k') | Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698