Chromium Code Reviews| 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; |
| } |