| 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, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 SVGElementInstance* instanceForShadowTreeElement(Node*) const; | 47 SVGElementInstance* instanceForShadowTreeElement(Node*) const; |
| 48 void invalidateShadowTree(); | 48 void invalidateShadowTree(); |
| 49 void invalidateDependentShadowTrees(); | 49 void invalidateDependentShadowTrees(); |
| 50 | 50 |
| 51 RenderObject* rendererClipChild() const; | 51 RenderObject* rendererClipChild() const; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 SVGUseElement(const QualifiedName&, Document*, bool wasInsertedByParser); | 54 SVGUseElement(const QualifiedName&, Document*, bool wasInsertedByParser); |
| 55 | 55 |
| 56 virtual bool isValid() const { return SVGTests::isValid(); } | 56 virtual bool isValid() const { return SVGTests::isValid(); } |
| 57 virtual bool supportsFocus() const { return true; } | 57 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } |
| 58 | 58 |
| 59 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 59 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 60 virtual void removedFrom(ContainerNode*) OVERRIDE; | 60 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 61 virtual void buildPendingResource(); | 61 virtual void buildPendingResource(); |
| 62 | 62 |
| 63 bool isSupportedAttribute(const QualifiedName&); | 63 bool isSupportedAttribute(const QualifiedName&); |
| 64 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 64 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 65 virtual void svgAttributeChanged(const QualifiedName&); | 65 virtual void svgAttributeChanged(const QualifiedName&); |
| 66 | 66 |
| 67 virtual void willRecalcStyle(StyleChange) OVERRIDE; | 67 virtual void willRecalcStyle(StyleChange) OVERRIDE; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 inline SVGUseElement* toSVGUseElement(Node* node) | 128 inline SVGUseElement* toSVGUseElement(Node* node) |
| 129 { | 129 { |
| 130 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::useTag)
); | 130 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::useTag)
); |
| 131 return static_cast<SVGUseElement*>(node); | 131 return static_cast<SVGUseElement*>(node); |
| 132 } | 132 } |
| 133 | 133 |
| 134 } | 134 } |
| 135 | 135 |
| 136 #endif | 136 #endif |
| OLD | NEW |