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

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

Issue 327633004: Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/SVGTextElement.cpp ('k') | Source/core/svg/SVGTextPathElement.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) 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Forward declare enumerations in the W3C naming scheme, for IDL generation . 47 // Forward declare enumerations in the W3C naming scheme, for IDL generation .
48 enum { 48 enum {
49 TEXTPATH_METHODTYPE_UNKNOWN = SVGTextPathMethodUnknown, 49 TEXTPATH_METHODTYPE_UNKNOWN = SVGTextPathMethodUnknown,
50 TEXTPATH_METHODTYPE_ALIGN = SVGTextPathMethodAlign, 50 TEXTPATH_METHODTYPE_ALIGN = SVGTextPathMethodAlign,
51 TEXTPATH_METHODTYPE_STRETCH = SVGTextPathMethodStretch, 51 TEXTPATH_METHODTYPE_STRETCH = SVGTextPathMethodStretch,
52 TEXTPATH_SPACINGTYPE_UNKNOWN = SVGTextPathSpacingUnknown, 52 TEXTPATH_SPACINGTYPE_UNKNOWN = SVGTextPathSpacingUnknown,
53 TEXTPATH_SPACINGTYPE_AUTO = SVGTextPathSpacingAuto, 53 TEXTPATH_SPACINGTYPE_AUTO = SVGTextPathSpacingAuto,
54 TEXTPATH_SPACINGTYPE_EXACT = SVGTextPathSpacingExact 54 TEXTPATH_SPACINGTYPE_EXACT = SVGTextPathSpacingExact
55 }; 55 };
56 56
57 DEFINE_NODE_FACTORY(SVGTextPathElement); 57 DECLARE_NODE_FACTORY(SVGTextPathElement);
58 58
59 SVGAnimatedLength* startOffset() const { return m_startOffset.get(); } 59 SVGAnimatedLength* startOffset() const { return m_startOffset.get(); }
60 SVGAnimatedEnumeration<SVGTextPathMethodType>* method() { return m_method.ge t(); } 60 SVGAnimatedEnumeration<SVGTextPathMethodType>* method() { return m_method.ge t(); }
61 SVGAnimatedEnumeration<SVGTextPathSpacingType>* spacing() { return m_spacing .get(); } 61 SVGAnimatedEnumeration<SVGTextPathSpacingType>* spacing() { return m_spacing .get(); }
62 62
63 private: 63 private:
64 explicit SVGTextPathElement(Document&); 64 explicit SVGTextPathElement(Document&);
65 65
66 virtual ~SVGTextPathElement(); 66 virtual ~SVGTextPathElement();
67 67
(...skipping 13 matching lines...) Expand all
81 virtual bool selfHasRelativeLengths() const OVERRIDE; 81 virtual bool selfHasRelativeLengths() const OVERRIDE;
82 82
83 RefPtr<SVGAnimatedLength> m_startOffset; 83 RefPtr<SVGAnimatedLength> m_startOffset;
84 RefPtr<SVGAnimatedEnumeration<SVGTextPathMethodType> > m_method; 84 RefPtr<SVGAnimatedEnumeration<SVGTextPathMethodType> > m_method;
85 RefPtr<SVGAnimatedEnumeration<SVGTextPathSpacingType> > m_spacing; 85 RefPtr<SVGAnimatedEnumeration<SVGTextPathSpacingType> > m_spacing;
86 }; 86 };
87 87
88 } // namespace WebCore 88 } // namespace WebCore
89 89
90 #endif 90 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextElement.cpp ('k') | Source/core/svg/SVGTextPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698