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

Unified Diff: Source/core/style/StyleFetchedImageSet.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: Ensure getComputedStyle returns absolute URLs 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/StyleFetchedImageSet.cpp
diff --git a/Source/core/style/StyleFetchedImageSet.cpp b/Source/core/style/StyleFetchedImageSet.cpp
index b5732d8fda2289ea1e6afcfeb79089396fd710c4..c546da395ff0bb5041697f66d67478447f29327a 100644
--- a/Source/core/style/StyleFetchedImageSet.cpp
+++ b/Source/core/style/StyleFetchedImageSet.cpp
@@ -52,6 +52,11 @@ PassRefPtrWillBeRawPtr<CSSValue> StyleFetchedImageSet::cssValue() const
return m_imageSetValue;
}
+PassRefPtrWillBeRawPtr<CSSValue> StyleFetchedImageSet::computedCSSValue() const
+{
+ return m_imageSetValue ? m_imageSetValue->valueWithAbsoluteURL() : nullptr;
Timothy Loh 2015/09/15 12:20:47 Looks like m_imageSetValue is never null?
nainar 2015/09/16 07:16:49 Done.
+}
+
bool StyleFetchedImageSet::canRender(const LayoutObject& layoutObject, float multiplier) const
{
return m_bestFitImage->canRender(layoutObject, multiplier);

Powered by Google App Engine
This is Rietveld 408576698