OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 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 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * Copyright (C) 2013 Google Inc. All rights reserved. | 7 * Copyright (C) 2013 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 22 matching lines...) Expand all Loading... |
33 namespace blink { | 33 namespace blink { |
34 | 34 |
35 FEMorphology::FEMorphology(Filter* filter, MorphologyOperatorType type, float ra
diusX, float radiusY) | 35 FEMorphology::FEMorphology(Filter* filter, MorphologyOperatorType type, float ra
diusX, float radiusY) |
36 : FilterEffect(filter) | 36 : FilterEffect(filter) |
37 , m_type(type) | 37 , m_type(type) |
38 , m_radiusX(radiusX) | 38 , m_radiusX(radiusX) |
39 , m_radiusY(radiusY) | 39 , m_radiusY(radiusY) |
40 { | 40 { |
41 } | 41 } |
42 | 42 |
43 PassRefPtr<FEMorphology> FEMorphology::create(Filter* filter, MorphologyOperator
Type type, float radiusX, float radiusY) | 43 PassRefPtrWillBeRawPtr<FEMorphology> FEMorphology::create(Filter* filter, Morpho
logyOperatorType type, float radiusX, float radiusY) |
44 { | 44 { |
45 return adoptRef(new FEMorphology(filter, type, radiusX, radiusY)); | 45 return adoptRefWillBeNoop(new FEMorphology(filter, type, radiusX, radiusY)); |
46 } | 46 } |
47 | 47 |
48 MorphologyOperatorType FEMorphology::morphologyOperator() const | 48 MorphologyOperatorType FEMorphology::morphologyOperator() const |
49 { | 49 { |
50 return m_type; | 50 return m_type; |
51 } | 51 } |
52 | 52 |
53 bool FEMorphology::setMorphologyOperator(MorphologyOperatorType type) | 53 bool FEMorphology::setMorphologyOperator(MorphologyOperatorType type) |
54 { | 54 { |
55 if (m_type == type) | 55 if (m_type == type) |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 writeIndent(ts, indent); | 124 writeIndent(ts, indent); |
125 ts << "[feMorphology"; | 125 ts << "[feMorphology"; |
126 FilterEffect::externalRepresentation(ts); | 126 FilterEffect::externalRepresentation(ts); |
127 ts << " operator=\"" << morphologyOperator() << "\" " | 127 ts << " operator=\"" << morphologyOperator() << "\" " |
128 << "radius=\"" << radiusX() << ", " << radiusY() << "\"]\n"; | 128 << "radius=\"" << radiusX() << ", " << radiusY() << "\"]\n"; |
129 inputEffect(0)->externalRepresentation(ts, indent + 1); | 129 inputEffect(0)->externalRepresentation(ts, indent + 1); |
130 return ts; | 130 return ts; |
131 } | 131 } |
132 | 132 |
133 } // namespace blink | 133 } // namespace blink |
OLD | NEW |