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 13 matching lines...) Expand all Loading... |
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 | 27 |
28 namespace blink { | 28 namespace blink { |
29 | 29 |
30 inline SVGClipPathElement::SVGClipPathElement(Document& document) | 30 inline SVGClipPathElement::SVGClipPathElement(Document& document) |
31 : SVGGraphicsElement(SVGNames::clipPathTag, document) | 31 : SVGGraphicsElement(SVGNames::clipPathTag, document) |
32 , m_clipPathUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(
this, SVGNames::clipPathUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)) | 32 , m_clipPathUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(
this, SVGNames::clipPathUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)) |
33 { | 33 { |
34 ScriptWrappable::init(this); | |
35 addToPropertyMap(m_clipPathUnits); | 34 addToPropertyMap(m_clipPathUnits); |
36 } | 35 } |
37 | 36 |
38 DEFINE_NODE_FACTORY(SVGClipPathElement) | 37 DEFINE_NODE_FACTORY(SVGClipPathElement) |
39 | 38 |
40 void SVGClipPathElement::parseAttribute(const QualifiedName& name, const AtomicS
tring& value) | 39 void SVGClipPathElement::parseAttribute(const QualifiedName& name, const AtomicS
tring& value) |
41 { | 40 { |
42 parseAttributeNew(name, value); | 41 parseAttributeNew(name, value); |
43 } | 42 } |
44 | 43 |
(...skipping 21 matching lines...) Expand all Loading... |
66 if (RenderObject* object = renderer()) | 65 if (RenderObject* object = renderer()) |
67 object->setNeedsLayoutAndFullPaintInvalidation(); | 66 object->setNeedsLayoutAndFullPaintInvalidation(); |
68 } | 67 } |
69 | 68 |
70 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) | 69 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) |
71 { | 70 { |
72 return new RenderSVGResourceClipper(this); | 71 return new RenderSVGResourceClipper(this); |
73 } | 72 } |
74 | 73 |
75 } | 74 } |
OLD | NEW |