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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 months 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/SVGEllipseElement.cpp ('k') | Source/core/svg/SVGFEBlendElement.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, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 if (value == "darken") 63 if (value == "darken")
64 return FEBLEND_MODE_DARKEN; 64 return FEBLEND_MODE_DARKEN;
65 if (value == "lighten") 65 if (value == "lighten")
66 return FEBLEND_MODE_LIGHTEN; 66 return FEBLEND_MODE_LIGHTEN;
67 return FEBLEND_MODE_UNKNOWN; 67 return FEBLEND_MODE_UNKNOWN;
68 } 68 }
69 }; 69 };
70 70
71 class SVGFEBlendElement FINAL : public SVGFilterPrimitiveStandardAttributes { 71 class SVGFEBlendElement FINAL : public SVGFilterPrimitiveStandardAttributes {
72 public: 72 public:
73 static PassRefPtr<SVGFEBlendElement> create(const QualifiedName&, Document*) ; 73 static PassRefPtr<SVGFEBlendElement> create(const QualifiedName&, Document&) ;
74 74
75 private: 75 private:
76 SVGFEBlendElement(const QualifiedName&, Document*); 76 SVGFEBlendElement(const QualifiedName&, Document&);
77 77
78 bool isSupportedAttribute(const QualifiedName&); 78 bool isSupportedAttribute(const QualifiedName&);
79 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 79 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
80 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at trName); 80 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at trName);
81 virtual void svgAttributeChanged(const QualifiedName&); 81 virtual void svgAttributeChanged(const QualifiedName&);
82 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); 82 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*);
83 83
84 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEBlendElement) 84 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEBlendElement)
85 DECLARE_ANIMATED_STRING(In1, in1) 85 DECLARE_ANIMATED_STRING(In1, in1)
86 DECLARE_ANIMATED_STRING(In2, in2) 86 DECLARE_ANIMATED_STRING(In2, in2)
87 DECLARE_ANIMATED_ENUMERATION(Mode, mode, BlendModeType) 87 DECLARE_ANIMATED_ENUMERATION(Mode, mode, BlendModeType)
88 END_DECLARE_ANIMATED_PROPERTIES 88 END_DECLARE_ANIMATED_PROPERTIES
89 }; 89 };
90 90
91 } // namespace WebCore 91 } // namespace WebCore
92 92
93 #endif 93 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGEllipseElement.cpp ('k') | Source/core/svg/SVGFEBlendElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698