Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: Source/core/svg/SVGTextPathElement.cpp

Issue 177803003: [SVG] Make all C-macros used in the old property implementation NOOP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: styles Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 , SVGURIReference(this) 62 , SVGURIReference(this)
63 , m_startOffset(SVGAnimatedLength::create(this, SVGNames::startOffsetAttr, S VGLength::create(LengthModeOther))) 63 , m_startOffset(SVGAnimatedLength::create(this, SVGNames::startOffsetAttr, S VGLength::create(LengthModeOther)))
64 , m_method(SVGAnimatedEnumeration<SVGTextPathMethodType>::create(this, SVGNa mes::methodAttr, SVGTextPathMethodAlign)) 64 , m_method(SVGAnimatedEnumeration<SVGTextPathMethodType>::create(this, SVGNa mes::methodAttr, SVGTextPathMethodAlign))
65 , m_spacing(SVGAnimatedEnumeration<SVGTextPathSpacingType>::create(this, SVG Names::spacingAttr, SVGTextPathSpacingExact)) 65 , m_spacing(SVGAnimatedEnumeration<SVGTextPathSpacingType>::create(this, SVG Names::spacingAttr, SVGTextPathSpacingExact))
66 { 66 {
67 ScriptWrappable::init(this); 67 ScriptWrappable::init(this);
68 68
69 addToPropertyMap(m_startOffset); 69 addToPropertyMap(m_startOffset);
70 addToPropertyMap(m_method); 70 addToPropertyMap(m_method);
71 addToPropertyMap(m_spacing); 71 addToPropertyMap(m_spacing);
72 registerAnimatedPropertiesForSVGTextPathElement();
73 } 72 }
74 73
75 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(Document& document) 74 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(Document& document)
76 { 75 {
77 return adoptRef(new SVGTextPathElement(document)); 76 return adoptRef(new SVGTextPathElement(document));
78 } 77 }
79 78
80 SVGTextPathElement::~SVGTextPathElement() 79 SVGTextPathElement::~SVGTextPathElement()
81 { 80 {
82 clearResourceReferences(); 81 clearResourceReferences();
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 clearResourceReferences(); 191 clearResourceReferences();
193 } 192 }
194 193
195 bool SVGTextPathElement::selfHasRelativeLengths() const 194 bool SVGTextPathElement::selfHasRelativeLengths() const
196 { 195 {
197 return m_startOffset->currentValue()->isRelative() 196 return m_startOffset->currentValue()->isRelative()
198 || SVGTextContentElement::selfHasRelativeLengths(); 197 || SVGTextContentElement::selfHasRelativeLengths();
199 } 198 }
200 199
201 } 200 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextContentElement.cpp ('k') | Source/core/svg/SVGTextPositioningElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698