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

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

Issue 1541923002: Make SVGElement::propertyFromAttribute return raw pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual bool isTextContent() const { return false; } 101 virtual bool isTextContent() const { return false; }
102 virtual bool isTextPositioning() const { return false; } 102 virtual bool isTextPositioning() const { return false; }
103 virtual bool isStructurallyExternal() const { return false; } 103 virtual bool isStructurallyExternal() const { return false; }
104 104
105 // For SVGTests 105 // For SVGTests
106 virtual bool isValid() const { return true; } 106 virtual bool isValid() const { return true; }
107 107
108 virtual void svgAttributeChanged(const QualifiedName&); 108 virtual void svgAttributeChanged(const QualifiedName&);
109 void svgAttributeBaseValChanged(const QualifiedName&); 109 void svgAttributeBaseValChanged(const QualifiedName&);
110 110
111 PassRefPtrWillBeRawPtr<SVGAnimatedPropertyBase> propertyFromAttribute(const QualifiedName& attributeName); 111 SVGAnimatedPropertyBase* propertyFromAttribute(const QualifiedName& attribut eName) const;
112 static AnimatedPropertyType animatedPropertyTypeForCSSAttribute(const Qualif iedName& attributeName); 112 static AnimatedPropertyType animatedPropertyTypeForCSSAttribute(const Qualif iedName& attributeName);
113 113
114 void sendSVGLoadEventToSelfAndAncestorChainIfPossible(); 114 void sendSVGLoadEventToSelfAndAncestorChainIfPossible();
115 bool sendSVGLoadEventIfPossible(); 115 bool sendSVGLoadEventIfPossible();
116 116
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
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \ 286 template<typename T> inline bool is##thisType(const PassRefPtrWillBeRawPtr<T >& node) { return is##thisType(node.get()); } \
287 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \ 287 template<typename T> inline bool is##thisType(const RefPtrWillBeMember<T>& n ode) { return is##thisType(node.get()); } \
288 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \ 288 template <> inline bool isElementOfType<const thisType>(const SVGElement& el ement) { return is##thisType(element); } \
289 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) 289 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType)
290 290
291 } // namespace blink 291 } // namespace blink
292 292
293 #include "core/SVGElementTypeHelpers.h" 293 #include "core/SVGElementTypeHelpers.h"
294 294
295 #endif // SVGElement_h 295 #endif // SVGElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGCircleElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698