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

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: Fix typo 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
Index: components/html_viewer/html_document.cc
diff --git a/components/html_viewer/html_document.cc b/components/html_viewer/html_document.cc
index 27765aae285e2b470fdb35300ff5265485731858..d8cf53935fa162492d03d5ab78976bd5cfbe07c1 100644
--- a/components/html_viewer/html_document.cc
+++ b/components/html_viewer/html_document.cc
@@ -172,7 +172,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(blink::WebTreeScopeType::Document, this));
GURL url(response->url);
@@ -269,9 +270,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;
}

Powered by Google App Engine
This is Rietveld 408576698