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

Side by Side Diff: Source/core/svg/SVGTextPositioningElement.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
« no previous file with comments | « Source/core/svg/SVGTextPathElement.cpp ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList:: create(LengthModeHeight))) 45 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList:: create(LengthModeHeight)))
46 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb erList::create())) 46 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb erList::create()))
47 { 47 {
48 ScriptWrappable::init(this); 48 ScriptWrappable::init(this);
49 49
50 addToPropertyMap(m_x); 50 addToPropertyMap(m_x);
51 addToPropertyMap(m_y); 51 addToPropertyMap(m_y);
52 addToPropertyMap(m_dx); 52 addToPropertyMap(m_dx);
53 addToPropertyMap(m_dy); 53 addToPropertyMap(m_dy);
54 addToPropertyMap(m_rotate); 54 addToPropertyMap(m_rotate);
55 registerAnimatedPropertiesForSVGTextPositioningElement();
56 } 55 }
57 56
58 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa me) 57 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa me)
59 { 58 {
60 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
61 if (supportedAttributes.isEmpty()) { 60 if (supportedAttributes.isEmpty()) {
62 supportedAttributes.add(SVGNames::xAttr); 61 supportedAttributes.add(SVGNames::xAttr);
63 supportedAttributes.add(SVGNames::yAttr); 62 supportedAttributes.add(SVGNames::yAttr);
64 supportedAttributes.add(SVGNames::dxAttr); 63 supportedAttributes.add(SVGNames::dxAttr);
65 supportedAttributes.add(SVGNames::dyAttr); 64 supportedAttributes.add(SVGNames::dyAttr);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 #if ENABLE(SVG_FONTS) 139 #if ENABLE(SVG_FONTS)
141 && !node->hasTagName(SVGNames::altGlyphTag) 140 && !node->hasTagName(SVGNames::altGlyphTag)
142 #endif 141 #endif
143 && !node->hasTagName(SVGNames::tspanTag)) 142 && !node->hasTagName(SVGNames::tspanTag))
144 return 0; 143 return 0;
145 144
146 return toSVGTextPositioningElement(node); 145 return toSVGTextPositioningElement(node);
147 } 146 }
148 147
149 } 148 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextPathElement.cpp ('k') | Source/core/svg/SVGUseElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698