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

Unified Diff: Source/core/html/ime/InputMethodContext.cpp

Issue 307433003: Oilpan: Allocate all EventTarget derived types on the manged heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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: Source/core/html/ime/InputMethodContext.cpp
diff --git a/Source/core/html/ime/InputMethodContext.cpp b/Source/core/html/ime/InputMethodContext.cpp
index 5f1e05395303ccff51cfd9b22c6901da68c14324..22724077086e574558cc9ef9daf4ec46c17aee08 100644
--- a/Source/core/html/ime/InputMethodContext.cpp
+++ b/Source/core/html/ime/InputMethodContext.cpp
@@ -37,9 +37,9 @@
namespace WebCore {
-PassOwnPtr<InputMethodContext> InputMethodContext::create(HTMLElement* element)
+PassOwnPtrWillBeRawPtr<InputMethodContext> InputMethodContext::create(HTMLElement* element)
{
- return adoptPtr(new InputMethodContext(element));
+ return adoptPtrWillBeRefCountedGarbageCollected(new InputMethodContext(element));
}
InputMethodContext::InputMethodContext(HTMLElement* element)
@@ -185,4 +185,10 @@ void InputMethodContext::dispatchCandidateWindowHideEvent()
dispatchEvent(Event::create(EventTypeNames::candidatewindowhide));
}
+void InputMethodContext::trace(Visitor* visitor)
+{
+ visitor->trace(m_element);
+ EventTargetWithInlineData::trace(visitor);
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698