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

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

Issue 2469873002: [ImageResource 4] Split ImageResource into Resource and Image parts (Closed)
Patch Set: style 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 01914921f1550a5a17f197f4c9d4d24c5061c452..372bac8fabd79c7d5e4362409a7f9ea51d563dd6 100644
--- a/third_party/WebKit/Source/core/html/HTMLImageElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLImageElement.h
@@ -76,8 +76,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(); }
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp ('k') | third_party/WebKit/Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698