| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
| 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 protected: | 65 protected: |
| 66 SVGStyledElement(const QualifiedName&, Document*, ConstructionType = CreateS
VGElement); | 66 SVGStyledElement(const QualifiedName&, Document*, ConstructionType = CreateS
VGElement); |
| 67 virtual bool rendererIsNeeded(const NodeRenderingContext&); | 67 virtual bool rendererIsNeeded(const NodeRenderingContext&); |
| 68 | 68 |
| 69 virtual void parseAttribute(Attribute*) OVERRIDE; | 69 virtual void parseAttribute(Attribute*) OVERRIDE; |
| 70 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 70 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 71 virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRID
E; | 71 virtual void collectStyleForAttribute(Attribute*, StylePropertySet*) OVERRID
E; |
| 72 virtual void svgAttributeChanged(const QualifiedName&); | 72 virtual void svgAttributeChanged(const QualifiedName&); |
| 73 | 73 |
| 74 virtual void attach(); | |
| 75 virtual InsertionNotificationRequest insertedInto(Node*) OVERRIDE; | 74 virtual InsertionNotificationRequest insertedInto(Node*) OVERRIDE; |
| 76 virtual void removedFrom(Node*) OVERRIDE; | 75 virtual void removedFrom(Node*) OVERRIDE; |
| 77 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 76 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
| 78 | 77 |
| 79 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); | 78 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); |
| 80 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } | 79 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } |
| 81 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGStyledElem
ent*); | 80 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGStyledElem
ent*); |
| 82 | 81 |
| 83 virtual bool selfHasRelativeLengths() const { return false; } | 82 virtual bool selfHasRelativeLengths() const { return false; } |
| 84 virtual void buildPendingResource() { } | 83 virtual void buildPendingResource() { } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 101 inline SVGStyledElement* toSVGStyledElement(Node* node) | 100 inline SVGStyledElement* toSVGStyledElement(Node* node) |
| 102 { | 101 { |
| 103 ASSERT(!node || (node->isStyledElement() && node->isSVGElement())); | 102 ASSERT(!node || (node->isStyledElement() && node->isSVGElement())); |
| 104 return static_cast<SVGStyledElement*>(node); | 103 return static_cast<SVGStyledElement*>(node); |
| 105 } | 104 } |
| 106 | 105 |
| 107 } // namespace WebCore | 106 } // namespace WebCore |
| 108 | 107 |
| 109 #endif // ENABLE(SVG) | 108 #endif // ENABLE(SVG) |
| 110 #endif // SVGStyledElement | 109 #endif // SVGStyledElement |
| OLD | NEW |