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

Unified Diff: third_party/WebKit/Source/core/fetch/ImageResource.h

Issue 1802123002: Unify Resource loading status tracking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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/fetch/ImageResource.h
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.h b/third_party/WebKit/Source/core/fetch/ImageResource.h
index d4b92c4df7b555ca0216507b572265f45eb4a549..db8c6abf680b25e6e1f25d513f8593a089d87b8a 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.h
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.h
@@ -64,8 +64,6 @@ public:
~ImageResource() override;
- void load(ResourceFetcher*) override;
-
blink::Image* getImage(); // Returns the nullImage() if the image is not available yet.
bool hasImage() const { return m_image.get(); }
@@ -107,7 +105,6 @@ public:
bool shouldIgnoreHTTPStatusCodeErrors() const override { return true; }
bool isImage() const override { return true; }
- bool stillNeedsLoad() const override { return !errorOccurred() && getStatus() == Unknown && !isLoading(); }
// ImageObserver
void decodedSizeChanged(const blink::Image*, int delta) override;

Powered by Google App Engine
This is Rietveld 408576698