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 Apple Inc. All rights reserved. | 4 * Copyright (C) 2009 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 Loading... |
189 | 189 |
190 protected: | 190 protected: |
191 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem
ent); | 191 SVGElement(const QualifiedName&, Document&, ConstructionType = CreateSVGElem
ent); |
192 | 192 |
193 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 193 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
194 | 194 |
195 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att
ributeModificationReason = ModifiedDirectly) OVERRIDE; | 195 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att
ributeModificationReason = ModifiedDirectly) OVERRIDE; |
196 | 196 |
197 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 197 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
198 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 198 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
199 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; | |
200 | 199 |
201 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 200 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
202 virtual void removedFrom(ContainerNode*) OVERRIDE; | 201 virtual void removedFrom(ContainerNode*) OVERRIDE; |
203 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; | 202 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; |
204 | 203 |
205 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); | 204 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); |
206 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } | 205 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } |
207 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*); | 206 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*); |
208 | 207 |
209 virtual bool selfHasRelativeLengths() const { return false; } | 208 virtual bool selfHasRelativeLengths() const { return false; } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a
.matches(b); } | 261 static bool equal(const QualifiedName& a, const QualifiedName& b) { return a
.matches(b); } |
263 }; | 262 }; |
264 | 263 |
265 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement()); | 264 DEFINE_ELEMENT_TYPE_CASTS(SVGElement, isSVGElement()); |
266 | 265 |
267 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re
turn node.isSVGElement(); } | 266 template <> inline bool isElementOfType<const SVGElement>(const Node& node) { re
turn node.isSVGElement(); } |
268 | 267 |
269 } | 268 } |
270 | 269 |
271 #endif | 270 #endif |
OLD | NEW |