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

Unified Diff: Source/core/css/CSSCursorImageValue.cpp

Issue 1311783009: Fix bug in CSSCursorImageValue::equals() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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: Source/core/css/CSSCursorImageValue.cpp
diff --git a/Source/core/css/CSSCursorImageValue.cpp b/Source/core/css/CSSCursorImageValue.cpp
index 390c4378a6a181cde2960b35615650997de8af10..1981c23e39835836be32031a925b5b76f868066b 100644
--- a/Source/core/css/CSSCursorImageValue.cpp
+++ b/Source/core/css/CSSCursorImageValue.cpp
@@ -83,6 +83,7 @@ String CSSCursorImageValue::customCSSText() const
result.append(' ');
result.appendNumber(m_hotSpot.y());
}
+
Timothy Loh 2015/08/26 07:25:58 ..not related?
return result.toString();
}
@@ -196,7 +197,7 @@ void CSSCursorImageValue::removeReferencedElement(SVGElement* element)
bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const
{
- return m_hotSpotSpecified ? other.m_hotSpotSpecified && m_hotSpot == other.m_hotSpot : !other.m_hotSpotSpecified
+ return (m_hotSpotSpecified ? other.m_hotSpotSpecified && m_hotSpot == other.m_hotSpot : !other.m_hotSpotSpecified)
&& compareCSSValuePtr(m_imageValue, other.m_imageValue);
}

Powered by Google App Engine
This is Rietveld 408576698