OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> | 3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> |
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 return entries; | 48 return entries; |
49 } | 49 } |
50 | 50 |
51 inline SVGTextPathElement::SVGTextPathElement(Document& document) | 51 inline SVGTextPathElement::SVGTextPathElement(Document& document) |
52 : SVGTextContentElement(SVGNames::textPathTag, document) | 52 : SVGTextContentElement(SVGNames::textPathTag, document) |
53 , SVGURIReference(this) | 53 , SVGURIReference(this) |
54 , m_startOffset(SVGAnimatedLength::create(this, SVGNames::startOffsetAttr, S
VGLength::create(LengthModeOther), AllowNegativeLengths)) | 54 , m_startOffset(SVGAnimatedLength::create(this, SVGNames::startOffsetAttr, S
VGLength::create(LengthModeOther), AllowNegativeLengths)) |
55 , m_method(SVGAnimatedEnumeration<SVGTextPathMethodType>::create(this, SVGNa
mes::methodAttr, SVGTextPathMethodAlign)) | 55 , m_method(SVGAnimatedEnumeration<SVGTextPathMethodType>::create(this, SVGNa
mes::methodAttr, SVGTextPathMethodAlign)) |
56 , m_spacing(SVGAnimatedEnumeration<SVGTextPathSpacingType>::create(this, SVG
Names::spacingAttr, SVGTextPathSpacingExact)) | 56 , m_spacing(SVGAnimatedEnumeration<SVGTextPathSpacingType>::create(this, SVG
Names::spacingAttr, SVGTextPathSpacingExact)) |
57 { | 57 { |
58 ScriptWrappable::init(this); | |
59 | |
60 addToPropertyMap(m_startOffset); | 58 addToPropertyMap(m_startOffset); |
61 addToPropertyMap(m_method); | 59 addToPropertyMap(m_method); |
62 addToPropertyMap(m_spacing); | 60 addToPropertyMap(m_spacing); |
63 } | 61 } |
64 | 62 |
65 DEFINE_NODE_FACTORY(SVGTextPathElement) | 63 DEFINE_NODE_FACTORY(SVGTextPathElement) |
66 | 64 |
67 SVGTextPathElement::~SVGTextPathElement() | 65 SVGTextPathElement::~SVGTextPathElement() |
68 { | 66 { |
69 #if !ENABLE(OILPAN) | 67 #if !ENABLE(OILPAN) |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 if (rootParent->inDocument()) | 176 if (rootParent->inDocument()) |
179 clearResourceReferences(); | 177 clearResourceReferences(); |
180 } | 178 } |
181 | 179 |
182 bool SVGTextPathElement::selfHasRelativeLengths() const | 180 bool SVGTextPathElement::selfHasRelativeLengths() const |
183 { | 181 { |
184 return m_startOffset->currentValue()->isRelative() | 182 return m_startOffset->currentValue()->isRelative() |
185 || SVGTextContentElement::selfHasRelativeLengths(); | 183 || SVGTextContentElement::selfHasRelativeLengths(); |
186 } | 184 } |
187 | 185 |
188 } | 186 } // namespace blink |
OLD | NEW |