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

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

Issue 2905033003: Stricter equality check for local refs in CSSURIValue (Closed)
Patch Set: Created 3 years, 7 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/svg/animations/animate-local-url-expected.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/CSSURIValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSURIValue.cpp b/third_party/WebKit/Source/core/css/CSSURIValue.cpp
index 27e32e6e2a09739e4096fc9c6f48d62b20fa95e1..e0cb3a57895a3d0f16a653132f5560a5fdb6582d 100644
--- a/third_party/WebKit/Source/core/css/CSSURIValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSURIValue.cpp
@@ -70,8 +70,9 @@ bool CSSURIValue::Equals(const CSSURIValue& other) const {
// If only one has the 'local url' flag set, the URLs can't match.
if (is_local_ != other.is_local_)
return false;
- return (is_local_ && relative_url_ == other.relative_url_) ||
- absolute_url_ == other.absolute_url_;
+ if (is_local_)
+ return relative_url_ == other.relative_url_;
+ return absolute_url_ == other.absolute_url_;
}
DEFINE_TRACE_AFTER_DISPATCH(CSSURIValue) {
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/animations/animate-local-url-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698