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

Unified Diff: Source/core/frame/FrameHost.cpp

Issue 642003002: Move PinchViewport to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/frame/FrameHost.h ('k') | Source/core/frame/PinchViewport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameHost.cpp
diff --git a/Source/core/frame/FrameHost.cpp b/Source/core/frame/FrameHost.cpp
index 8e5541d66473281e0c132871f36886729ad4a9b4..45f7d1cfd3177d19ee2ddf062aca9a06c4214a92 100644
--- a/Source/core/frame/FrameHost.cpp
+++ b/Source/core/frame/FrameHost.cpp
@@ -45,7 +45,7 @@ PassOwnPtrWillBeRawPtr<FrameHost> FrameHost::create(Page& page)
FrameHost::FrameHost(Page& page)
: m_page(&page)
- , m_pinchViewport(adoptPtr(new PinchViewport(*this)))
+ , m_pinchViewport(PinchViewport::create(*this))
, m_eventHandlerRegistry(adoptPtrWillBeNoop(new EventHandlerRegistry(*this)))
{
}
@@ -88,6 +88,7 @@ EventHandlerRegistry& FrameHost::eventHandlerRegistry() const
void FrameHost::trace(Visitor* visitor)
{
visitor->trace(m_page);
+ visitor->trace(m_pinchViewport);
visitor->trace(m_eventHandlerRegistry);
}
« no previous file with comments | « Source/core/frame/FrameHost.h ('k') | Source/core/frame/PinchViewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698