Index: Source/platform/graphics/filters/ReferenceFilter.h |
diff --git a/Source/platform/graphics/filters/ReferenceFilter.h b/Source/platform/graphics/filters/ReferenceFilter.h |
index 2345657082330898e3c0683bd2ba77ecd0301cdd..aca69622ec51d0705cb767ee1c39b54b19039579 100644 |
--- a/Source/platform/graphics/filters/ReferenceFilter.h |
+++ b/Source/platform/graphics/filters/ReferenceFilter.h |
@@ -33,6 +33,7 @@ |
#include "platform/geometry/FloatRect.h" |
#include "platform/graphics/filters/Filter.h" |
+#include "platform/heap/Handle.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefPtr.h" |
@@ -43,24 +44,26 @@ class FilterEffect; |
class PLATFORM_EXPORT ReferenceFilter: public Filter { |
public: |
- static PassRefPtr<ReferenceFilter> create(float scale) |
+ static PassRefPtrWillBeRawPtr<ReferenceFilter> create(float scale) |
{ |
- return adoptRef(new ReferenceFilter(scale)); |
+ return adoptRefWillBeNoop(new ReferenceFilter(scale)); |
} |
+ virtual ~ReferenceFilter(); |
+ virtual void trace(Visitor*) override; |
+ |
virtual IntRect sourceImageRect() const override { return IntRect(); }; |
- void setLastEffect(PassRefPtr<FilterEffect>); |
+ void setLastEffect(PassRefPtrWillBeRawPtr<FilterEffect>); |
FilterEffect* lastEffect() const { return m_lastEffect.get(); } |
SourceGraphic* sourceGraphic() const { return m_sourceGraphic.get(); } |
private: |
- ReferenceFilter(float scale); |
- virtual ~ReferenceFilter(); |
+ explicit ReferenceFilter(float scale); |
- RefPtr<SourceGraphic> m_sourceGraphic; |
- RefPtr<FilterEffect> m_lastEffect; |
+ RefPtrWillBeMember<SourceGraphic> m_sourceGraphic; |
+ RefPtrWillBeMember<FilterEffect> m_lastEffect; |
}; |
} // namespace blink |