| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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 18 matching lines...) Expand all Loading... |
| 29 #include "core/svg/SVGGraphicsElement.h" | 29 #include "core/svg/SVGGraphicsElement.h" |
| 30 #include "core/svg/SVGImageLoader.h" | 30 #include "core/svg/SVGImageLoader.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 SVGImageElement FINAL : public SVGGraphicsElement, | 35 class SVGImageElement FINAL : public SVGGraphicsElement, |
| 36 public SVGExternalResourcesRequired, | 36 public SVGExternalResourcesRequired, |
| 37 public SVGURIReference { | 37 public SVGURIReference { |
| 38 public: | 38 public: |
| 39 static PassRefPtr<SVGImageElement> create(const QualifiedName&, Document&); | 39 static PassRefPtr<SVGImageElement> create(Document&); |
| 40 | 40 |
| 41 bool currentFrameHasSingleSecurityOrigin() const; | 41 bool currentFrameHasSingleSecurityOrigin() const; |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 SVGImageElement(const QualifiedName&, Document&); | 44 explicit SVGImageElement(Document&); |
| 45 | 45 |
| 46 virtual bool isValid() const { return SVGTests::isValid(); } | 46 virtual bool isValid() const { return SVGTests::isValid(); } |
| 47 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } | 47 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } |
| 48 | 48 |
| 49 bool isSupportedAttribute(const QualifiedName&); | 49 bool isSupportedAttribute(const QualifiedName&); |
| 50 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 50 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 51 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; | 51 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; |
| 52 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; | 52 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons
t AtomicString&, MutableStylePropertySet*) OVERRIDE; |
| 53 virtual void svgAttributeChanged(const QualifiedName&); | 53 virtual void svgAttributeChanged(const QualifiedName&); |
| 54 | 54 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 76 END_DECLARE_ANIMATED_PROPERTIES | 76 END_DECLARE_ANIMATED_PROPERTIES |
| 77 | 77 |
| 78 SVGImageLoader m_imageLoader; | 78 SVGImageLoader m_imageLoader; |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 DEFINE_NODE_TYPE_CASTS(SVGImageElement, hasTagName(SVGNames::imageTag)); | 81 DEFINE_NODE_TYPE_CASTS(SVGImageElement, hasTagName(SVGNames::imageTag)); |
| 82 | 82 |
| 83 } // namespace WebCore | 83 } // namespace WebCore |
| 84 | 84 |
| 85 #endif | 85 #endif |
| OLD | NEW |