Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: Source/core/svg/SVGFEImageElement.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGFEGaussianBlurElement.cpp ('k') | Source/core/svg/SVGFEImageElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10 matching lines...) Expand all
21 #ifndef SVGFEImageElement_h 21 #ifndef SVGFEImageElement_h
22 #define SVGFEImageElement_h 22 #define SVGFEImageElement_h
23 23
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 #include "platform/heap/Handle.h"
31 32
32 namespace blink { 33 namespace blink {
33 34
34 class SVGFEImageElement final : public SVGFilterPrimitiveStandardAttributes, 35 class SVGFEImageElement final : public SVGFilterPrimitiveStandardAttributes,
35 public SVGURIReference, 36 public SVGURIReference,
36 public ImageResourceClient { 37 public ImageResourceClient {
37 DEFINE_WRAPPERTYPEINFO(); 38 DEFINE_WRAPPERTYPEINFO();
39 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGFEImageElement);
38 public: 40 public:
39 DECLARE_NODE_FACTORY(SVGFEImageElement); 41 DECLARE_NODE_FACTORY(SVGFEImageElement);
40 42
41 bool currentFrameHasSingleSecurityOrigin() const; 43 bool currentFrameHasSingleSecurityOrigin() const;
42 44
43 virtual ~SVGFEImageElement(); 45 virtual ~SVGFEImageElement();
44 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp ectRatio.get(); } 46 SVGAnimatedPreserveAspectRatio* preserveAspectRatio() { return m_preserveAsp ectRatio.get(); }
45 47
48 virtual void trace(Visitor*) override;
49
46 private: 50 private:
47 explicit SVGFEImageElement(Document&); 51 explicit SVGFEImageElement(Document&);
48 52
49 bool isSupportedAttribute(const QualifiedName&); 53 bool isSupportedAttribute(const QualifiedName&);
50 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 54 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
51 virtual void svgAttributeChanged(const QualifiedName&) override; 55 virtual void svgAttributeChanged(const QualifiedName&) override;
52 virtual void notifyFinished(Resource*) override; 56 virtual void notifyFinished(Resource*) override;
53 57
54 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) override; 58 virtual PassRefPtrWillBeRawPtr<FilterEffect> build(SVGFilterBuilder*, Filter *) override;
55 59
56 void clearResourceReferences(); 60 void clearResourceReferences();
57 void fetchImageResource(); 61 void fetchImageResource();
58 62
59 virtual void buildPendingResource() override; 63 virtual void buildPendingResource() override;
60 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; 64 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override;
61 virtual void removedFrom(ContainerNode*) override; 65 virtual void removedFrom(ContainerNode*) override;
62 66
63 RefPtr<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; 67 RefPtrWillBeMember<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio;
64 68
65 ResourcePtr<ImageResource> m_cachedImage; 69 ResourcePtr<ImageResource> m_cachedImage;
66 }; 70 };
67 71
68 } // namespace blink 72 } // namespace blink
69 73
70 #endif // SVGFEImageElement_h 74 #endif // SVGFEImageElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEGaussianBlurElement.cpp ('k') | Source/core/svg/SVGFEImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698