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

Unified Diff: Source/core/html/shadow/ClearButtonElement.h

Issue 267283007: Oilpan: Prepare to move form control ua shadow elements to Oilpan 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/shadow/ClearButtonElement.h
diff --git a/Source/core/html/shadow/ClearButtonElement.h b/Source/core/html/shadow/ClearButtonElement.h
index 6acf100bc6ca81adbf5cdb74e7a866b9e7a023f0..eba5309fa3097f7fb1422055de0ef9982bbf11a4 100644
--- a/Source/core/html/shadow/ClearButtonElement.h
+++ b/Source/core/html/shadow/ClearButtonElement.h
@@ -33,7 +33,7 @@ namespace WebCore {
class ClearButtonElement FINAL : public HTMLDivElement {
public:
- class ClearButtonOwner {
+ class ClearButtonOwner : public WillBeGarbageCollectedMixin {
public:
virtual ~ClearButtonOwner() { }
virtual void focusAndSelectClearButtonOwner() = 0;
@@ -41,9 +41,11 @@ public:
virtual void clearValue() = 0;
};
- static PassRefPtr<ClearButtonElement> create(Document&, ClearButtonOwner&);
+ static PassRefPtrWillBeRawPtr<ClearButtonElement> create(Document&, ClearButtonOwner&);
void releaseCapture();
- void removeClearButtonOwner() { m_clearButtonOwner = 0; }
+ void removeClearButtonOwner() { m_clearButtonOwner = nullptr; }
+
+ virtual void trace(Visitor*) OVERRIDE;
private:
ClearButtonElement(Document&, ClearButtonOwner&);
@@ -52,7 +54,7 @@ private:
virtual void defaultEventHandler(Event*) OVERRIDE;
virtual bool isClearButtonElement() const OVERRIDE;
- ClearButtonOwner* m_clearButtonOwner;
+ RawPtrWillBeMember<ClearButtonOwner> m_clearButtonOwner;
bool m_capturing;
};

Powered by Google App Engine
This is Rietveld 408576698