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

Unified Diff: Source/core/css/CSSCrossfadeValue.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: Change StyleFetchedImage 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/css/CSSCrossfadeValue.cpp
diff --git a/Source/core/css/CSSCrossfadeValue.cpp b/Source/core/css/CSSCrossfadeValue.cpp
index 43536472b972fa8c1adccba67c7ba68eaea491a5..da36e5f73adf11e3835d4092343a8373b6d7c60b 100644
--- a/Source/core/css/CSSCrossfadeValue.cpp
+++ b/Source/core/css/CSSCrossfadeValue.cpp
@@ -117,6 +117,13 @@ String CSSCrossfadeValue::customCSSText() const
return result.toString();
}
+PassRefPtrWillBeRawPtr<CSSCrossfadeValue> CSSCrossfadeValue::valueWithURLMadeAbsolute()
+{
+ RefPtrWillBeRawPtr<CSSValue> fromValue = m_fromValue->isImageValue() ? toCSSImageValue(*m_fromValue).valueWithURLMadeAbsolute() : m_fromValue;
+ RefPtrWillBeRawPtr<CSSValue> toValue = m_toValue->isImageValue() ? toCSSImageValue(*m_toValue).valueWithURLMadeAbsolute() : m_toValue;
+ return CSSCrossfadeValue::create(fromValue.release(), toValue.release(), m_percentageValue);
+}
+
IntSize CSSCrossfadeValue::fixedSize(const LayoutObject* layoutObject)
{
Image* fromImage = renderableImageForCSSValue(m_fromValue.get(), layoutObject);

Powered by Google App Engine
This is Rietveld 408576698