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

Unified Diff: Source/core/css/CSSImageValue.h

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/CSSImageSetValue.cpp ('k') | Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSImageValue.h
diff --git a/Source/core/css/CSSImageValue.h b/Source/core/css/CSSImageValue.h
index 9019164dc9faad43d516699fbb17060e31a8ad31..87a4e375f513c6f7683e5d071c33c583e412eb41 100644
--- a/Source/core/css/CSSImageValue.h
+++ b/Source/core/css/CSSImageValue.h
@@ -66,6 +66,11 @@ public:
bool knownToBeOpaque(const LayoutObject*) const;
+ PassRefPtrWillBeRawPtr<CSSImageValue> valueWithURLMadeAbsolute()
+ {
+ return create(KURL(ParsedURLString, m_absoluteURL), m_image.get());
+ }
+
void setInitiator(const AtomicString& name) { m_initiatorName = name; }
DECLARE_TRACE_AFTER_DISPATCH();
« no previous file with comments | « Source/core/css/CSSImageSetValue.cpp ('k') | Source/core/css/CSSImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698