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

Unified Diff: components/html_viewer/html_document.cc

Issue 1141283002: Replicate whether a frame is in a document or shadow tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blargh 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 | « components/html_viewer/html_document.h ('k') | components/plugins/renderer/webview_plugin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_document.cc
diff --git a/components/html_viewer/html_document.cc b/components/html_viewer/html_document.cc
index d4c456ba776b475560c0348e69a2788ca13eb780..ff57c0983e43d01c8077344226f637604b6b0aeb 100644
--- a/components/html_viewer/html_document.cc
+++ b/components/html_viewer/html_document.cc
@@ -183,7 +183,8 @@ void HTMLDocument::Load(URLResponsePtr response) {
touch_handler_.reset(new TouchHandler(web_view_));
web_layer_tree_view_impl_->set_widget(web_view_);
ConfigureSettings(web_view_->settings());
- web_view_->setMainFrame(blink::WebLocalFrame::create(this));
+ web_view_->setMainFrame(
+ blink::WebLocalFrame::create(WebTreeScopeType::Document, this));
dcheng 2015/05/18 23:27:27 I plan on adding assertions, but basically, a main
GURL url(response->url);
@@ -276,9 +277,10 @@ blink::WebMediaPlayer* HTMLDocument::createMediaPlayer(
blink::WebFrame* HTMLDocument::createChildFrame(
blink::WebLocalFrame* parent,
+ blink::WebTreeScopeType scope,
const blink::WebString& frameName,
blink::WebSandboxFlags sandboxFlags) {
- blink::WebLocalFrame* web_frame = blink::WebLocalFrame::create(this);
+ blink::WebLocalFrame* web_frame = blink::WebLocalFrame::create(scope, this);
parent->appendChild(web_frame);
return web_frame;
}
« no previous file with comments | « components/html_viewer/html_document.h ('k') | components/plugins/renderer/webview_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698