| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 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 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #include "core/SVGNames.h" | 25 #include "core/SVGNames.h" |
| 26 #include "core/layout/svg/LayoutSVGText.h" | 26 #include "core/layout/svg/LayoutSVGText.h" |
| 27 #include "core/svg/SVGLengthList.h" | 27 #include "core/svg/SVGLengthList.h" |
| 28 #include "core/svg/SVGNumberList.h" | 28 #include "core/svg/SVGNumberList.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam
e, Document& document) | 32 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam
e, Document& document) |
| 33 : SVGTextContentElement(tagName, document) | 33 : SVGTextContentElement(tagName, document) |
| 34 , m_x(SVGAnimatedLengthList::create(this, SVGNames::xAttr, SVGLengthList::cr
eate(LengthModeWidth))) | 34 , m_x(SVGAnimatedLengthList::create(this, SVGNames::xAttr, SVGLengthList::cr
eate(SVGLengthMode::Width))) |
| 35 , m_y(SVGAnimatedLengthList::create(this, SVGNames::yAttr, SVGLengthList::cr
eate(LengthModeHeight))) | 35 , m_y(SVGAnimatedLengthList::create(this, SVGNames::yAttr, SVGLengthList::cr
eate(SVGLengthMode::Height))) |
| 36 , m_dx(SVGAnimatedLengthList::create(this, SVGNames::dxAttr, SVGLengthList::
create(LengthModeWidth))) | 36 , m_dx(SVGAnimatedLengthList::create(this, SVGNames::dxAttr, SVGLengthList::
create(SVGLengthMode::Width))) |
| 37 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList::
create(LengthModeHeight))) | 37 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList::
create(SVGLengthMode::Height))) |
| 38 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb
erList::create())) | 38 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb
erList::create())) |
| 39 { | 39 { |
| 40 addToPropertyMap(m_x); | 40 addToPropertyMap(m_x); |
| 41 addToPropertyMap(m_y); | 41 addToPropertyMap(m_y); |
| 42 addToPropertyMap(m_dx); | 42 addToPropertyMap(m_dx); |
| 43 addToPropertyMap(m_dy); | 43 addToPropertyMap(m_dy); |
| 44 addToPropertyMap(m_rotate); | 44 addToPropertyMap(m_rotate); |
| 45 } | 45 } |
| 46 | 46 |
| 47 DEFINE_TRACE(SVGTextPositioningElement) | 47 DEFINE_TRACE(SVGTextPositioningElement) |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 return 0; | 106 return 0; |
| 107 | 107 |
| 108 Node* node = renderer.node(); | 108 Node* node = renderer.node(); |
| 109 ASSERT(node); | 109 ASSERT(node); |
| 110 ASSERT(node->isSVGElement()); | 110 ASSERT(node->isSVGElement()); |
| 111 | 111 |
| 112 return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node
) : 0; | 112 return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node
) : 0; |
| 113 } | 113 } |
| 114 | 114 |
| 115 } | 115 } |
| OLD | NEW |