| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | 43 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) |
| 44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement) | 44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement) |
| 45 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests) | 45 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests) |
| 46 END_REGISTER_ANIMATED_PROPERTIES | 46 END_REGISTER_ANIMATED_PROPERTIES |
| 47 | 47 |
| 48 inline SVGClipPathElement::SVGClipPathElement(const QualifiedName& tagName, Docu
ment* document) | 48 inline SVGClipPathElement::SVGClipPathElement(const QualifiedName& tagName, Docu
ment* document) |
| 49 : SVGStyledTransformableElement(tagName, document) | 49 : SVGStyledTransformableElement(tagName, document) |
| 50 , m_clipPathUnits(SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE) | 50 , m_clipPathUnits(SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE) |
| 51 { | 51 { |
| 52 ASSERT(hasTagName(SVGNames::clipPathTag)); | 52 ASSERT(hasTagName(SVGNames::clipPathTag)); |
| 53 ScriptWrappable::init(this); |
| 53 registerAnimatedPropertiesForSVGClipPathElement(); | 54 registerAnimatedPropertiesForSVGClipPathElement(); |
| 54 } | 55 } |
| 55 | 56 |
| 56 PassRefPtr<SVGClipPathElement> SVGClipPathElement::create(const QualifiedName& t
agName, Document* document) | 57 PassRefPtr<SVGClipPathElement> SVGClipPathElement::create(const QualifiedName& t
agName, Document* document) |
| 57 { | 58 { |
| 58 return adoptRef(new SVGClipPathElement(tagName, document)); | 59 return adoptRef(new SVGClipPathElement(tagName, document)); |
| 59 } | 60 } |
| 60 | 61 |
| 61 bool SVGClipPathElement::isSupportedAttribute(const QualifiedName& attrName) | 62 bool SVGClipPathElement::isSupportedAttribute(const QualifiedName& attrName) |
| 62 { | 63 { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 } | 120 } |
| 120 | 121 |
| 121 RenderObject* SVGClipPathElement::createRenderer(RenderArena* arena, RenderStyle
*) | 122 RenderObject* SVGClipPathElement::createRenderer(RenderArena* arena, RenderStyle
*) |
| 122 { | 123 { |
| 123 return new (arena) RenderSVGResourceClipper(this); | 124 return new (arena) RenderSVGResourceClipper(this); |
| 124 } | 125 } |
| 125 | 126 |
| 126 } | 127 } |
| 127 | 128 |
| 128 #endif // ENABLE(SVG) | 129 #endif // ENABLE(SVG) |
| OLD | NEW |