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

Unified Diff: third_party/WebKit/Source/core/style/StyleFetchedImage.cpp

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/style/StyleFetchedImage.cpp
diff --git a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
index cb70d27aaeda09ba4115213ea773aa23ae91985b..501e1c5ade3a1b148140af4481d23f23eab18260 100644
--- a/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
+++ b/third_party/WebKit/Source/core/style/StyleFetchedImage.cpp
@@ -24,14 +24,14 @@
#include "core/style/StyleFetchedImage.h"
#include "core/css/CSSImageValue.h"
-#include "core/fetch/ImageResource.h"
+#include "core/fetch/ImageResourceContent.h"
#include "core/layout/LayoutObject.h"
#include "core/svg/graphics/SVGImage.h"
#include "core/svg/graphics/SVGImageForContainer.h"
namespace blink {
-StyleFetchedImage::StyleFetchedImage(ImageResource* image,
+StyleFetchedImage::StyleFetchedImage(ImageResourceContent* image,
const Document& document,
const KURL& url)
: m_image(image), m_document(&document), m_url(url) {
@@ -54,7 +54,7 @@ WrappedImagePtr StyleFetchedImage::data() const {
return m_image.get();
}
-ImageResource* StyleFetchedImage::cachedImage() const {
+ImageResourceContent* StyleFetchedImage::cachedImage() const {
return m_image.get();
}
@@ -110,7 +110,7 @@ void StyleFetchedImage::removeClient(LayoutObject* layoutObject) {
m_image->removeObserver(layoutObject);
}
-void StyleFetchedImage::imageNotifyFinished(ImageResource*) {
+void StyleFetchedImage::imageNotifyFinished(ImageResourceContent*) {
if (m_document && m_image && m_image->getImage() &&
m_image->getImage()->isSVGImage())
toSVGImage(m_image->getImage())->updateUseCounters(*m_document);
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleFetchedImage.h ('k') | third_party/WebKit/Source/core/style/StyleFetchedImageSet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698