| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 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 13 matching lines...) Expand all Loading... |
| 24 #include "core/svg/graphics/filters/SVGFilterBuilder.h" | 24 #include "core/svg/graphics/filters/SVGFilterBuilder.h" |
| 25 #include "platform/geometry/IntPoint.h" | 25 #include "platform/geometry/IntPoint.h" |
| 26 #include "platform/geometry/IntSize.h" | 26 #include "platform/geometry/IntSize.h" |
| 27 | 27 |
| 28 namespace blink { | 28 namespace blink { |
| 29 | 29 |
| 30 template <> | 30 template <> |
| 31 const SVGEnumerationStringEntries& getStaticStringEntries<EdgeModeType>() { | 31 const SVGEnumerationStringEntries& getStaticStringEntries<EdgeModeType>() { |
| 32 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); | 32 DEFINE_STATIC_LOCAL(SVGEnumerationStringEntries, entries, ()); |
| 33 if (entries.isEmpty()) { | 33 if (entries.isEmpty()) { |
| 34 entries.append(std::make_pair(EDGEMODE_DUPLICATE, "duplicate")); | 34 entries.push_back(std::make_pair(EDGEMODE_DUPLICATE, "duplicate")); |
| 35 entries.append(std::make_pair(EDGEMODE_WRAP, "wrap")); | 35 entries.push_back(std::make_pair(EDGEMODE_WRAP, "wrap")); |
| 36 entries.append(std::make_pair(EDGEMODE_NONE, "none")); | 36 entries.push_back(std::make_pair(EDGEMODE_NONE, "none")); |
| 37 } | 37 } |
| 38 return entries; | 38 return entries; |
| 39 } | 39 } |
| 40 | 40 |
| 41 class SVGAnimatedOrder : public SVGAnimatedIntegerOptionalInteger { | 41 class SVGAnimatedOrder : public SVGAnimatedIntegerOptionalInteger { |
| 42 public: | 42 public: |
| 43 static SVGAnimatedOrder* create(SVGElement* contextElement) { | 43 static SVGAnimatedOrder* create(SVGElement* contextElement) { |
| 44 return new SVGAnimatedOrder(contextElement); | 44 return new SVGAnimatedOrder(contextElement); |
| 45 } | 45 } |
| 46 | 46 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 divisorValue += kernelMatrix->at(i)->value(); | 204 divisorValue += kernelMatrix->at(i)->value(); |
| 205 if (!divisorValue) | 205 if (!divisorValue) |
| 206 divisorValue = 1; | 206 divisorValue = 1; |
| 207 } | 207 } |
| 208 | 208 |
| 209 FilterEffect* effect = FEConvolveMatrix::create( | 209 FilterEffect* effect = FEConvolveMatrix::create( |
| 210 filter, matrixOrder(), divisorValue, m_bias->currentValue()->value(), | 210 filter, matrixOrder(), divisorValue, m_bias->currentValue()->value(), |
| 211 targetPoint(), m_edgeMode->currentValue()->enumValue(), | 211 targetPoint(), m_edgeMode->currentValue()->enumValue(), |
| 212 m_preserveAlpha->currentValue()->value(), | 212 m_preserveAlpha->currentValue()->value(), |
| 213 m_kernelMatrix->currentValue()->toFloatVector()); | 213 m_kernelMatrix->currentValue()->toFloatVector()); |
| 214 effect->inputEffects().append(input1); | 214 effect->inputEffects().push_back(input1); |
| 215 return effect; | 215 return effect; |
| 216 } | 216 } |
| 217 | 217 |
| 218 } // namespace blink | 218 } // namespace blink |
| OLD | NEW |