| 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 21 matching lines...) Expand all Loading... |
| 32 namespace WebCore { | 32 namespace WebCore { |
| 33 | 33 |
| 34 class DocumentResource; | 34 class DocumentResource; |
| 35 class SVGElementInstance; | 35 class SVGElementInstance; |
| 36 | 36 |
| 37 class SVGUseElement FINAL : public SVGGraphicsElement, | 37 class SVGUseElement FINAL : public SVGGraphicsElement, |
| 38 public SVGExternalResourcesRequired, | 38 public SVGExternalResourcesRequired, |
| 39 public SVGURIReference, | 39 public SVGURIReference, |
| 40 public DocumentResourceClient { | 40 public DocumentResourceClient { |
| 41 public: | 41 public: |
| 42 static PassRefPtr<SVGUseElement> create(const QualifiedName&, Document*, boo
l wasInsertedByParser); | 42 static PassRefPtr<SVGUseElement> create(const QualifiedName&, Document&, boo
l wasInsertedByParser); |
| 43 virtual ~SVGUseElement(); | 43 virtual ~SVGUseElement(); |
| 44 | 44 |
| 45 SVGElementInstance* instanceRoot(); | 45 SVGElementInstance* instanceRoot(); |
| 46 SVGElementInstance* animatedInstanceRoot() const; | 46 SVGElementInstance* animatedInstanceRoot() const; |
| 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 OVERRIDE { return hasFocusEventListeners(
); } | 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; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 inline SVGUseElement* toSVGUseElement(Node* node) | 129 inline SVGUseElement* toSVGUseElement(Node* node) |
| 130 { | 130 { |
| 131 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::useTag)
); | 131 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->hasTagName(SVGNames::useTag)
); |
| 132 return static_cast<SVGUseElement*>(node); | 132 return static_cast<SVGUseElement*>(node); |
| 133 } | 133 } |
| 134 | 134 |
| 135 } | 135 } |
| 136 | 136 |
| 137 #endif | 137 #endif |
| OLD | NEW |