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 26 matching lines...) Expand all Loading... |
37 FEComposite::FEComposite(Filter* filter, const CompositeOperationType& type, flo
at k1, float k2, float k3, float k4) | 37 FEComposite::FEComposite(Filter* filter, const CompositeOperationType& type, flo
at k1, float k2, float k3, float k4) |
38 : FilterEffect(filter) | 38 : FilterEffect(filter) |
39 , m_type(type) | 39 , m_type(type) |
40 , m_k1(k1) | 40 , m_k1(k1) |
41 , m_k2(k2) | 41 , m_k2(k2) |
42 , m_k3(k3) | 42 , m_k3(k3) |
43 , m_k4(k4) | 43 , m_k4(k4) |
44 { | 44 { |
45 } | 45 } |
46 | 46 |
47 PassRefPtr<FEComposite> FEComposite::create(Filter* filter, const CompositeOpera
tionType& type, float k1, float k2, float k3, float k4) | 47 PassRefPtrWillBeRawPtr<FEComposite> FEComposite::create(Filter* filter, const Co
mpositeOperationType& type, float k1, float k2, float k3, float k4) |
48 { | 48 { |
49 return adoptRef(new FEComposite(filter, type, k1, k2, k3, k4)); | 49 return adoptRefWillBeNoop(new FEComposite(filter, type, k1, k2, k3, k4)); |
50 } | 50 } |
51 | 51 |
52 CompositeOperationType FEComposite::operation() const | 52 CompositeOperationType FEComposite::operation() const |
53 { | 53 { |
54 return m_type; | 54 return m_type; |
55 } | 55 } |
56 | 56 |
57 bool FEComposite::setOperation(CompositeOperationType type) | 57 bool FEComposite::setOperation(CompositeOperationType type) |
58 { | 58 { |
59 if (m_type == type) | 59 if (m_type == type) |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 ts << " operation=\"" << m_type << "\""; | 249 ts << " operation=\"" << m_type << "\""; |
250 if (m_type == FECOMPOSITE_OPERATOR_ARITHMETIC) | 250 if (m_type == FECOMPOSITE_OPERATOR_ARITHMETIC) |
251 ts << " k1=\"" << m_k1 << "\" k2=\"" << m_k2 << "\" k3=\"" << m_k3 << "\
" k4=\"" << m_k4 << "\""; | 251 ts << " k1=\"" << m_k1 << "\" k2=\"" << m_k2 << "\" k3=\"" << m_k3 << "\
" k4=\"" << m_k4 << "\""; |
252 ts << "]\n"; | 252 ts << "]\n"; |
253 inputEffect(0)->externalRepresentation(ts, indent + 1); | 253 inputEffect(0)->externalRepresentation(ts, indent + 1); |
254 inputEffect(1)->externalRepresentation(ts, indent + 1); | 254 inputEffect(1)->externalRepresentation(ts, indent + 1); |
255 return ts; | 255 return ts; |
256 } | 256 } |
257 | 257 |
258 } // namespace blink | 258 } // namespace blink |
OLD | NEW |