| 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 inline SVGFETileElement::SVGFETileElement(Document& document) | 31 inline SVGFETileElement::SVGFETileElement(Document& document) |
| 32 : SVGFilterPrimitiveStandardAttributes(SVGNames::feTileTag, document) | 32 : SVGFilterPrimitiveStandardAttributes(SVGNames::feTileTag, document) |
| 33 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) | 33 , m_in1(SVGAnimatedString::create(this, SVGNames::inAttr, SVGString::create(
))) |
| 34 { | 34 { |
| 35 addToPropertyMap(m_in1); | 35 addToPropertyMap(m_in1); |
| 36 } | 36 } |
| 37 | 37 |
| 38 void SVGFETileElement::trace(Visitor* visitor) |
| 39 { |
| 40 visitor->trace(m_in1); |
| 41 SVGFilterPrimitiveStandardAttributes::trace(visitor); |
| 42 } |
| 43 |
| 38 DEFINE_NODE_FACTORY(SVGFETileElement) | 44 DEFINE_NODE_FACTORY(SVGFETileElement) |
| 39 | 45 |
| 40 void SVGFETileElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& value) | 46 void SVGFETileElement::parseAttribute(const QualifiedName& name, const AtomicStr
ing& value) |
| 41 { | 47 { |
| 42 parseAttributeNew(name, value); | 48 parseAttributeNew(name, value); |
| 43 } | 49 } |
| 44 | 50 |
| 45 void SVGFETileElement::svgAttributeChanged(const QualifiedName& attrName) | 51 void SVGFETileElement::svgAttributeChanged(const QualifiedName& attrName) |
| 46 { | 52 { |
| 47 if (attrName == SVGNames::inAttr) { | 53 if (attrName == SVGNames::inAttr) { |
| 48 SVGElement::InvalidationGuard invalidationGuard(this); | 54 SVGElement::InvalidationGuard invalidationGuard(this); |
| 49 invalidate(); | 55 invalidate(); |
| 50 return; | 56 return; |
| 51 } | 57 } |
| 52 | 58 |
| 53 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); | 59 SVGFilterPrimitiveStandardAttributes::svgAttributeChanged(attrName); |
| 54 } | 60 } |
| 55 | 61 |
| 56 PassRefPtr<FilterEffect> SVGFETileElement::build(SVGFilterBuilder* filterBuilder
, Filter* filter) | 62 PassRefPtrWillBeRawPtr<FilterEffect> SVGFETileElement::build(SVGFilterBuilder* f
ilterBuilder, Filter* filter) |
| 57 { | 63 { |
| 58 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr
entValue()->value())); | 64 FilterEffect* input1 = filterBuilder->getEffectById(AtomicString(m_in1->curr
entValue()->value())); |
| 59 | 65 |
| 60 if (!input1) | 66 if (!input1) |
| 61 return nullptr; | 67 return nullptr; |
| 62 | 68 |
| 63 RefPtr<FilterEffect> effect = FETile::create(filter); | 69 RefPtrWillBeRawPtr<FilterEffect> effect = FETile::create(filter); |
| 64 effect->inputEffects().append(input1); | 70 effect->inputEffects().append(input1); |
| 65 return effect.release(); | 71 return effect.release(); |
| 66 } | 72 } |
| 67 | 73 |
| 68 } | 74 } |
| OLD | NEW |