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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElement.h

Issue 2027113002: Make SVGElement::setCursorImageValue take a const pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | third_party/WebKit/Source/core/svg/SVGElement.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) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009, 2014 Apple Inc. All rights reserved. 4 * Copyright (C) 2009, 2014 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 virtual AffineTransform* animateMotionTransform() { return nullptr; } 117 virtual AffineTransform* animateMotionTransform() { return nullptr; }
118 118
119 void invalidateSVGAttributes() { ensureUniqueElementData().m_animatedSVGAttr ibutesAreDirty = true; } 119 void invalidateSVGAttributes() { ensureUniqueElementData().m_animatedSVGAttr ibutesAreDirty = true; }
120 void invalidateSVGPresentationAttributeStyle() { ensureUniqueElementData().m _presentationAttributeStyleIsDirty = true; } 120 void invalidateSVGPresentationAttributeStyle() { ensureUniqueElementData().m _presentationAttributeStyleIsDirty = true; }
121 121
122 const HeapHashSet<WeakMember<SVGElement>>& instancesForElement() const; 122 const HeapHashSet<WeakMember<SVGElement>>& instancesForElement() const;
123 void mapInstanceToElement(SVGElement*); 123 void mapInstanceToElement(SVGElement*);
124 void removeInstanceMapping(SVGElement*); 124 void removeInstanceMapping(SVGElement*);
125 125
126 void setCursorElement(SVGCursorElement*); 126 void setCursorElement(SVGCursorElement*);
127 void setCursorImageValue(CSSCursorImageValue*); 127 void setCursorImageValue(const CSSCursorImageValue*);
128 128
129 SVGElement* correspondingElement() const; 129 SVGElement* correspondingElement() const;
130 void setCorrespondingElement(SVGElement*); 130 void setCorrespondingElement(SVGElement*);
131 SVGUseElement* correspondingUseElement() const; 131 SVGUseElement* correspondingUseElement() const;
132 132
133 void synchronizeAnimatedSVGAttribute(const QualifiedName&) const; 133 void synchronizeAnimatedSVGAttribute(const QualifiedName&) const;
134 134
135 PassRefPtr<ComputedStyle> customStyleForLayoutObject() final; 135 PassRefPtr<ComputedStyle> customStyleForLayoutObject() final;
136 136
137 #if DCHECK_IS_ON() 137 #if DCHECK_IS_ON()
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 template<typename T> inline bool is##thisType(const T* node) { return is##th isType(node); } \ 281 template<typename T> inline bool is##thisType(const T* node) { return is##th isType(node); } \
282 template<typename T> inline bool is##thisType(const Member<T>& node) { retur n is##thisType(node.get()); } \ 282 template<typename T> inline bool is##thisType(const Member<T>& node) { retur n is##thisType(node.get()); } \
283 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \ 283 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \
284 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 284 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
285 285
286 } // namespace blink 286 } // namespace blink
287 287
288 #include "core/SVGElementTypeHelpers.h" 288 #include "core/SVGElementTypeHelpers.h"
289 289
290 #endif // SVGElement_h 290 #endif // SVGElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698