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

Unified Diff: Source/core/style/StyleGeneratedImage.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/StyleGeneratedImage.cpp
diff --git a/Source/core/style/StyleGeneratedImage.cpp b/Source/core/style/StyleGeneratedImage.cpp
index fff63c74437c584b51b40ef7fedef448df0a4949..4fca6ef593f0d16c1c7470eb27ad7ef2454bee33 100644
--- a/Source/core/style/StyleGeneratedImage.cpp
+++ b/Source/core/style/StyleGeneratedImage.cpp
@@ -42,6 +42,11 @@ PassRefPtrWillBeRawPtr<CSSValue> StyleGeneratedImage::cssValue() const
return m_imageGeneratorValue.get();
}
+PassRefPtrWillBeRawPtr<CSSValue> StyleGeneratedImage::computedCSSValue() const
+{
+ return m_imageGeneratorValue->valueWithURLMadeAbsolute();
+}
+
LayoutSize StyleGeneratedImage::imageSize(const LayoutObject* layoutObject, float multiplier) const
{
if (m_fixedSize) {

Powered by Google App Engine
This is Rietveld 408576698