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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 #include "config.h" | 22 #include "config.h" |
23 | 23 |
24 #include "core/svg/SVGClipPathElement.h" | 24 #include "core/svg/SVGClipPathElement.h" |
25 | 25 |
26 #include "core/rendering/svg/RenderSVGResourceClipper.h" | 26 #include "core/rendering/svg/RenderSVGResourceClipper.h" |
27 #include "core/svg/SVGElementInstance.h" | 27 #include "core/svg/SVGElementInstance.h" |
28 | 28 |
29 namespace WebCore { | 29 namespace WebCore { |
30 | 30 |
31 // Animated property definitions | |
32 | |
33 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGClipPathElement) | |
34 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) | |
35 END_REGISTER_ANIMATED_PROPERTIES | |
36 | |
37 inline SVGClipPathElement::SVGClipPathElement(Document& document) | 31 inline SVGClipPathElement::SVGClipPathElement(Document& document) |
38 : SVGGraphicsElement(SVGNames::clipPathTag, document) | 32 : SVGGraphicsElement(SVGNames::clipPathTag, document) |
39 , m_clipPathUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(
this, SVGNames::clipPathUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)) | 33 , m_clipPathUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(
this, SVGNames::clipPathUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)) |
40 { | 34 { |
41 ScriptWrappable::init(this); | 35 ScriptWrappable::init(this); |
42 addToPropertyMap(m_clipPathUnits); | 36 addToPropertyMap(m_clipPathUnits); |
43 } | 37 } |
44 | 38 |
45 PassRefPtr<SVGClipPathElement> SVGClipPathElement::create(Document& document) | 39 PassRefPtr<SVGClipPathElement> SVGClipPathElement::create(Document& document) |
46 { | 40 { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 if (RenderObject* object = renderer()) | 91 if (RenderObject* object = renderer()) |
98 object->setNeedsLayout(); | 92 object->setNeedsLayout(); |
99 } | 93 } |
100 | 94 |
101 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) | 95 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) |
102 { | 96 { |
103 return new RenderSVGResourceClipper(this); | 97 return new RenderSVGResourceClipper(this); |
104 } | 98 } |
105 | 99 |
106 } | 100 } |
OLD | NEW |