Index: third_party/WebKit/Source/core/fetch/ImageResourceObserver.h |
diff --git a/third_party/WebKit/Source/core/fetch/ImageResourceObserver.h b/third_party/WebKit/Source/core/fetch/ImageResourceObserver.h |
index 15232a76c892b2ae97741b8edef5ff9867c2d078..d46fe1cfa0a13941fc1e753c4f80525de2c0ad60 100644 |
--- a/third_party/WebKit/Source/core/fetch/ImageResourceObserver.h |
+++ b/third_party/WebKit/Source/core/fetch/ImageResourceObserver.h |
@@ -37,19 +37,21 @@ class CORE_EXPORT ImageResourceObserver { |
public: |
virtual ~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. |
+ // 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(ImageResource*, const IntRect* = 0) {} |
- // Called just before ResourceClient::notifyFinished() would be called. |
- // This is to avoid an ImageResourceObserver from being |
- // also a ResourceClient just to be notified for load finish. |
+ // Called just before ResourceClient::notifyFinished() would be called. This |
+ // is to avoid an ImageResourceObserver from being also a ResourceClient just |
+ // to be notified for load finish. |
virtual void imageNotifyFinished(ImageResource*) {} |
- // Called to find out if this client wants to actually display the image. Used to tell when we |
- // can halt animation. Content nodes that hold image refs for example would not render the image, |
- // but LayoutImages would (assuming they have visibility: visible and their layout tree isn't hidden |
- // e.g., in the b/f cache or in a background tab). |
+ // Called to find out if this client wants to actually display the image. Used |
+ // to tell when we can halt animation. Content nodes that hold image refs for |
+ // example would not render the image, but LayoutImages would (assuming they |
+ // have visibility: visible and their layout tree isn't hidden e.g., in the |
+ // b/f cache or in a background tab). |
virtual bool willRenderImage() { return false; } |
// Called to get imageAnimation policy from settings |