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

Unified Diff: third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp

Issue 2369613003: Require WebLocalFrame to be created with a non-null client (Closed)
Patch Set: oops Created 4 years, 3 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/tests/FrameTestHelpers.cpp
diff --git a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
index 0aa68619e95d1809523942cb8c54b5068af4ec39..693f9e4c04e504dabc264b7644ab32d80db49c48 100644
--- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
+++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
@@ -275,24 +275,13 @@ TestWebFrameClient::TestWebFrameClient()
{
}
-WebFrame* TestWebFrameClient::createChildFrame(WebLocalFrame* parent, WebTreeScopeType scope, const WebString& name, const WebString& uniqueName, WebSandboxFlags sandboxFlags, const WebFrameOwnerProperties& frameOwnerProperties)
+WebLocalFrame* TestWebFrameClient::createChildFrame(WebLocalFrame* parent, WebTreeScopeType scope, const WebString& name, const WebString& uniqueName, WebSandboxFlags sandboxFlags, const WebFrameOwnerProperties& frameOwnerProperties)
{
- WebFrame* frame = WebLocalFrame::create(scope, this);
+ WebLocalFrame* frame = WebLocalFrame::create(scope, this);
parent->appendChild(frame);
return frame;
}
-void TestWebFrameClient::frameDetached(WebLocalFrame* frame, DetachType type)
-{
- if (type == DetachType::Remove && frame->parent())
- frame->parent()->removeChild(frame);
-
- if (frame->frameWidget())
- frame->frameWidget()->close();
-
- frame->close();
-}
-
void TestWebFrameClient::didStartLoading(bool)
{
++m_loadsInProgress;

Powered by Google App Engine
This is Rietveld 408576698