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

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

Issue 2622993003: Compare relative url if absolute urls are empty for CSSImageValue (Closed)
Patch Set: modified tc 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/background-image-url-setproperty.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSImageValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageValue.cpp b/third_party/WebKit/Source/core/css/CSSImageValue.cpp
index 2c338c86573c6d5c7405a4e79e87606a403d927f..c119d1b61e9c332d61befb003bfdae5b72116d11 100644
--- a/third_party/WebKit/Source/core/css/CSSImageValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageValue.cpp
@@ -102,6 +102,8 @@ bool CSSImageValue::hasFailedOrCanceledSubresources() const {
}
bool CSSImageValue::equals(const CSSImageValue& other) const {
+ if (m_absoluteURL.isEmpty() && other.m_absoluteURL.isEmpty())
+ return m_relativeURL == other.m_relativeURL;
return m_absoluteURL == other.m_absoluteURL;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/css/background-image-url-setproperty.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698