OLD | NEW |
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 private: | 182 private: |
183 RawPtrWillBeMember<SVGElement> m_targetElement; | 183 RawPtrWillBeMember<SVGElement> m_targetElement; |
184 }; | 184 }; |
185 | 185 |
186 void invalidateInstances(); | 186 void invalidateInstances(); |
187 | 187 |
188 virtual void trace(Visitor*) OVERRIDE; | 188 virtual void trace(Visitor*) OVERRIDE; |
189 | 189 |
190 static const AtomicString& eventParameterName(); | 190 static const AtomicString& eventParameterName(); |
191 | 191 |
192 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) OVERRIDE; | |
193 | |
194 protected: | 192 protected: |
195 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem
ent); | 193 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem
ent); |
196 | 194 |
197 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 195 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
198 | 196 |
199 // FIXME: |parseAttributeNew| is a new implementation of parseAttribute | 197 // FIXME: |parseAttributeNew| is a new implementation of parseAttribute |
200 // which maps attribute using |m_attributeToPropertyMap|. | 198 // which maps attribute using |m_attributeToPropertyMap|. |
201 // This is to replace |parseAttribute()| after all derived class switch to c
all this. | 199 // This is to replace |parseAttribute()| after all derived class switch to c
all this. |
202 void parseAttributeNew(const QualifiedName&, const AtomicString&); | 200 void parseAttributeNew(const QualifiedName&, const AtomicString&); |
203 | 201 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ | 286 template<typename T> inline bool is##thisType(const PassRefPtr<T>& node) { r
eturn is##thisType(node.get()); } \ |
289 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ | 287 template<typename T> inline bool is##thisType(const RefPtr<T>& node) { retur
n is##thisType(node.get()); } \ |
290 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); } \ |
291 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) | 289 DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) |
292 | 290 |
293 } // namespace blink | 291 } // namespace blink |
294 | 292 |
295 #include "core/SVGElementTypeHelpers.h" | 293 #include "core/SVGElementTypeHelpers.h" |
296 | 294 |
297 #endif // SVGElement_h | 295 #endif // SVGElement_h |
OLD | NEW |