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

Unified Diff: Source/core/svg/graphics/SVGImage.cpp

Issue 1306793003: Oilpan: Move FrameLoaderClient class hierarchy into Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « Source/core/page/PrintContextTest.cpp ('k') | Source/core/testing/DummyPageHolder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/graphics/SVGImage.cpp
diff --git a/Source/core/svg/graphics/SVGImage.cpp b/Source/core/svg/graphics/SVGImage.cpp
index 17a154dd4afe0b655cd08a20a624727e282fbc7e..4b751100e3ed6f6e9ef5760e57ecf64872a60641 100644
--- a/Source/core/svg/graphics/SVGImage.cpp
+++ b/Source/core/svg/graphics/SVGImage.cpp
@@ -424,7 +424,7 @@ bool SVGImage::dataChanged(bool allDataReceived)
// types.
EventDispatchForbiddenScope::AllowUserAgentEvents allowUserAgentEvents;
- static FrameLoaderClient* dummyFrameLoaderClient = new EmptyFrameLoaderClient;
+ DEFINE_STATIC_LOCAL(OwnPtrWillBePersistent<FrameLoaderClient>, dummyFrameLoaderClient, (EmptyFrameLoaderClient::create()));
Page::PageClients pageClients;
fillWithEmptyClients(pageClients);
@@ -461,7 +461,7 @@ bool SVGImage::dataChanged(bool allDataReceived)
RefPtrWillBeRawPtr<LocalFrame> frame = nullptr;
{
TRACE_EVENT0("blink", "SVGImage::dataChanged::createFrame");
- frame = LocalFrame::create(dummyFrameLoaderClient, &page->frameHost(), 0);
+ frame = LocalFrame::create(dummyFrameLoaderClient.get(), &page->frameHost(), 0);
frame->setView(FrameView::create(frame.get()));
frame->init();
}
« no previous file with comments | « Source/core/page/PrintContextTest.cpp ('k') | Source/core/testing/DummyPageHolder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698