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

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

Issue 267413002: Oilpan: Prepare to move UA shadow elemnts for date/time input types to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nits 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/DateTimeFieldElement.h
diff --git a/Source/core/html/shadow/DateTimeFieldElement.h b/Source/core/html/shadow/DateTimeFieldElement.h
index ade59e0d7a401dd89aabb64637c90054ae639473..c62c9d673b80b3e5dd361a3474fe2b910b755989 100644
--- a/Source/core/html/shadow/DateTimeFieldElement.h
+++ b/Source/core/html/shadow/DateTimeFieldElement.h
@@ -48,7 +48,7 @@ public:
// FieldOwner implementer must call removeEventHandler when
// it doesn't handle event, e.g. at destruction.
- class FieldOwner {
+ class FieldOwner : public WillBeGarbageCollectedMixin {
public:
virtual ~FieldOwner();
virtual void didBlurFromField() = 0;
@@ -67,7 +67,7 @@ public:
bool isDisabled() const;
virtual float maximumWidth(const Font&);
virtual void populateDateTimeFieldsState(DateTimeFieldsState&) = 0;
- void removeEventHandler() { m_fieldOwner = 0; }
+ void removeEventHandler() { m_fieldOwner = nullptr; }
void setDisabled();
virtual void setEmptyValue(EventBehavior = DispatchNoEvent) = 0;
virtual void setValueAsDate(const DateComponents&) = 0;
@@ -77,6 +77,7 @@ public:
virtual void stepUp() = 0;
virtual String value() const = 0;
virtual String visibleValue() const = 0;
+ virtual void trace(Visitor*) OVERRIDE;
protected:
DateTimeFieldElement(Document&, FieldOwner&);
@@ -99,7 +100,7 @@ private:
bool isFieldOwnerReadOnly() const;
virtual bool supportsFocus() const OVERRIDE FINAL;
- FieldOwner* m_fieldOwner;
+ RawPtrWillBeWeakMember<FieldOwner> m_fieldOwner;
Mads Ager (chromium) 2014/05/07 14:55:08 Ditto for this one? It would be great if this coul
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698