| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 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 26 matching lines...) Expand all Loading... |
| 37 public SVGURIReference, | 37 public SVGURIReference, |
| 38 public ImageResourceClient { | 38 public ImageResourceClient { |
| 39 public: | 39 public: |
| 40 DECLARE_NODE_FACTORY(SVGFEImageElement); | 40 DECLARE_NODE_FACTORY(SVGFEImageElement); |
| 41 | 41 |
| 42 bool currentFrameHasSingleSecurityOrigin() const; | 42 bool currentFrameHasSingleSecurityOrigin() const; |
| 43 | 43 |
| 44 virtual ~SVGFEImageElement(); | 44 virtual ~SVGFEImageElement(); |
| 45 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp
ectRatio.get(); } | 45 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp
ectRatio.get(); } |
| 46 | 46 |
| 47 virtual void trace(Visitor* visitor) OVERRIDE |
| 48 { |
| 49 SVGFilterPrimitiveStandardAttributes::trace(visitor); |
| 50 ImageResourceClient::trace(visitor); |
| 51 } |
| 52 |
| 47 private: | 53 private: |
| 48 explicit SVGFEImageElement(Document&); | 54 explicit SVGFEImageElement(Document&); |
| 49 | 55 |
| 50 bool isSupportedAttribute(const QualifiedName&); | 56 bool isSupportedAttribute(const QualifiedName&); |
| 51 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 57 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 52 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 58 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
| 53 virtual void notifyFinished(Resource*) OVERRIDE; | 59 virtual void notifyFinished(Resource*) OVERRIDE; |
| 54 | 60 |
| 55 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 61 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; |
| 56 | 62 |
| 57 void clearResourceReferences(); | 63 void clearResourceReferences(); |
| 58 void fetchImageResource(); | 64 void fetchImageResource(); |
| 59 | 65 |
| 60 virtual void buildPendingResource() OVERRIDE; | 66 virtual void buildPendingResource() OVERRIDE; |
| 61 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 67 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 62 virtual void removedFrom(ContainerNode*) OVERRIDE; | 68 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 63 | 69 |
| 64 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; | 70 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; |
| 65 | 71 |
| 66 ResourcePtr<ImageResource> m_cachedImage; | 72 ResourcePtr<ImageResource> m_cachedImage; |
| 67 }; | 73 }; |
| 68 | 74 |
| 69 } // namespace blink | 75 } // namespace blink |
| 70 | 76 |
| 71 #endif | 77 #endif |
| OLD | NEW |