| 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 693f9e4c04e504dabc264b7644ab32d80db49c48..0aa68619e95d1809523942cb8c54b5068af4ec39 100644
|
| --- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
|
| @@ -275,11 +275,22 @@
|
| {
|
| }
|
|
|
| -WebLocalFrame* TestWebFrameClient::createChildFrame(WebLocalFrame* parent, WebTreeScopeType scope, const WebString& name, const WebString& uniqueName, WebSandboxFlags sandboxFlags, const WebFrameOwnerProperties& frameOwnerProperties)
|
| -{
|
| - WebLocalFrame* frame = WebLocalFrame::create(scope, this);
|
| +WebFrame* TestWebFrameClient::createChildFrame(WebLocalFrame* parent, WebTreeScopeType scope, const WebString& name, const WebString& uniqueName, WebSandboxFlags sandboxFlags, const WebFrameOwnerProperties& frameOwnerProperties)
|
| +{
|
| + WebFrame* 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)
|
|
|