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

Unified Diff: third_party/WebKit/Source/core/html/HTMLImageElement.h

Issue 2469873002: [ImageResource 4] Split ImageResource into Resource and Image parts (Closed)
Patch Set: Rebase Created 4 years 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/html/HTMLImageElement.h
diff --git a/third_party/WebKit/Source/core/html/HTMLImageElement.h b/third_party/WebKit/Source/core/html/HTMLImageElement.h
index 884a8b3e3bc289e59ad35537221e44199c9d17df..5ac97dd2b6a983757648e174fb519bb1b4178c6b 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.h
@@ -77,8 +77,11 @@ class CORE_EXPORT HTMLImageElement final : public HTMLElement,
String altText() const final;
- ImageResource* cachedImage() const { return imageLoader().image(); }
- void setImageResource(ImageResource* i) { imageLoader().setImage(i); }
+ ImageResourceContent* cachedImage() const { return imageLoader().image(); }
+ ImageResource* cachedImageResourceForImageDocument() const {
+ return imageLoader().imageResourceForImageDocument();
+ }
+ void setImageResource(ImageResourceContent* i) { imageLoader().setImage(i); }
void setLoadingImageDocument() { imageLoader().setLoadingImageDocument(); }

Powered by Google App Engine
This is Rietveld 408576698