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 13 matching lines...) Expand all Loading... |
24 #include "core/SVGNames.h" | 24 #include "core/SVGNames.h" |
25 #include "core/fetch/ImageResource.h" | 25 #include "core/fetch/ImageResource.h" |
26 #include "core/fetch/ImageResourceClient.h" | 26 #include "core/fetch/ImageResourceClient.h" |
27 #include "core/fetch/ResourcePtr.h" | 27 #include "core/fetch/ResourcePtr.h" |
28 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" | 28 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" |
29 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" | 29 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" |
30 #include "core/svg/SVGURIReference.h" | 30 #include "core/svg/SVGURIReference.h" |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 class SVGFEImageElement FINAL : public SVGFilterPrimitiveStandardAttributes, | 34 class SVGFEImageElement final : public SVGFilterPrimitiveStandardAttributes, |
35 public SVGURIReference, | 35 public SVGURIReference, |
36 public ImageResourceClient { | 36 public ImageResourceClient { |
37 DEFINE_WRAPPERTYPEINFO(); | 37 DEFINE_WRAPPERTYPEINFO(); |
38 public: | 38 public: |
39 DECLARE_NODE_FACTORY(SVGFEImageElement); | 39 DECLARE_NODE_FACTORY(SVGFEImageElement); |
40 | 40 |
41 bool currentFrameHasSingleSecurityOrigin() const; | 41 bool currentFrameHasSingleSecurityOrigin() const; |
42 | 42 |
43 virtual ~SVGFEImageElement(); | 43 virtual ~SVGFEImageElement(); |
44 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp
ectRatio.get(); } | 44 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp
ectRatio.get(); } |
45 | 45 |
46 private: | 46 private: |
47 explicit SVGFEImageElement(Document&); | 47 explicit SVGFEImageElement(Document&); |
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 void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 51 virtual void svgAttributeChanged(const QualifiedName&) override; |
52 virtual void notifyFinished(Resource*) OVERRIDE; | 52 virtual void notifyFinished(Resource*) override; |
53 | 53 |
54 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; | 54 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) override; |
55 | 55 |
56 void clearResourceReferences(); | 56 void clearResourceReferences(); |
57 void fetchImageResource(); | 57 void fetchImageResource(); |
58 | 58 |
59 virtual void buildPendingResource() OVERRIDE; | 59 virtual void buildPendingResource() override; |
60 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 60 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
61 virtual void removedFrom(ContainerNode*) OVERRIDE; | 61 virtual void removedFrom(ContainerNode*) override; |
62 | 62 |
63 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; | 63 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; |
64 | 64 |
65 ResourcePtr<ImageResource> m_cachedImage; | 65 ResourcePtr<ImageResource> m_cachedImage; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace blink | 68 } // namespace blink |
69 | 69 |
70 #endif // SVGFEImageElement_h | 70 #endif // SVGFEImageElement_h |
OLD | NEW |