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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 namespace blink { | 33 namespace blink { |
34 | 34 |
35 FEOffset::FEOffset(Filter* filter, float dx, float dy) | 35 FEOffset::FEOffset(Filter* filter, float dx, float dy) |
36 : FilterEffect(filter) | 36 : FilterEffect(filter) |
37 , m_dx(dx) | 37 , m_dx(dx) |
38 , m_dy(dy) | 38 , m_dy(dy) |
39 { | 39 { |
40 } | 40 } |
41 | 41 |
42 PassRefPtr<FEOffset> FEOffset::create(Filter* filter, float dx, float dy) | 42 PassRefPtrWillBeRawPtr<FEOffset> FEOffset::create(Filter* filter, float dx, floa
t dy) |
43 { | 43 { |
44 return adoptRef(new FEOffset(filter, dx, dy)); | 44 return adoptRefWillBeNoop(new FEOffset(filter, dx, dy)); |
45 } | 45 } |
46 | 46 |
47 float FEOffset::dx() const | 47 float FEOffset::dx() const |
48 { | 48 { |
49 return m_dx; | 49 return m_dx; |
50 } | 50 } |
51 | 51 |
52 void FEOffset::setDx(float dx) | 52 void FEOffset::setDx(float dx) |
53 { | 53 { |
54 m_dx = dx; | 54 m_dx = dx; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 { | 86 { |
87 writeIndent(ts, indent); | 87 writeIndent(ts, indent); |
88 ts << "[feOffset"; | 88 ts << "[feOffset"; |
89 FilterEffect::externalRepresentation(ts); | 89 FilterEffect::externalRepresentation(ts); |
90 ts << " dx=\"" << dx() << "\" dy=\"" << dy() << "\"]\n"; | 90 ts << " dx=\"" << dx() << "\" dy=\"" << dy() << "\"]\n"; |
91 inputEffect(0)->externalRepresentation(ts, indent + 1); | 91 inputEffect(0)->externalRepresentation(ts, indent + 1); |
92 return ts; | 92 return ts; |
93 } | 93 } |
94 | 94 |
95 } // namespace blink | 95 } // namespace blink |
OLD | NEW |