| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 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 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 57 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
| 58 } | 58 } |
| 59 | 59 |
| 60 FilterEffect* SVGFEComponentTransferElement::build( | 60 FilterEffect* SVGFEComponentTransferElement::build( |
| 61 SVGFilterBuilder* filterBuilder, | 61 SVGFilterBuilder* filterBuilder, |
| 62 Filter* filter) { | 62 Filter* filter) { |
| 63 FilterEffect* input1 = filterBuilder->getEffectById( | 63 FilterEffect* input1 = filterBuilder->getEffectById( |
| 64 AtomicString(m_in1->currentValue()->value())); | 64 AtomicString(m_in1->currentValue()->value())); |
| 65 ASSERT(input1); | 65 DCHECK(input1); |
| 66 | 66 |
| 67 ComponentTransferFunction red; | 67 ComponentTransferFunction red; |
| 68 ComponentTransferFunction green; | 68 ComponentTransferFunction green; |
| 69 ComponentTransferFunction blue; | 69 ComponentTransferFunction blue; |
| 70 ComponentTransferFunction alpha; | 70 ComponentTransferFunction alpha; |
| 71 | 71 |
| 72 for (SVGElement* element = Traversal<SVGElement>::firstChild(*this); element; | 72 for (SVGElement* element = Traversal<SVGElement>::firstChild(*this); element; |
| 73 element = Traversal<SVGElement>::nextSibling(*element)) { | 73 element = Traversal<SVGElement>::nextSibling(*element)) { |
| 74 if (isSVGFEFuncRElement(*element)) | 74 if (isSVGFEFuncRElement(*element)) |
| 75 red = toSVGFEFuncRElement(*element).transferFunction(); | 75 red = toSVGFEFuncRElement(*element).transferFunction(); |
| 76 else if (isSVGFEFuncGElement(*element)) | 76 else if (isSVGFEFuncGElement(*element)) |
| 77 green = toSVGFEFuncGElement(*element).transferFunction(); | 77 green = toSVGFEFuncGElement(*element).transferFunction(); |
| 78 else if (isSVGFEFuncBElement(*element)) | 78 else if (isSVGFEFuncBElement(*element)) |
| 79 blue = toSVGFEFuncBElement(*element).transferFunction(); | 79 blue = toSVGFEFuncBElement(*element).transferFunction(); |
| 80 else if (isSVGFEFuncAElement(*element)) | 80 else if (isSVGFEFuncAElement(*element)) |
| 81 alpha = toSVGFEFuncAElement(*element).transferFunction(); | 81 alpha = toSVGFEFuncAElement(*element).transferFunction(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 FilterEffect* effect = | 84 FilterEffect* effect = |
| 85 FEComponentTransfer::create(filter, red, green, blue, alpha); | 85 FEComponentTransfer::create(filter, red, green, blue, alpha); |
| 86 effect->inputEffects().push_back(input1); | 86 effect->inputEffects().push_back(input1); |
| 87 return effect; | 87 return effect; |
| 88 } | 88 } |
| 89 | 89 |
| 90 } // namespace blink | 90 } // namespace blink |
| OLD | NEW |