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) 2013 Google Inc. All rights reserved. | 6 * Copyright (C) 2013 Google Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 FEColorMatrix::FEColorMatrix(Filter* filter, ColorMatrixType type, const Vector<
float>& values) | 34 FEColorMatrix::FEColorMatrix(Filter* filter, ColorMatrixType type, const Vector<
float>& values) |
35 : FilterEffect(filter) | 35 : FilterEffect(filter) |
36 , m_type(type) | 36 , m_type(type) |
37 , m_values(values) | 37 , m_values(values) |
38 { | 38 { |
39 } | 39 } |
40 | 40 |
41 PassRefPtr<FEColorMatrix> FEColorMatrix::create(Filter* filter, ColorMatrixType
type, const Vector<float>& values) | 41 PassRefPtrWillBeRawPtr<FEColorMatrix> FEColorMatrix::create(Filter* filter, Colo
rMatrixType type, const Vector<float>& values) |
42 { | 42 { |
43 return adoptRef(new FEColorMatrix(filter, type, values)); | 43 return adoptRefWillBeNoop(new FEColorMatrix(filter, type, values)); |
44 } | 44 } |
45 | 45 |
46 ColorMatrixType FEColorMatrix::type() const | 46 ColorMatrixType FEColorMatrix::type() const |
47 { | 47 { |
48 return m_type; | 48 return m_type; |
49 } | 49 } |
50 | 50 |
51 bool FEColorMatrix::setType(ColorMatrixType type) | 51 bool FEColorMatrix::setType(ColorMatrixType type) |
52 { | 52 { |
53 if (m_type == type) | 53 if (m_type == type) |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 ts << " "; | 199 ts << " "; |
200 } | 200 } |
201 ts << "\""; | 201 ts << "\""; |
202 } | 202 } |
203 ts << "]\n"; | 203 ts << "]\n"; |
204 inputEffect(0)->externalRepresentation(ts, indent + 1); | 204 inputEffect(0)->externalRepresentation(ts, indent + 1); |
205 return ts; | 205 return ts; |
206 } | 206 } |
207 | 207 |
208 } // namespace blink | 208 } // namespace blink |
OLD | NEW |