| Index: Source/web/WebPagePopupImpl.cpp
|
| diff --git a/Source/web/WebPagePopupImpl.cpp b/Source/web/WebPagePopupImpl.cpp
|
| index 7bcca7ee36afbe95a0be35eeedeb40b57af5b54f..64595f19b564599a1b6eb06251764d9459dc3e07 100644
|
| --- a/Source/web/WebPagePopupImpl.cpp
|
| +++ b/Source/web/WebPagePopupImpl.cpp
|
| @@ -244,8 +244,8 @@ bool WebPagePopupImpl::initializePage()
|
| m_page->settings().setScrollAnimatorEnabled(m_webView->page()->settings().scrollAnimatorEnabled());
|
|
|
| provideContextFeaturesTo(*m_page, adoptPtr(new PagePopupFeaturesClient()));
|
| - static FrameLoaderClient* emptyFrameLoaderClient = new EmptyFrameLoaderClient();
|
| - RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(emptyFrameLoaderClient, &m_page->frameHost(), 0);
|
| + DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<FrameLoaderClient>, emptyFrameLoaderClient, (EmptyFrameLoaderClient::create()));
|
| + RefPtrWillBeRawPtr<LocalFrame> frame = LocalFrame::create(emptyFrameLoaderClient.get(), &m_page->frameHost(), 0);
|
| frame->setPagePopupOwner(m_popupClient->ownerElement());
|
| frame->setView(FrameView::create(frame.get()));
|
| frame->init();
|
|
|