| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef SVGUseElement_h | 21 #ifndef SVGUseElement_h |
| 22 #define SVGUseElement_h | 22 #define SVGUseElement_h |
| 23 | 23 |
| 24 #include "core/loader/cache/CachedSVGDocument.h" | 24 #include "core/loader/cache/CachedDocument.h" |
| 25 #include "core/svg/SVGAnimatedBoolean.h" | 25 #include "core/svg/SVGAnimatedBoolean.h" |
| 26 #include "core/svg/SVGAnimatedLength.h" | 26 #include "core/svg/SVGAnimatedLength.h" |
| 27 #include "core/svg/SVGExternalResourcesRequired.h" | 27 #include "core/svg/SVGExternalResourcesRequired.h" |
| 28 #include "core/svg/SVGLangSpace.h" | 28 #include "core/svg/SVGLangSpace.h" |
| 29 #include "core/svg/SVGStyledTransformableElement.h" | 29 #include "core/svg/SVGStyledTransformableElement.h" |
| 30 #include "core/svg/SVGTests.h" | 30 #include "core/svg/SVGTests.h" |
| 31 #include "core/svg/SVGURIReference.h" | 31 #include "core/svg/SVGURIReference.h" |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace WebCore { |
| 34 | 34 |
| 35 class CachedSVGDocument; | 35 class CachedDocument; |
| 36 class SVGElementInstance; | 36 class SVGElementInstance; |
| 37 | 37 |
| 38 class SVGUseElement FINAL : public SVGStyledTransformableElement, | 38 class SVGUseElement FINAL : public SVGStyledTransformableElement, |
| 39 public SVGTests, | 39 public SVGTests, |
| 40 public SVGLangSpace, | 40 public SVGLangSpace, |
| 41 public SVGExternalResourcesRequired, | 41 public SVGExternalResourcesRequired, |
| 42 public SVGURIReference, | 42 public SVGURIReference, |
| 43 public CachedSVGDocumentClient { | 43 public CachedDocumentClient { |
| 44 public: | 44 public: |
| 45 static PassRefPtr<SVGUseElement> create(const QualifiedName&, Document*, boo
l wasInsertedByParser); | 45 static PassRefPtr<SVGUseElement> create(const QualifiedName&, Document*, boo
l wasInsertedByParser); |
| 46 virtual ~SVGUseElement(); | 46 virtual ~SVGUseElement(); |
| 47 | 47 |
| 48 SVGElementInstance* instanceRoot(); | 48 SVGElementInstance* instanceRoot(); |
| 49 SVGElementInstance* animatedInstanceRoot() const; | 49 SVGElementInstance* animatedInstanceRoot() const; |
| 50 SVGElementInstance* instanceForShadowTreeElement(Node*) const; | 50 SVGElementInstance* instanceForShadowTreeElement(Node*) const; |
| 51 void invalidateShadowTree(); | 51 void invalidateShadowTree(); |
| 52 void invalidateDependentShadowTrees(); | 52 void invalidateDependentShadowTrees(); |
| 53 | 53 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 DECLARE_ANIMATED_LENGTH(Height, height) | 105 DECLARE_ANIMATED_LENGTH(Height, height) |
| 106 DECLARE_ANIMATED_STRING(Href, href) | 106 DECLARE_ANIMATED_STRING(Href, href) |
| 107 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 107 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
| 108 END_DECLARE_ANIMATED_PROPERTIES | 108 END_DECLARE_ANIMATED_PROPERTIES |
| 109 | 109 |
| 110 bool cachedDocumentIsStillLoading(); | 110 bool cachedDocumentIsStillLoading(); |
| 111 Document* externalDocument() const; | 111 Document* externalDocument() const; |
| 112 bool instanceTreeIsLoading(SVGElementInstance*); | 112 bool instanceTreeIsLoading(SVGElementInstance*); |
| 113 virtual void notifyFinished(CachedResource*); | 113 virtual void notifyFinished(CachedResource*); |
| 114 Document* referencedDocument() const; | 114 Document* referencedDocument() const; |
| 115 void setCachedDocument(CachedResourceHandle<CachedSVGDocument>); | 115 void setCachedDocument(CachedResourceHandle<CachedDocument>); |
| 116 | 116 |
| 117 // SVGTests | 117 // SVGTests |
| 118 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } | 118 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } |
| 119 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } | 119 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } |
| 120 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } | 120 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } |
| 121 | 121 |
| 122 // SVGExternalResourcesRequired | 122 // SVGExternalResourcesRequired |
| 123 virtual void setHaveFiredLoadEvent(bool haveFiredLoadEvent) { m_haveFiredLoa
dEvent = haveFiredLoadEvent; } | 123 virtual void setHaveFiredLoadEvent(bool haveFiredLoadEvent) { m_haveFiredLoa
dEvent = haveFiredLoadEvent; } |
| 124 virtual bool isParserInserted() const { return m_wasInsertedByParser; } | 124 virtual bool isParserInserted() const { return m_wasInsertedByParser; } |
| 125 virtual bool haveFiredLoadEvent() const { return m_haveFiredLoadEvent; } | 125 virtual bool haveFiredLoadEvent() const { return m_haveFiredLoadEvent; } |
| 126 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } | 126 virtual Timer<SVGElement>* svgLoadEventTimer() OVERRIDE { return &m_svgLoadE
ventTimer; } |
| 127 | 127 |
| 128 bool m_wasInsertedByParser; | 128 bool m_wasInsertedByParser; |
| 129 bool m_haveFiredLoadEvent; | 129 bool m_haveFiredLoadEvent; |
| 130 bool m_needsShadowTreeRecreation; | 130 bool m_needsShadowTreeRecreation; |
| 131 RefPtr<SVGElementInstance> m_targetElementInstance; | 131 RefPtr<SVGElementInstance> m_targetElementInstance; |
| 132 CachedResourceHandle<CachedSVGDocument> m_cachedDocument; | 132 CachedResourceHandle<CachedDocument> m_cachedDocument; |
| 133 Timer<SVGElement> m_svgLoadEventTimer; | 133 Timer<SVGElement> m_svgLoadEventTimer; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } | 136 } |
| 137 | 137 |
| 138 #endif | 138 #endif |
| OLD | NEW |