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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 SVGStyledElement(const QualifiedName&, Handle<Document>, ConstructionType =
CreateSVGElement); | 63 SVGStyledElement(const QualifiedName&, Handle<Document>, ConstructionType =
CreateSVGElement); |
64 virtual bool rendererIsNeeded(const NodeRenderingContext&); | 64 virtual bool rendererIsNeeded(const NodeRenderingContext&); |
65 | 65 |
66 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 66 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
67 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 67 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
68 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, Handle<MutableStylePropertySet>) OVERRIDE; | 68 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, Handle<MutableStylePropertySet>) OVERRIDE; |
69 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 69 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
70 | 70 |
71 virtual InsertionNotificationRequest insertedInto(const Handle<ContainerNode
>&) OVERRIDE; | 71 virtual InsertionNotificationRequest insertedInto(const Handle<ContainerNode
>&) OVERRIDE; |
72 virtual void removedFrom(const Handle<ContainerNode>&) OVERRIDE; | 72 virtual void removedFrom(const Handle<ContainerNode>&) OVERRIDE; |
73 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 73 virtual void childrenChanged(bool changedByParser = false, const Handle<Node
>& beforeChange = nullptr, const Handle<Node>& afterChange = nullptr, int childC
ountDelta = 0); |
74 | 74 |
75 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); | 75 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); |
76 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } | 76 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } |
77 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGStyledElem
ent*); | 77 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGStyledElem
ent*); |
78 | 78 |
79 virtual bool selfHasRelativeLengths() const { return false; } | 79 virtual bool selfHasRelativeLengths() const { return false; } |
80 | 80 |
81 private: | 81 private: |
82 virtual bool isSVGStyledElement() const OVERRIDE { return true; } | 82 virtual bool isSVGStyledElement() const OVERRIDE { return true; } |
83 | 83 |
(...skipping 12 matching lines...) Expand all Loading... |
96 inline SVGStyledElement* toSVGStyledElement(Node* node) | 96 inline SVGStyledElement* toSVGStyledElement(Node* node) |
97 { | 97 { |
98 ASSERT_WITH_SECURITY_IMPLICATION(!node || (node->isStyledElement() && node->
isSVGElement())); | 98 ASSERT_WITH_SECURITY_IMPLICATION(!node || (node->isStyledElement() && node->
isSVGElement())); |
99 return static_cast<SVGStyledElement*>(node); | 99 return static_cast<SVGStyledElement*>(node); |
100 } | 100 } |
101 | 101 |
102 } // namespace WebCore | 102 } // namespace WebCore |
103 | 103 |
104 #endif // ENABLE(SVG) | 104 #endif // ENABLE(SVG) |
105 #endif // SVGStyledElement | 105 #endif // SVGStyledElement |
OLD | NEW |