Chromium Code Reviews| Index: Source/core/loader/ImageLoader.h |
| diff --git a/Source/core/loader/ImageLoader.h b/Source/core/loader/ImageLoader.h |
| index dcd2115f9329c3b1effbf99c6f2b92619b834955..2b84cc32fdd8fa1bd9a2f8132731880f5ea826aa 100644 |
| --- a/Source/core/loader/ImageLoader.h |
| +++ b/Source/core/loader/ImageLoader.h |
| @@ -75,7 +75,9 @@ public: |
| // This should be the update behavior when the resource was changed (via 'src', 'srcset' or 'sizes'). |
| // Starts a new load even if a previous load of the same resource have failed, to match Firefox's behavior. |
| // FIXME - Verify that this is the right behavior according to the spec. |
| - UpdateIgnorePreviousError |
| + UpdateIgnorePreviousError, |
| + // This forces the image to update its intrinsic size, even if the image source has not changed. |
| + UpdateForce |
|
esprehn
2014/07/25 23:51:56
Can we give this a better name like UpdateSizeChan
|
| }; |
| enum BypassMainWorldBehavior { |
| @@ -118,7 +120,7 @@ private: |
| class Task; |
| // Called from the task or from updateFromElement to initiate the load. |
| - void doUpdateFromElement(BypassMainWorldBehavior); |
| + void doUpdateFromElement(BypassMainWorldBehavior, UpdateFromElementBehavior); |
| virtual void dispatchLoadEvent() = 0; |
| virtual String sourceURI(const AtomicString&) const = 0; |
| @@ -135,7 +137,7 @@ private: |
| void sourceImageChanged(); |
| void clearFailedLoadURL(); |
| void crossSiteOrCSPViolationOccured(AtomicString); |
| - void enqueueImageLoadingMicroTask(); |
| + void enqueueImageLoadingMicroTask(UpdateFromElementBehavior); |
| static ResourcePtr<ImageResource> createImageResourceForImageDocument(Document&, FetchRequest&); |
| void timerFired(Timer<ImageLoader>*); |