Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Unified Diff: third_party/WebKit/Source/core/loader/resource/ImageResourceObserver.h

Issue 2941533002: Break StyleImage dependency on LayoutObject (Closed)
Patch Set: Address reviewer comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/resource/ImageResourceObserver.h
diff --git a/third_party/WebKit/Source/core/loader/resource/ImageResourceObserver.h b/third_party/WebKit/Source/core/loader/resource/ImageResourceObserver.h
index 8f8913aec7a81dde9594859fca094419f86583c1..d7f9739cb6549c42317bcf0eb0cb51a347f6022c 100644
--- a/third_party/WebKit/Source/core/loader/resource/ImageResourceObserver.h
+++ b/third_party/WebKit/Source/core/loader/resource/ImageResourceObserver.h
@@ -24,6 +24,7 @@
#define ImageResourceObserver_h
#include "core/CoreExport.h"
+#include "core/style/StyleImage.h"
#include "platform/graphics/ImageAnimationPolicy.h"
#include "platform/loader/fetch/ResourceLoadPriority.h"
#include "platform/wtf/Forward.h"
@@ -40,7 +41,11 @@ class CORE_EXPORT ImageResourceObserver {
// Called whenever a frame of an image changes, either because we got more
// data from the network or because we are animating. If not null, the IntRect
// is the changed rect of the image.
- virtual void ImageChanged(ImageResourceContent*, const IntRect* = 0) {}
+ virtual void ImageChanged(ImageResourceContent*, const IntRect* = nullptr) {}
+
+ // Sub-classes that have an associated image need to override this function
+ // to get notified of any image change.
+ virtual void ImageChanged(WrappedImagePtr, const IntRect* = nullptr) {}
// Called just after imageChanged() if all image data is received or errored.
// TODO(hiroshige): Merge imageNotifyFinished() into imageChanged().
« no previous file with comments | « third_party/WebKit/Source/core/layout/shapes/ShapeOutsideInfo.cpp ('k') | third_party/WebKit/Source/core/paint/BoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698