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

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

Issue 316443004: Oilpan: Remove ref counting from EventTarget and all uses of Pass/RefPtr<EventTarget>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 6 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/DOMWindow.cpp ('k') | Source/core/page/EventHandler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/ime/InputMethodContext.h
diff --git a/Source/core/html/ime/InputMethodContext.h b/Source/core/html/ime/InputMethodContext.h
index 7440115a00888b75a87118f00af86c3d6665b660..d2b7978bc40ba802c960c3523f3191f621ea820d 100644
--- a/Source/core/html/ime/InputMethodContext.h
+++ b/Source/core/html/ime/InputMethodContext.h
@@ -52,10 +52,7 @@ public:
static PassOwnPtrWillBeRawPtr<InputMethodContext> create(HTMLElement*);
virtual ~InputMethodContext();
-#if ENABLE(OILPAN)
- using RefCountedGarbageCollected<InputMethodContext>::ref;
- using RefCountedGarbageCollected<InputMethodContext>::deref;
-#else
+#if !ENABLE(OILPAN)
void ref() { m_element->ref(); }
void deref() { m_element->deref(); }
#endif
@@ -90,8 +87,10 @@ private:
CompositionUnderline selectedSegment() const;
InputMethodController& inputMethodController() const;
+#if !ENABLE(OILPAN)
virtual void refEventTarget() OVERRIDE { ref(); }
virtual void derefEventTarget() OVERRIDE { deref(); }
+#endif
RawPtrWillBeMember<HTMLElement> m_element;
Vector<unsigned> m_segments;
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/page/EventHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698