| 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 12 matching lines...) Expand all Loading... |
| 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 | 31 // Animated property definitions |
| 32 | 32 |
| 33 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGClipPathElement) | |
| 34 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) | |
| 35 END_REGISTER_ANIMATED_PROPERTIES | |
| 36 | 33 |
| 37 inline SVGClipPathElement::SVGClipPathElement(Document& document) | 34 inline SVGClipPathElement::SVGClipPathElement(Document& document) |
| 38 : SVGGraphicsElement(SVGNames::clipPathTag, document) | 35 : SVGGraphicsElement(SVGNames::clipPathTag, document) |
| 39 , m_clipPathUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(
this, SVGNames::clipPathUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)) | 36 , m_clipPathUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create(
this, SVGNames::clipPathUnitsAttr, SVGUnitTypes::SVG_UNIT_TYPE_USERSPACEONUSE)) |
| 40 { | 37 { |
| 41 ScriptWrappable::init(this); | 38 ScriptWrappable::init(this); |
| 42 addToPropertyMap(m_clipPathUnits); | 39 addToPropertyMap(m_clipPathUnits); |
| 43 } | 40 } |
| 44 | 41 |
| 45 PassRefPtr<SVGClipPathElement> SVGClipPathElement::create(Document& document) | 42 PassRefPtr<SVGClipPathElement> SVGClipPathElement::create(Document& document) |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 if (RenderObject* object = renderer()) | 94 if (RenderObject* object = renderer()) |
| 98 object->setNeedsLayout(); | 95 object->setNeedsLayout(); |
| 99 } | 96 } |
| 100 | 97 |
| 101 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) | 98 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) |
| 102 { | 99 { |
| 103 return new RenderSVGResourceClipper(this); | 100 return new RenderSVGResourceClipper(this); |
| 104 } | 101 } |
| 105 | 102 |
| 106 } | 103 } |
| OLD | NEW |