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

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

Issue 14022022: FINALizing of the Node hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Action review comments. Created 7 years, 7 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/SVGFEMergeNodeElement.h ('k') | Source/core/svg/SVGFEOffsetElement.h » ('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) 2009 Dirk Schulze <krit@webkit.org> 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 static MorphologyOperatorType fromString(const String& value) 50 static MorphologyOperatorType fromString(const String& value)
51 { 51 {
52 if (value == "erode") 52 if (value == "erode")
53 return FEMORPHOLOGY_OPERATOR_ERODE; 53 return FEMORPHOLOGY_OPERATOR_ERODE;
54 if (value == "dilate") 54 if (value == "dilate")
55 return FEMORPHOLOGY_OPERATOR_DILATE; 55 return FEMORPHOLOGY_OPERATOR_DILATE;
56 return FEMORPHOLOGY_OPERATOR_UNKNOWN; 56 return FEMORPHOLOGY_OPERATOR_UNKNOWN;
57 } 57 }
58 }; 58 };
59 59
60 class SVGFEMorphologyElement : public SVGFilterPrimitiveStandardAttributes { 60 class SVGFEMorphologyElement FINAL : public SVGFilterPrimitiveStandardAttributes {
61 public: 61 public:
62 static PassRefPtr<SVGFEMorphologyElement> create(const QualifiedName&, Docum ent*); 62 static PassRefPtr<SVGFEMorphologyElement> create(const QualifiedName&, Docum ent*);
63 63
64 void setRadius(float radiusX, float radiusY); 64 void setRadius(float radiusX, float radiusY);
65 65
66 private: 66 private:
67 SVGFEMorphologyElement(const QualifiedName&, Document*); 67 SVGFEMorphologyElement(const QualifiedName&, Document*);
68 68
69 bool isSupportedAttribute(const QualifiedName&); 69 bool isSupportedAttribute(const QualifiedName&);
70 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 70 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
71 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&); 71 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&);
72 virtual void svgAttributeChanged(const QualifiedName&); 72 virtual void svgAttributeChanged(const QualifiedName&);
73 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); 73 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*);
74 74
75 static const AtomicString& radiusXIdentifier(); 75 static const AtomicString& radiusXIdentifier();
76 static const AtomicString& radiusYIdentifier(); 76 static const AtomicString& radiusYIdentifier();
77 77
78 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEMorphologyElement) 78 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEMorphologyElement)
79 DECLARE_ANIMATED_STRING(In1, in1) 79 DECLARE_ANIMATED_STRING(In1, in1)
80 DECLARE_ANIMATED_ENUMERATION(_operator, _operator, MorphologyOperatorTyp e) 80 DECLARE_ANIMATED_ENUMERATION(_operator, _operator, MorphologyOperatorTyp e)
81 DECLARE_ANIMATED_NUMBER(RadiusX, radiusX) 81 DECLARE_ANIMATED_NUMBER(RadiusX, radiusX)
82 DECLARE_ANIMATED_NUMBER(RadiusY, radiusY) 82 DECLARE_ANIMATED_NUMBER(RadiusY, radiusY)
83 END_DECLARE_ANIMATED_PROPERTIES 83 END_DECLARE_ANIMATED_PROPERTIES
84 }; 84 };
85 85
86 } // namespace WebCore 86 } // namespace WebCore
87 87
88 #endif // ENABLE(SVG) 88 #endif // ENABLE(SVG)
89 #endif 89 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEMergeNodeElement.h ('k') | Source/core/svg/SVGFEOffsetElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698