Index: Source/core/css/MediaValuesDynamic.h |
diff --git a/Source/core/css/MediaValuesDynamic.h b/Source/core/css/MediaValuesDynamic.h |
index b4e6ec592baebeef20b96d356b771c54baa054f8..6a1731c9d2f8adf1ca02ad3ebd637ad193d236bc 100644 |
--- a/Source/core/css/MediaValuesDynamic.h |
+++ b/Source/core/css/MediaValuesDynamic.h |
@@ -13,9 +13,9 @@ class Document; |
class MediaValuesDynamic final : public MediaValues { |
public: |
- static PassRefPtr<MediaValues> create(Document&); |
- static PassRefPtr<MediaValues> create(LocalFrame*); |
- PassRefPtr<MediaValues> copy() const override; |
+ static PassRefPtrWillBeRawPtr<MediaValues> create(Document&); |
+ static PassRefPtrWillBeRawPtr<MediaValues> create(LocalFrame*); |
+ PassRefPtrWillBeRawPtr<MediaValues> copy() const override; |
bool isSafeToSendToAnotherThread() const override; |
bool computeLength(double value, CSSPrimitiveValue::UnitType, int& result) const override; |
bool computeLength(double value, CSSPrimitiveValue::UnitType, double& result) const override; |
@@ -38,13 +38,14 @@ public: |
Document* document() const override; |
bool hasValues() const override; |
+ DECLARE_VIRTUAL_TRACE(); |
+ |
protected: |
MediaValuesDynamic(LocalFrame*); |
// This raw ptr is safe, as MediaValues would not outlive MediaQueryEvaluator, and |
// MediaQueryEvaluator is reset on |Document::detach|. |
- // FIXME: Oilpan: This raw ptr should be changed to a Member when LocalFrame is migrated to the heap. |
- LocalFrame* m_frame; |
+ RawPtrWillBeMember<LocalFrame> m_frame; |
}; |
} // namespace |