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

Unified Diff: third_party/WebKit/Source/core/css/CSSValueList.cpp

Issue 2625873010: Resolve CSS url(...) non-<image> values against the correct base (Closed)
Patch Set: Rebase Created 3 years, 11 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: third_party/WebKit/Source/core/css/CSSValueList.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSValueList.cpp b/third_party/WebKit/Source/core/css/CSSValueList.cpp
index e443ae39d55df4933fbadf24f8774d13d415af94..2e768e0d70a51bfd2295c321a41e60655a36601a 100644
--- a/third_party/WebKit/Source/core/css/CSSValueList.cpp
+++ b/third_party/WebKit/Source/core/css/CSSValueList.cpp
@@ -124,6 +124,19 @@ bool CSSValueList::hasFailedOrCanceledSubresources() const {
return false;
}
+bool CSSValueList::mayContainUrl() const {
+ for (const auto& value : m_values) {
+ if (value->mayContainUrl())
+ return true;
+ }
+ return false;
+}
+
+void CSSValueList::reResolveUrl(const Document& document) const {
+ for (const auto& value : m_values)
+ value->reResolveUrl(document);
+}
+
DEFINE_TRACE_AFTER_DISPATCH(CSSValueList) {
visitor->trace(m_values);
CSSValue::traceAfterDispatch(visitor);
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValueList.h ('k') | third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698