| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 70 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 71 virtual void removedFrom(ContainerNode*) OVERRIDE; | 71 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 72 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 72 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
| 73 | 73 |
| 74 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); | 74 static CSSPropertyID cssPropertyIdForSVGAttributeName(const QualifiedName&); |
| 75 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } | 75 void updateRelativeLengthsInformation() { updateRelativeLengthsInformation(s
elfHasRelativeLengths(), this); } |
| 76 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGStyledElem
ent*); | 76 void updateRelativeLengthsInformation(bool hasRelativeLengths, SVGStyledElem
ent*); |
| 77 | 77 |
| 78 virtual bool selfHasRelativeLengths() const { return false; } | 78 virtual bool selfHasRelativeLengths() const { return false; } |
| 79 bool hasFocusEventListeners() const; |
| 79 | 80 |
| 80 private: | 81 private: |
| 81 virtual bool isSVGStyledElement() const OVERRIDE { return true; } | 82 virtual bool isSVGStyledElement() const OVERRIDE { return true; } |
| 82 | 83 |
| 83 virtual bool isKeyboardFocusable(KeyboardEvent*) const; | 84 virtual bool isKeyboardFocusable(KeyboardEvent*) const; |
| 84 virtual bool isMouseFocusable() const; | 85 virtual bool isMouseFocusable() const; |
| 85 | 86 |
| 86 void buildPendingResourcesIfNeeded(); | 87 void buildPendingResourcesIfNeeded(); |
| 87 | 88 |
| 88 HashSet<SVGStyledElement*> m_elementsWithRelativeLengths; | 89 HashSet<SVGStyledElement*> m_elementsWithRelativeLengths; |
| 89 | 90 |
| 90 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGStyledElement) | 91 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGStyledElement) |
| 91 DECLARE_ANIMATED_STRING(ClassName, className) | 92 DECLARE_ANIMATED_STRING(ClassName, className) |
| 92 END_DECLARE_ANIMATED_PROPERTIES | 93 END_DECLARE_ANIMATED_PROPERTIES |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 inline SVGStyledElement* toSVGStyledElement(Node* node) | 96 inline SVGStyledElement* toSVGStyledElement(Node* node) |
| 96 { | 97 { |
| 97 ASSERT_WITH_SECURITY_IMPLICATION(!node || (node->isStyledElement() && node->
isSVGElement())); | 98 ASSERT_WITH_SECURITY_IMPLICATION(!node || (node->isStyledElement() && node->
isSVGElement())); |
| 98 return static_cast<SVGStyledElement*>(node); | 99 return static_cast<SVGStyledElement*>(node); |
| 99 } | 100 } |
| 100 | 101 |
| 101 } // namespace WebCore | 102 } // namespace WebCore |
| 102 | 103 |
| 103 #endif // SVGStyledElement | 104 #endif // SVGStyledElement |
| OLD | NEW |