Chromium Code Reviews| 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 |