| 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 17 matching lines...) Expand all Loading... |
| 28 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" | 28 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" |
| 29 #include "core/svg/SVGURIReference.h" | 29 #include "core/svg/SVGURIReference.h" |
| 30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.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 ResourceClient { | 36 public ResourceClient { |
| 37 DEFINE_WRAPPERTYPEINFO(); | 37 DEFINE_WRAPPERTYPEINFO(); |
| 38 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGFEImageElement); | 38 USING_GARBAGE_COLLECTED_MIXIN(SVGFEImageElement); |
| 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 ~SVGFEImageElement() override; | 44 ~SVGFEImageElement() override; |
| 45 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp
ectRatio.get(); } | 45 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp
ectRatio.get(); } |
| 46 | 46 |
| 47 // Promptly remove as a ImageResource client. | 47 // Promptly remove as a ImageResource client. |
| 48 EAGERLY_FINALIZE(); | 48 EAGERLY_FINALIZE(); |
| 49 DECLARE_VIRTUAL_TRACE(); | 49 DECLARE_VIRTUAL_TRACE(); |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 explicit SVGFEImageElement(Document&); | 52 explicit SVGFEImageElement(Document&); |
| 53 | 53 |
| 54 void svgAttributeChanged(const QualifiedName&) override; | 54 void svgAttributeChanged(const QualifiedName&) override; |
| 55 void notifyFinished(Resource*) override; | 55 void notifyFinished(Resource*) override; |
| 56 String debugName() const override { return "SVGFEImageElement"; } | 56 String debugName() const override { return "SVGFEImageElement"; } |
| 57 | 57 |
| 58 PassRefPtrWillBeRawPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) overr
ide; | 58 RawPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) override; |
| 59 | 59 |
| 60 void clearResourceReferences(); | 60 void clearResourceReferences(); |
| 61 void fetchImageResource(); | 61 void fetchImageResource(); |
| 62 | 62 |
| 63 void buildPendingResource() override; | 63 void buildPendingResource() override; |
| 64 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 64 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 65 void removedFrom(ContainerNode*) override; | 65 void removedFrom(ContainerNode*) override; |
| 66 | 66 |
| 67 RefPtrWillBeMember<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; | 67 Member<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; |
| 68 | 68 |
| 69 RefPtrWillBeMember<ImageResource> m_cachedImage; | 69 Member<ImageResource> m_cachedImage; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 } // namespace blink | 72 } // namespace blink |
| 73 | 73 |
| 74 #endif // SVGFEImageElement_h | 74 #endif // SVGFEImageElement_h |
| OLD | NEW |