| 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, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 MAP_BLEND_MODE(ColorBurn); | 42 MAP_BLEND_MODE(ColorBurn); |
| 43 MAP_BLEND_MODE(HardLight); | 43 MAP_BLEND_MODE(HardLight); |
| 44 MAP_BLEND_MODE(SoftLight); | 44 MAP_BLEND_MODE(SoftLight); |
| 45 MAP_BLEND_MODE(Difference); | 45 MAP_BLEND_MODE(Difference); |
| 46 MAP_BLEND_MODE(Exclusion); | 46 MAP_BLEND_MODE(Exclusion); |
| 47 MAP_BLEND_MODE(Hue); | 47 MAP_BLEND_MODE(Hue); |
| 48 MAP_BLEND_MODE(Saturation); | 48 MAP_BLEND_MODE(Saturation); |
| 49 MAP_BLEND_MODE(Color); | 49 MAP_BLEND_MODE(Color); |
| 50 MAP_BLEND_MODE(Luminosity); | 50 MAP_BLEND_MODE(Luminosity); |
| 51 default: | 51 default: |
| 52 ASSERT_NOT_REACHED(); | 52 NOTREACHED(); |
| 53 return WebBlendModeNormal; | 53 return WebBlendModeNormal; |
| 54 } | 54 } |
| 55 #undef MAP_BLEND_MODE | 55 #undef MAP_BLEND_MODE |
| 56 } | 56 } |
| 57 | 57 |
| 58 template <> | 58 template <> |
| 59 const SVGEnumerationStringEntries& | 59 const SVGEnumerationStringEntries& |
| 60 getStaticStringEntries<SVGFEBlendElement::Mode>() { | 60 getStaticStringEntries<SVGFEBlendElement::Mode>() { |
| 61 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); | 61 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); |
| 62 if (entries.isEmpty()) { | 62 if (entries.isEmpty()) { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 FilterEffect* effect = FEBlend::create( | 157 FilterEffect* effect = FEBlend::create( |
| 158 filter, toWebBlendMode(m_mode->currentValue()->enumValue())); | 158 filter, toWebBlendMode(m_mode->currentValue()->enumValue())); |
| 159 FilterEffectVector& inputEffects = effect->inputEffects(); | 159 FilterEffectVector& inputEffects = effect->inputEffects(); |
| 160 inputEffects.reserveCapacity(2); | 160 inputEffects.reserveCapacity(2); |
| 161 inputEffects.push_back(input1); | 161 inputEffects.push_back(input1); |
| 162 inputEffects.push_back(input2); | 162 inputEffects.push_back(input2); |
| 163 return effect; | 163 return effect; |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace blink | 166 } // namespace blink |
| OLD | NEW |