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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 SVGElement(const QualifiedName&, Document*, ConstructionType = CreateSVGElem
ent); | 138 SVGElement(const QualifiedName&, Document*, ConstructionType = CreateSVGElem
ent); |
139 | 139 |
140 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 140 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
141 | 141 |
142 virtual void finishParsingChildren(); | 142 virtual void finishParsingChildren(); |
143 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att
ributeModificationReason = ModifiedDirectly) OVERRIDE; | 143 virtual void attributeChanged(const QualifiedName&, const AtomicString&, Att
ributeModificationReason = ModifiedDirectly) OVERRIDE; |
144 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV
ERRIDE; | 144 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const OV
ERRIDE; |
145 | 145 |
146 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 146 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
147 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 147 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
148 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE { return
false; } | 148 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE; |
149 bool rendererIsNeededInternal(const NodeRenderingContext&); | |
150 | 149 |
151 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 150 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
152 virtual void removedFrom(ContainerNode*) OVERRIDE; | 151 virtual void removedFrom(ContainerNode*) OVERRIDE; |
153 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 152 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
154 | 153 |
155 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); | 154 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); |
156 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } | 155 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } |
157 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*); | 156 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGElement*); |
158 | 157 |
159 virtual bool selfHasRelativeLengths() const { return false; } | 158 virtual bool selfHasRelativeLengths() const { return false; } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 209 |
211 inline const SVGElement* toSVGElement(const Node* node) | 210 inline const SVGElement* toSVGElement(const Node* node) |
212 { | 211 { |
213 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); | 212 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isSVGElement()); |
214 return static_cast<const SVGElement*>(node); | 213 return static_cast<const SVGElement*>(node); |
215 } | 214 } |
216 | 215 |
217 } | 216 } |
218 | 217 |
219 #endif | 218 #endif |
OLD | NEW |