| 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) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 FESpecularLighting::FESpecularLighting(Filter* filter, const Color& lightingColo
r, float surfaceScale, | 31 FESpecularLighting::FESpecularLighting(Filter* filter, const Color& lightingColo
r, float surfaceScale, |
| 32 float specularConstant, float specularExponent, float kernelUnitLengthX, | 32 float specularConstant, float specularExponent, float kernelUnitLengthX, |
| 33 float kernelUnitLengthY, PassRefPtr<LightSource> lightSource) | 33 float kernelUnitLengthY, PassRefPtr<LightSource> lightSource) |
| 34 : FELighting(filter, SpecularLighting, lightingColor, surfaceScale, 0, specu
larConstant, specularExponent, kernelUnitLengthX, kernelUnitLengthY, lightSource
) | 34 : FELighting(filter, SpecularLighting, lightingColor, surfaceScale, 0, specu
larConstant, specularExponent, kernelUnitLengthX, kernelUnitLengthY, lightSource
) |
| 35 { | 35 { |
| 36 } | 36 } |
| 37 | 37 |
| 38 PassRefPtr<FESpecularLighting> FESpecularLighting::create(Filter* filter, const
Color& lightingColor, | 38 PassRefPtrWillBeRawPtr<FESpecularLighting> FESpecularLighting::create(Filter* fi
lter, const Color& lightingColor, |
| 39 float surfaceScale, float specularConstant, float specularExponent, | 39 float surfaceScale, float specularConstant, float specularExponent, |
| 40 float kernelUnitLengthX, float kernelUnitLengthY, PassRefPtr<LightSource> li
ghtSource) | 40 float kernelUnitLengthX, float kernelUnitLengthY, PassRefPtr<LightSource> li
ghtSource) |
| 41 { | 41 { |
| 42 return adoptRef(new FESpecularLighting(filter, lightingColor, surfaceScale,
specularConstant, specularExponent, | 42 return adoptRefWillBeNoop(new FESpecularLighting(filter, lightingColor, surf
aceScale, specularConstant, specularExponent, |
| 43 kernelUnitLengthX, kernelUnitLengthY, lightSource)); | 43 kernelUnitLengthX, kernelUnitLengthY, lightSource)); |
| 44 } | 44 } |
| 45 | 45 |
| 46 FESpecularLighting::~FESpecularLighting() | 46 FESpecularLighting::~FESpecularLighting() |
| 47 { | 47 { |
| 48 } | 48 } |
| 49 | 49 |
| 50 Color FESpecularLighting::lightingColor() const | 50 Color FESpecularLighting::lightingColor() const |
| 51 { | 51 { |
| 52 return m_lightingColor; | 52 return m_lightingColor; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 ts << "[feSpecularLighting"; | 143 ts << "[feSpecularLighting"; |
| 144 FilterEffect::externalRepresentation(ts); | 144 FilterEffect::externalRepresentation(ts); |
| 145 ts << " surfaceScale=\"" << m_surfaceScale << "\" " | 145 ts << " surfaceScale=\"" << m_surfaceScale << "\" " |
| 146 << "specualConstant=\"" << m_specularConstant << "\" " | 146 << "specualConstant=\"" << m_specularConstant << "\" " |
| 147 << "specularExponent=\"" << m_specularExponent << "\"]\n"; | 147 << "specularExponent=\"" << m_specularExponent << "\"]\n"; |
| 148 inputEffect(0)->externalRepresentation(ts, indent + 1); | 148 inputEffect(0)->externalRepresentation(ts, indent + 1); |
| 149 return ts; | 149 return ts; |
| 150 } | 150 } |
| 151 | 151 |
| 152 } // namespace blink | 152 } // namespace blink |
| OLD | NEW |