| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 2 * Copyright (C) 2005 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 ASSERT(layoutObject->style()); | 153 ASSERT(layoutObject->style()); |
| 154 Color color = layoutObject->style()->svgStyle().lightingColor(); | 154 Color color = layoutObject->style()->svgStyle().lightingColor(); |
| 155 | 155 |
| 156 const SVGFELightElement* lightNode = | 156 const SVGFELightElement* lightNode = |
| 157 SVGFELightElement::findLightElement(*this); | 157 SVGFELightElement::findLightElement(*this); |
| 158 RefPtr<LightSource> lightSource = | 158 RefPtr<LightSource> lightSource = |
| 159 lightNode ? lightNode->lightSource(filter) : nullptr; | 159 lightNode ? lightNode->lightSource(filter) : nullptr; |
| 160 | 160 |
| 161 FilterEffect* effect = FEDiffuseLighting::create( | 161 FilterEffect* effect = FEDiffuseLighting::create( |
| 162 filter, color, m_surfaceScale->currentValue()->value(), | 162 filter, color, m_surfaceScale->currentValue()->value(), |
| 163 m_diffuseConstant->currentValue()->value(), lightSource.release()); | 163 m_diffuseConstant->currentValue()->value(), std::move(lightSource)); |
| 164 effect->inputEffects().push_back(input1); | 164 effect->inputEffects().push_back(input1); |
| 165 return effect; | 165 return effect; |
| 166 } | 166 } |
| 167 | 167 |
| 168 } // namespace blink | 168 } // namespace blink |
| OLD | NEW |