| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFETileElement) | 38 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFETileElement) |
| 39 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) | 39 REGISTER_LOCAL_ANIMATED_PROPERTY(in1) |
| 40 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) | 40 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGFilterPrimitiveStandardAttributes) |
| 41 END_REGISTER_ANIMATED_PROPERTIES | 41 END_REGISTER_ANIMATED_PROPERTIES |
| 42 | 42 |
| 43 inline SVGFETileElement::SVGFETileElement(const QualifiedName& tagName, Document
* document) | 43 inline SVGFETileElement::SVGFETileElement(const QualifiedName& tagName, Document
* document) |
| 44 : SVGFilterPrimitiveStandardAttributes(tagName, document) | 44 : SVGFilterPrimitiveStandardAttributes(tagName, document) |
| 45 { | 45 { |
| 46 ASSERT(hasTagName(SVGNames::feTileTag)); | 46 ASSERT(hasTagName(SVGNames::feTileTag)); |
| 47 ScriptWrappable::init(this); |
| 47 registerAnimatedPropertiesForSVGFETileElement(); | 48 registerAnimatedPropertiesForSVGFETileElement(); |
| 48 } | 49 } |
| 49 | 50 |
| 50 PassRefPtr<SVGFETileElement> SVGFETileElement::create(const QualifiedName& tagNa
me, Document* document) | 51 PassRefPtr<SVGFETileElement> SVGFETileElement::create(const QualifiedName& tagNa
me, Document* document) |
| 51 { | 52 { |
| 52 return adoptRef(new SVGFETileElement(tagName, document)); | 53 return adoptRef(new SVGFETileElement(tagName, document)); |
| 53 } | 54 } |
| 54 | 55 |
| 55 bool SVGFETileElement::isSupportedAttribute(const QualifiedName& attrName) | 56 bool SVGFETileElement::isSupportedAttribute(const QualifiedName& attrName) |
| 56 { | 57 { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 return 0; | 101 return 0; |
| 101 | 102 |
| 102 RefPtr<FilterEffect> effect = FETile::create(filter); | 103 RefPtr<FilterEffect> effect = FETile::create(filter); |
| 103 effect->inputEffects().append(input1); | 104 effect->inputEffects().append(input1); |
| 104 return effect.release(); | 105 return effect.release(); |
| 105 } | 106 } |
| 106 | 107 |
| 107 } | 108 } |
| 108 | 109 |
| 109 #endif // ENABLE(SVG) | 110 #endif // ENABLE(SVG) |
| OLD | NEW |