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

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

Issue 2469873002: [ImageResource 4] Split ImageResource into Resource and Image parts (Closed)
Patch Set: style Created 4 years 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
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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
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/ImageResourceContent.h"
26 #include "core/fetch/ImageResourceObserver.h" 26 #include "core/fetch/ImageResourceObserver.h"
27 #include "core/svg/SVGAnimatedPreserveAspectRatio.h" 27 #include "core/svg/SVGAnimatedPreserveAspectRatio.h"
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,
(...skipping 12 matching lines...) Expand all
48 } 48 }
49 49
50 // Promptly remove as a ImageResource client. 50 // Promptly remove as a ImageResource client.
51 EAGERLY_FINALIZE(); 51 EAGERLY_FINALIZE();
52 DECLARE_VIRTUAL_TRACE(); 52 DECLARE_VIRTUAL_TRACE();
53 53
54 private: 54 private:
55 explicit SVGFEImageElement(Document&); 55 explicit SVGFEImageElement(Document&);
56 56
57 void svgAttributeChanged(const QualifiedName&) override; 57 void svgAttributeChanged(const QualifiedName&) override;
58 void imageNotifyFinished(ImageResource*) override; 58 void imageNotifyFinished(ImageResourceContent*) override;
59 String debugName() const override { return "SVGFEImageElement"; } 59 String debugName() const override { return "SVGFEImageElement"; }
60 60
61 FilterEffect* build(SVGFilterBuilder*, Filter*) override; 61 FilterEffect* build(SVGFilterBuilder*, Filter*) override;
62 62
63 void clearResourceReferences(); 63 void clearResourceReferences();
64 void fetchImageResource(); 64 void fetchImageResource();
65 65
66 void buildPendingResource() override; 66 void buildPendingResource() override;
67 InsertionNotificationRequest insertedInto(ContainerNode*) override; 67 InsertionNotificationRequest insertedInto(ContainerNode*) override;
68 void removedFrom(ContainerNode*) override; 68 void removedFrom(ContainerNode*) override;
69 69
70 Member<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio; 70 Member<SVGAnimatedPreserveAspectRatio> m_preserveAspectRatio;
71 71
72 Member<ImageResource> m_cachedImage; 72 Member<ImageResourceContent> m_cachedImage;
73 }; 73 };
74 74
75 } // namespace blink 75 } // namespace blink
76 76
77 #endif // SVGFEImageElement_h 77 #endif // SVGFEImageElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleImage.h ('k') | third_party/WebKit/Source/core/svg/SVGFEImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698