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

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: 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/style/StyleGeneratedImage.h ('k') | Source/core/style/StyleImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/StyleGeneratedImage.cpp
diff --git a/Source/core/style/StyleGeneratedImage.cpp b/Source/core/style/StyleGeneratedImage.cpp
index fff63c74437c584b51b40ef7fedef448df0a4949..b4c06ee51ed889739dedbf7d809e8dfcbc65c1ef 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->valueWithURLsMadeAbsolute();
+}
+
LayoutSize StyleGeneratedImage::imageSize(const LayoutObject* layoutObject, float multiplier) const
{
if (m_fixedSize) {
« no previous file with comments | « Source/core/style/StyleGeneratedImage.h ('k') | Source/core/style/StyleImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698