| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGClipPathElement) | 33 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGClipPathElement) |
| 34 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) | 34 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) |
| 35 END_REGISTER_ANIMATED_PROPERTIES | 35 END_REGISTER_ANIMATED_PROPERTIES |
| 36 | 36 |
| 37 inline SVGClipPathElement::SVGClipPathElement(Document& document) | 37 inline SVGClipPathElement::SVGClipPathElement(Document& document) |
| 38 : SVGGraphicsElement(SVGNames::clipPathTag, document) | 38 : SVGGraphicsElement(SVGNames::clipPathTag, document) |
| 39 , m_clipPathUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(
this, SVGNames::clipPathUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)) | 39 , m_clipPathUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(
this, SVGNames::clipPathUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)) |
| 40 { | 40 { |
| 41 ScriptWrappable::init(this); | 41 ScriptWrappable::init(this); |
| 42 addToPropertyMap(m_clipPathUnits); | 42 addToPropertyMap(m_clipPathUnits); |
| 43 registerAnimatedPropertiesForSVGClipPathElement(); | |
| 44 } | 43 } |
| 45 | 44 |
| 46 PassRefPtr<SVGClipPathElement> SVGClipPathElement::create(Document& document) | 45 PassRefPtr<SVGClipPathElement> SVGClipPathElement::create(Document& document) |
| 47 { | 46 { |
| 48 return adoptRef(new SVGClipPathElement(document)); | 47 return adoptRef(new SVGClipPathElement(document)); |
| 49 } | 48 } |
| 50 | 49 |
| 51 bool SVGClipPathElement::isSupportedAttribute(const QualifiedName& attrName) | 50 bool SVGClipPathElement::isSupportedAttribute(const QualifiedName& attrName) |
| 52 { | 51 { |
| 53 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 52 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 if (RenderObject* object = renderer()) | 97 if (RenderObject* object = renderer()) |
| 99 object->setNeedsLayout(); | 98 object->setNeedsLayout(); |
| 100 } | 99 } |
| 101 | 100 |
| 102 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) | 101 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) |
| 103 { | 102 { |
| 104 return new RenderSVGResourceClipper(this); | 103 return new RenderSVGResourceClipper(this); |
| 105 } | 104 } |
| 106 | 105 |
| 107 } | 106 } |
| OLD | NEW |