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

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

Issue 1306283006: BackgroundImage incorrectly returns empty url() when created on-the-fly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 3 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
Index: Source/core/style/StyleFetchedImage.cpp
diff --git a/Source/core/style/StyleFetchedImage.cpp b/Source/core/style/StyleFetchedImage.cpp
index 5f3d9d007bae15292386c4ff5aa78bf896b5b7ec..5d5f23daed52061e715a13a70acae5766379017c 100644
--- a/Source/core/style/StyleFetchedImage.cpp
+++ b/Source/core/style/StyleFetchedImage.cpp
@@ -49,6 +49,11 @@ PassRefPtrWillBeRawPtr<CSSValue> StyleFetchedImage::cssValue() const
return CSSImageValue::create(m_image->url(), const_cast<StyleFetchedImage*>(this));
}
+PassRefPtrWillBeRawPtr<CSSValue> StyleFetchedImage::computedCSSValue() const
+{
+ return CSSImageValue::create(m_image->url(), const_cast<StyleFetchedImage*>(this));
alancutter (OOO until 2018) 2015/09/18 02:55:09 Add comment stating why the const_cast is necessar
nainar 2015/09/18 03:47:25 Done.
+}
+
bool StyleFetchedImage::canRender(const LayoutObject& layoutObject, float multiplier) const
{
return m_image->canRender(layoutObject, multiplier);

Powered by Google App Engine
This is Rietveld 408576698