Use blink::WebLocalFrame instead of blink::WebFrame

Move GetDocument method from WebFrame to WebLocalFrame.
https://codereview.chromium.org/2928033002

Move MainWorldScriptContext accessor/method from WebFrame to WebLocalFrame.
https://codereview.chromium.org/2923053002
This commit is contained in:
Aleksei Kuzmin 2017-08-22 02:09:28 +03:00 committed by Cheng Zhao
parent 61797b7802
commit e4d9e12ee5
5 changed files with 13 additions and 9 deletions

View file

@ -217,7 +217,7 @@ void RendererClientBase::AddSupportedKeySystems(
}
v8::Local<v8::Context> RendererClientBase::GetContext(
blink::WebFrame* frame, v8::Isolate* isolate) {
blink::WebLocalFrame* frame, v8::Isolate* isolate) {
if (isolated_world())
return frame->WorldScriptContext(isolate, World::ISOLATED_WORLD);
else