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

Side by Side Diff: Source/core/css/CSSCursorImageValue.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSCrossfadeValue.cpp ('k') | Source/core/css/CSSDefaultStyleSheets.cpp » ('j') | 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 String CSSCursorImageValue::cachedImageURL() 175 String CSSCursorImageValue::cachedImageURL()
176 { 176 {
177 if (!m_image || !m_image->isImageResource()) 177 if (!m_image || !m_image->isImageResource())
178 return String(); 178 return String();
179 return toStyleFetchedImage(m_image)->cachedImage()->url().string(); 179 return toStyleFetchedImage(m_image)->cachedImage()->url().string();
180 } 180 }
181 181
182 void CSSCursorImageValue::clearImageResource() 182 void CSSCursorImageValue::clearImageResource()
183 { 183 {
184 m_image = 0; 184 m_image = nullptr;
185 m_accessedImage = false; 185 m_accessedImage = false;
186 } 186 }
187 187
188 void CSSCursorImageValue::removeReferencedElement(SVGElement* element) 188 void CSSCursorImageValue::removeReferencedElement(SVGElement* element)
189 { 189 {
190 m_referencedElements.remove(element); 190 m_referencedElements.remove(element);
191 } 191 }
192 192
193 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const 193 bool CSSCursorImageValue::equals(const CSSCursorImageValue& other) const
194 { 194 {
195 return m_hasHotSpot ? other.m_hasHotSpot && m_hotSpot == other.m_hotSpot : ! other.m_hasHotSpot 195 return m_hasHotSpot ? other.m_hasHotSpot && m_hotSpot == other.m_hotSpot : ! other.m_hasHotSpot
196 && compareCSSValuePtr(m_imageValue, other.m_imageValue); 196 && compareCSSValuePtr(m_imageValue, other.m_imageValue);
197 } 197 }
198 198
199 void CSSCursorImageValue::traceAfterDispatch(Visitor* visitor) 199 void CSSCursorImageValue::traceAfterDispatch(Visitor* visitor)
200 { 200 {
201 visitor->trace(m_imageValue); 201 visitor->trace(m_imageValue);
202 CSSValue::traceAfterDispatch(visitor); 202 CSSValue::traceAfterDispatch(visitor);
203 } 203 }
204 204
205 } // namespace WebCore 205 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSCrossfadeValue.cpp ('k') | Source/core/css/CSSDefaultStyleSheets.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698