Commit 9e289b3d authored by sashab's avatar sashab Committed by Commit bot

Remove redundant WebLocalFrame* parameter from WillReleaseScriptContext

Remove redundant WebLocalFrame* parameter from WillReleaseScriptContext
in WebFrameClient.

BUG=361765

Review-Url: https://codereview.chromium.org/2838503002
Cr-Commit-Position: refs/heads/master@{#467259}
parent 5f758d23
......@@ -4616,11 +4616,8 @@ void RenderFrameImpl::DidCreateScriptContext(blink::WebLocalFrame* frame,
observer.DidCreateScriptContext(context, world_id);
}
void RenderFrameImpl::WillReleaseScriptContext(blink::WebLocalFrame* frame,
v8::Local<v8::Context> context,
void RenderFrameImpl::WillReleaseScriptContext(v8::Local<v8::Context> context,
int world_id) {
DCHECK_EQ(frame_, frame);
for (auto& observer : observers_)
observer.WillReleaseScriptContext(context, world_id);
}
......
......@@ -627,8 +627,7 @@ class CONTENT_EXPORT RenderFrameImpl
void DidCreateScriptContext(blink::WebLocalFrame* frame,
v8::Local<v8::Context> context,
int world_id) override;
void WillReleaseScriptContext(blink::WebLocalFrame* frame,
v8::Local<v8::Context> context,
void WillReleaseScriptContext(v8::Local<v8::Context> context,
int world_id) override;
void DidChangeScrollOffset() override;
void WillInsertBody(blink::WebLocalFrame* frame) override;
......
......@@ -212,8 +212,7 @@ void LocalFrameClientImpl::WillReleaseScriptContext(
v8::Local<v8::Context> context,
int world_id) {
if (web_frame_->Client()) {
web_frame_->Client()->WillReleaseScriptContext(web_frame_, context,
world_id);
web_frame_->Client()->WillReleaseScriptContext(context, world_id);
}
}
......
......@@ -4474,12 +4474,10 @@ class ContextLifetimeTestWebFrameClient
WTF::MakeUnique<Notification>(frame, context, world_id));
}
void WillReleaseScriptContext(WebLocalFrame* frame,
v8::Local<v8::Context> context,
void WillReleaseScriptContext(v8::Local<v8::Context> context,
int world_id) override {
ASSERT_EQ(Frame(), frame);
release_notifications_.push_back(
WTF::MakeUnique<Notification>(frame, context, world_id));
WTF::MakeUnique<Notification>(Frame(), context, world_id));
}
};
......
......@@ -609,9 +609,7 @@ class BLINK_EXPORT WebFrameClient {
int world_id) {}
// WebKit is about to release its reference to a v8 context for a frame.
virtual void WillReleaseScriptContext(WebLocalFrame*,
v8::Local<v8::Context>,
int world_id) {}
virtual void WillReleaseScriptContext(v8::Local<v8::Context>, int world_id) {}
// Geometry notifications ----------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment