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

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: 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
« no previous file with comments | « Source/core/css/CSSCrossfadeValue.h ('k') | Source/core/css/CSSImageGeneratorValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSCrossfadeValue.cpp
diff --git a/Source/core/css/CSSCrossfadeValue.cpp b/Source/core/css/CSSCrossfadeValue.cpp
index 43536472b972fa8c1adccba67c7ba68eaea491a5..41af71c2e596c4daec771cb67e63b6b9bfbf1805 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::valueWithURLsMadeAbsolute()
+{
+ 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);
« no previous file with comments | « Source/core/css/CSSCrossfadeValue.h ('k') | Source/core/css/CSSImageGeneratorValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698