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

Side by Side 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: Localized cursor URL to fix httpd errors 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 unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/css/bug523527-cursor-doesnt-update-with-same-hotspot.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Rob Buis <buis@kde.org> 2 * Copyright (C) 2006 Rob Buis <buis@kde.org>
3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 #if !ENABLE(OILPAN) 190 #if !ENABLE(OILPAN)
191 void CSSCursorImageValue::removeReferencedElement(SVGElement* element) 191 void CSSCursorImageValue::removeReferencedElement(SVGElement* element)
192 { 192 {
193 m_referencedElements.remove(element); 193 m_referencedElements.remove(element);
194 } 194 }
195 #endif 195 #endif
196 196
197 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const 197 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const
198 { 198 {
199 return m_hotSpotSpecified ? other.m_hotSpotSpecified && m_hotSpot == other.m _hotSpot : !other.m_hotSpotSpecified 199 return (m_hotSpotSpecified ? other.m_hotSpotSpecified && m_hotSpot == other. m_hotSpot : !other.m_hotSpotSpecified)
200 && compareCSSValuePtr(m_imageValue, other.m_imageValue); 200 && compareCSSValuePtr(m_imageValue, other.m_imageValue);
201 } 201 }
202 202
203 DEFINE_TRACE_AFTER_DISPATCH(CSSCursorImageValue) 203 DEFINE_TRACE_AFTER_DISPATCH(CSSCursorImageValue)
204 { 204 {
205 visitor->trace(m_imageValue); 205 visitor->trace(m_imageValue);
206 visitor->trace(m_image); 206 visitor->trace(m_image);
207 CSSValue::traceAfterDispatch(visitor); 207 CSSValue::traceAfterDispatch(visitor);
208 } 208 }
209 209
210 } // namespace blink 210 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/bug523527-cursor-doesnt-update-with-same-hotspot.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698