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) 2010 Igalia, S.L. | 6 * Copyright (C) 2010 Igalia, S.L. |
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
8 * Copyright (C) 2013 Google Inc. All rights reserved. | 8 * Copyright (C) 2013 Google Inc. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 if (std.width()) { | 46 if (std.width()) { |
47 int size = std::max<unsigned>(2, approximateBoxWidth(std.width())); | 47 int size = std::max<unsigned>(2, approximateBoxWidth(std.width())); |
48 kernelSize.setWidth(size); | 48 kernelSize.setWidth(size); |
49 } | 49 } |
50 if (std.height()) { | 50 if (std.height()) { |
51 int size = std::max<unsigned>(2, approximateBoxWidth(std.height())); | 51 int size = std::max<unsigned>(2, approximateBoxWidth(std.height())); |
52 kernelSize.setHeight(size); | 52 kernelSize.setHeight(size); |
53 } | 53 } |
54 return kernelSize; | 54 return kernelSize; |
55 } | 55 } |
56 | |
57 } | 56 } |
58 | 57 |
59 FEGaussianBlur::FEGaussianBlur(Filter* filter, float x, float y) | 58 FEGaussianBlur::FEGaussianBlur(Filter* filter, float x, float y) |
60 : FilterEffect(filter), m_stdX(x), m_stdY(y) {} | 59 : FilterEffect(filter), m_stdX(x), m_stdY(y) {} |
61 | 60 |
62 FEGaussianBlur* FEGaussianBlur::create(Filter* filter, float x, float y) { | 61 FEGaussianBlur* FEGaussianBlur::create(Filter* filter, float x, float y) { |
63 return new FEGaussianBlur(filter, x, y); | 62 return new FEGaussianBlur(filter, x, y); |
64 } | 63 } |
65 | 64 |
66 FloatRect FEGaussianBlur::mapEffect(const FloatSize& stdDeviation, | 65 FloatRect FEGaussianBlur::mapEffect(const FloatSize& stdDeviation, |
(...skipping 27 matching lines...) Expand all Loading... |
94 int indent) const { | 93 int indent) const { |
95 writeIndent(ts, indent); | 94 writeIndent(ts, indent); |
96 ts << "[feGaussianBlur"; | 95 ts << "[feGaussianBlur"; |
97 FilterEffect::externalRepresentation(ts); | 96 FilterEffect::externalRepresentation(ts); |
98 ts << " stdDeviation=\"" << m_stdX << ", " << m_stdY << "\"]\n"; | 97 ts << " stdDeviation=\"" << m_stdX << ", " << m_stdY << "\"]\n"; |
99 inputEffect(0)->externalRepresentation(ts, indent + 1); | 98 inputEffect(0)->externalRepresentation(ts, indent + 1); |
100 return ts; | 99 return ts; |
101 } | 100 } |
102 | 101 |
103 } // namespace blink | 102 } // namespace blink |
OLD | NEW |