Index: third_party/WebKit/Source/platform/graphics/Image.h |
diff --git a/third_party/WebKit/Source/platform/graphics/Image.h b/third_party/WebKit/Source/platform/graphics/Image.h |
index b8f33f384230a096da856ae4422de1fb9519c856..477826b10cdacd9705262fbd8c48e87630ecce49 100644 |
--- a/third_party/WebKit/Source/platform/graphics/Image.h |
+++ b/third_party/WebKit/Source/platform/graphics/Image.h |
@@ -32,6 +32,7 @@ |
#include "platform/graphics/Color.h" |
#include "platform/graphics/GraphicsTypes.h" |
#include "platform/graphics/ImageAnimationPolicy.h" |
+#include "platform/graphics/ImageObserver.h" |
#include "platform/graphics/ImageOrientation.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
#include "wtf/Assertions.h" |
@@ -54,9 +55,6 @@ class Length; |
class SharedBuffer; |
class Image; |
-// This class gets notified when an image creates or destroys decoded frames and when it advances animation frames. |
-class ImageObserver; |
- |
class PLATFORM_EXPORT Image : public RefCounted<Image> { |
friend class GeneratedImage; |
friend class CrossfadeGeneratedImage; |
@@ -165,7 +163,7 @@ protected: |
private: |
RefPtr<SharedBuffer> m_encodedImageData; |
- ImageObserver* m_imageObserver; |
+ RawPtrWillBeWeakPersistent<ImageObserver> m_imageObserver; |
}; |
#define DEFINE_IMAGE_TYPE_CASTS(typeName) \ |