Index: third_party/WebKit/Source/web/WebViewImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp |
index bb2303f4ca6cab3d1e0238eaba2761603389aef1..53ca33006e56ac8c046520d3fae288c17911438b 100644 |
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp |
@@ -306,7 +306,7 @@ void WebView::DidExitModalLoop() { |
} |
void WebViewImpl::SetMainFrame(WebFrame* frame) { |
- frame->ToImplBase()->InitializeCoreFrame(*GetPage(), 0, g_null_atom); |
+ WebFrame::InitializeCoreFrame(frame, *GetPage()); |
} |
void WebViewImpl::SetCredentialManagerClient( |
@@ -2679,8 +2679,8 @@ void WebViewImpl::FocusDocumentView(WebFrame* frame) { |
// cross-process frames, and |notifyEmbedder| is disabled to avoid sending |
// duplicate frameFocused updates from FocusController to the browser |
// process, which already knows the latest focused frame. |
- GetPage()->GetFocusController().FocusDocumentView( |
- frame->ToImplBase()->GetFrame(), false /* notifyEmbedder */); |
+ GetPage()->GetFocusController().FocusDocumentView(WebFrame::CoreFrame(frame), |
+ false /* notifyEmbedder */); |
} |
void WebViewImpl::SetInitialFocus(bool reverse) { |