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

Unified Diff: Source/core/rendering/style/StyleFetchedImage.cpp

Issue 196943029: Web Animations API: Load resources referenced in element.animate() (reland) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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
« no previous file with comments | « Source/core/css/resolver/StyleResourceLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/StyleFetchedImage.cpp
diff --git a/Source/core/rendering/style/StyleFetchedImage.cpp b/Source/core/rendering/style/StyleFetchedImage.cpp
index 59566a9ff2fc9a765187bd30ae0e27980c8696fa..867736ea8ec37fc47cb71290f8f4713f72d0b304 100644
--- a/Source/core/rendering/style/StyleFetchedImage.cpp
+++ b/Source/core/rendering/style/StyleFetchedImage.cpp
@@ -24,6 +24,7 @@
#include "config.h"
#include "core/rendering/style/StyleFetchedImage.h"
+#include "core/css/CSSImageValue.h"
#include "core/fetch/ImageResource.h"
#include "core/rendering/RenderObject.h"
@@ -43,7 +44,7 @@ StyleFetchedImage::~StyleFetchedImage()
PassRefPtrWillBeRawPtr<CSSValue> StyleFetchedImage::cssValue() const
{
- return CSSPrimitiveValue::create(m_image->url().string(), CSSPrimitiveValue::CSS_URI);
+ return CSSImageValue::create(m_image->url(), const_cast<StyleFetchedImage*>(this));
}
bool StyleFetchedImage::canRender(const RenderObject* renderer, float multiplier) const
« no previous file with comments | « Source/core/css/resolver/StyleResourceLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698