Index: third_party/WebKit/Source/core/style/StyleFetchedImage.h |
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.h b/third_party/WebKit/Source/core/style/StyleFetchedImage.h |
index 7924be82aa9a75dcd5749a59562d803cc13d3e85..0e891d4ab1a8957dbd21c732c7293b390d1ce508 100644 |
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.h |
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.h |
@@ -35,6 +35,7 @@ class ImageResource; |
class StyleFetchedImage final : public StyleImage, private ImageResourceClient { |
USING_FAST_MALLOC_WILL_BE_REMOVED(StyleFetchedImage); |
+ WILL_BE_USING_PRE_FINALIZER(StyleFetchedImage, dispose); |
public: |
static PassRefPtrWillBeRawPtr<StyleFetchedImage> create(ImageResource* image, Document* document, const KURL& url) |
{ |
@@ -63,16 +64,13 @@ public: |
bool knownToBeOpaque(const LayoutObject*) const override; |
ImageResource* cachedImage() const override; |
-#if ENABLE(OILPAN) |
- // Promptly remove as a ImageResource client. |
- EAGERLY_FINALIZE(); |
- DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); |
-#endif |
DECLARE_VIRTUAL_TRACE(); |
private: |
StyleFetchedImage(ImageResource*, Document*, const KURL&); |
+ void dispose(); |
+ |
ResourcePtr<ImageResource> m_image; |
RawPtrWillBeMember<Document> m_document; |
const KURL m_url; |