| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 bool SVGFEDropShadowElement::isSupportedAttribute(const QualifiedName& attrName) | 85 bool SVGFEDropShadowElement::isSupportedAttribute(const QualifiedName& attrName) |
| 86 { | 86 { |
| 87 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 87 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 88 if (supportedAttributes.isEmpty()) { | 88 if (supportedAttributes.isEmpty()) { |
| 89 supportedAttributes.add(SVGNames::inAttr); | 89 supportedAttributes.add(SVGNames::inAttr); |
| 90 supportedAttributes.add(SVGNames::dxAttr); | 90 supportedAttributes.add(SVGNames::dxAttr); |
| 91 supportedAttributes.add(SVGNames::dyAttr); | 91 supportedAttributes.add(SVGNames::dyAttr); |
| 92 supportedAttributes.add(SVGNames::stdDeviationAttr); | 92 supportedAttributes.add(SVGNames::stdDeviationAttr); |
| 93 } | 93 } |
| 94 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 94 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
| 95 } | 95 } |
| 96 | 96 |
| 97 void SVGFEDropShadowElement::parseAttribute(const QualifiedName& name, const Ato
micString& value) | 97 void SVGFEDropShadowElement::parseAttribute(const QualifiedName& name, const Ato
micString& value) |
| 98 { | 98 { |
| 99 if (!isSupportedAttribute(name)) { | 99 if (!isSupportedAttribute(name)) { |
| 100 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value); | 100 SVGFilterPrimitiveStandardAttributes::parseAttribute(name, value); |
| 101 return; | 101 return; |
| 102 } | 102 } |
| 103 | 103 |
| 104 if (name == SVGNames::stdDeviationAttr) { | 104 if (name == SVGNames::stdDeviationAttr) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 FilterEffect* input1 = filterBuilder->getEffectById(in1()); | 166 FilterEffect* input1 = filterBuilder->getEffectById(in1()); |
| 167 if (!input1) | 167 if (!input1) |
| 168 return 0; | 168 return 0; |
| 169 | 169 |
| 170 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationX(),
stdDeviationY(), dx(), dy(), color, opacity); | 170 RefPtr<FilterEffect> effect = FEDropShadow::create(filter, stdDeviationX(),
stdDeviationY(), dx(), dy(), color, opacity); |
| 171 effect->inputEffects().append(input1); | 171 effect->inputEffects().append(input1); |
| 172 return effect.release(); | 172 return effect.release(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 } | 175 } |
| OLD | NEW |