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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutImageResource.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/layout/LayoutImageResource.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutImageResource.h b/third_party/WebKit/Source/core/layout/LayoutImageResource.h
index ccf528bdb42ec74ec4e9b874fa66c1cffd5d14d5..2e6e1023a56e3cbe42aaa3064d187a2d8497be5f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutImageResource.h
+++ b/third_party/WebKit/Source/core/layout/LayoutImageResource.h
@@ -27,7 +27,7 @@
#ifndef LayoutImageResource_h
#define LayoutImageResource_h
-#include "core/fetch/ImageResource.h"
+#include "core/fetch/ImageResourceContent.h"
#include "core/style/StyleImage.h"
namespace blink {
@@ -46,8 +46,8 @@ class LayoutImageResource
virtual void initialize(LayoutObject*);
virtual void shutdown();
- void setImageResource(ImageResource*);
- ImageResource* cachedImage() const { return m_cachedImage.get(); }
+ void setImageResource(ImageResourceContent*);
+ ImageResourceContent* cachedImage() const { return m_cachedImage.get(); }
virtual bool hasImage() const { return m_cachedImage; }
void resetAnimation();
@@ -71,7 +71,7 @@ class LayoutImageResource
protected:
LayoutImageResource();
LayoutObject* m_layoutObject;
- Member<ImageResource> m_cachedImage;
+ Member<ImageResourceContent> m_cachedImage;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutImage.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698