| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 FEGaussianBlur::FEGaussianBlur(Filter* filter, float x, float y) | 41 FEGaussianBlur::FEGaussianBlur(Filter* filter, float x, float y) |
| 42 : FilterEffect(filter) | 42 : FilterEffect(filter) |
| 43 , m_stdX(x) | 43 , m_stdX(x) |
| 44 , m_stdY(y) | 44 , m_stdY(y) |
| 45 { | 45 { |
| 46 } | 46 } |
| 47 | 47 |
| 48 RawPtr<FEGaussianBlur> FEGaussianBlur::create(Filter* filter, float x, float y) | 48 FEGaussianBlur* FEGaussianBlur::create(Filter* filter, float x, float y) |
| 49 { | 49 { |
| 50 return new FEGaussianBlur(filter, x, y); | 50 return new FEGaussianBlur(filter, x, y); |
| 51 } | 51 } |
| 52 | 52 |
| 53 IntSize FEGaussianBlur::calculateUnscaledKernelSize(const FloatPoint& std) | 53 IntSize FEGaussianBlur::calculateUnscaledKernelSize(const FloatPoint& std) |
| 54 { | 54 { |
| 55 ASSERT(std.x() >= 0 && std.y() >= 0); | 55 ASSERT(std.x() >= 0 && std.y() >= 0); |
| 56 | 56 |
| 57 IntSize kernelSize; | 57 IntSize kernelSize; |
| 58 // Limit the kernel size to 1000. A bigger radius won't make a big differenc
e for the result image but | 58 // Limit the kernel size to 1000. A bigger radius won't make a big differenc
e for the result image but |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 { | 120 { |
| 121 writeIndent(ts, indent); | 121 writeIndent(ts, indent); |
| 122 ts << "[feGaussianBlur"; | 122 ts << "[feGaussianBlur"; |
| 123 FilterEffect::externalRepresentation(ts); | 123 FilterEffect::externalRepresentation(ts); |
| 124 ts << " stdDeviation=\"" << m_stdX << ", " << m_stdY << "\"]\n"; | 124 ts << " stdDeviation=\"" << m_stdX << ", " << m_stdY << "\"]\n"; |
| 125 inputEffect(0)->externalRepresentation(ts, indent + 1); | 125 inputEffect(0)->externalRepresentation(ts, indent + 1); |
| 126 return ts; | 126 return ts; |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace blink | 129 } // namespace blink |
| OLD | NEW |