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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageSetValue.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/css/CSSImageSetValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp b/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
index de1297df88304dda61867a080da6dd61cf8f0623..c50069c4b6eaa6b48ed7664cd5dbec8766bf97af 100644
--- a/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageSetValue.cpp
@@ -30,7 +30,7 @@
#include "core/dom/Document.h"
#include "core/fetch/FetchInitiatorTypeNames.h"
#include "core/fetch/FetchRequest.h"
-#include "core/fetch/ImageResource.h"
+#include "core/fetch/ImageResourceContent.h"
#include "core/fetch/ResourceFetcher.h"
#include "core/fetch/ResourceLoaderOptions.h"
#include "core/frame/Settings.h"
@@ -120,8 +120,8 @@ StyleImage* CSSImageSetValue::cacheImage(
if (document.settings() && document.settings()->fetchImagePlaceholders())
request.setAllowImagePlaceholder();
- if (ImageResource* cachedImage =
- ImageResource::fetch(request, document.fetcher()))
+ if (ImageResourceContent* cachedImage =
+ ImageResourceContent::fetch(request, document.fetcher()))
m_cachedImage = StyleFetchedImageSet::create(
cachedImage, image.scaleFactor, this, request.url());
else
@@ -165,7 +165,7 @@ String CSSImageSetValue::customCSSText() const {
bool CSSImageSetValue::hasFailedOrCanceledSubresources() const {
if (!m_cachedImage)
return false;
- if (Resource* cachedResource = m_cachedImage->cachedImage())
+ if (ImageResourceContent* cachedResource = m_cachedImage->cachedImage())
return cachedResource->loadFailedOrCanceled();
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCursorImageValue.cpp ('k') | third_party/WebKit/Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698