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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2837593002: Nuked WebFrameImplBase. (Closed)
Patch Set: Replaced non-null params with refs. Created 3 years, 8 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: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index a04b435332469afe0f8459223ae42588937a4b01..9b29c2355226809ce116a53d859f02b5528750a0 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -870,7 +870,7 @@ v8::Local<v8::Context> WebLocalFrameImpl::MainWorldScriptContext() const {
bool WebFrame::ScriptCanAccess(WebFrame* target) {
return BindingSecurity::ShouldAllowAccessToFrame(
- CurrentDOMWindow(MainThreadIsolate()), target->ToImplBase()->GetFrame(),
+ CurrentDOMWindow(MainThreadIsolate()), ToCoreFrame(*target),
BindingSecurity::ErrorReportOption::kDoNotReport);
}
@@ -1550,7 +1550,7 @@ WebLocalFrameImpl* WebLocalFrameImpl::CreateProvisional(
DCHECK(client);
WebLocalFrameImpl* web_frame = new WebLocalFrameImpl(
old_web_frame, client, interface_provider, interface_registry);
- Frame* old_frame = old_web_frame->ToImplBase()->GetFrame();
+ Frame* old_frame = ToWebRemoteFrameImpl(old_web_frame)->GetFrame();
web_frame->SetParent(old_web_frame->Parent());
web_frame->SetOpener(old_web_frame->Opener());
// Note: this *always* temporarily sets a frame owner, even for main frames!
@@ -1628,7 +1628,6 @@ DEFINE_TRACE(WebLocalFrameImpl) {
visitor->Trace(context_menu_node_);
visitor->Trace(text_checker_client_);
WebFrame::TraceFrames(visitor, this);
- WebFrameImplBase::Trace(visitor);
}
void WebLocalFrameImpl::SetCoreFrame(LocalFrame* frame) {
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698