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

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

Issue 148173018: [SVG] SVGAnimatedString{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove debug print Created 6 years, 10 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/SVGForeignObjectElement.cpp ('k') | Source/core/svg/SVGGlyphRefElement.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) 2011 Leo Yang <leoyang@webkit.org> 2 * Copyright (C) 2011 Leo Yang <leoyang@webkit.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 28 matching lines...) Expand all
39 const AtomicString& glyphRef() const; 39 const AtomicString& glyphRef() const;
40 void setGlyphRef(const AtomicString&); 40 void setGlyphRef(const AtomicString&);
41 float x() const { return m_x; } 41 float x() const { return m_x; }
42 void setX(float); 42 void setX(float);
43 float y() const { return m_y; } 43 float y() const { return m_y; }
44 void setY(float); 44 void setY(float);
45 float dx() const { return m_dx; } 45 float dx() const { return m_dx; }
46 void setDx(float); 46 void setDx(float);
47 float dy() const { return m_dy; } 47 float dy() const { return m_dy; }
48 void setDy(float); 48 void setDy(float);
49 SVGAnimatedString* href() { return m_href.get(); }
49 50
50 private: 51 private:
51 explicit SVGGlyphRefElement(Document&); 52 explicit SVGGlyphRefElement(Document&);
52 53
53 template<typename CharType> 54 template<typename CharType>
54 void parseAttributeInternal(const QualifiedName&, const AtomicString&); 55 void parseAttributeInternal(const QualifiedName&, const AtomicString&);
55 56
56 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } 57 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
57 58
59 RefPtr<SVGAnimatedString> m_href;
58 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGlyphRefElement) 60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGlyphRefElement)
59 DECLARE_ANIMATED_STRING(Href, href)
60 END_DECLARE_ANIMATED_PROPERTIES 61 END_DECLARE_ANIMATED_PROPERTIES
61 62
62 float m_x; 63 float m_x;
63 float m_y; 64 float m_y;
64 float m_dx; 65 float m_dx;
65 float m_dy; 66 float m_dy;
66 }; 67 };
67 68
68 DEFINE_NODE_TYPE_CASTS(SVGGlyphRefElement, hasTagName(SVGNames::glyphRefTag)); 69 DEFINE_NODE_TYPE_CASTS(SVGGlyphRefElement, hasTagName(SVGNames::glyphRefTag));
69 70
70 } 71 }
71 72
72 #endif 73 #endif
73 #endif 74 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGForeignObjectElement.cpp ('k') | Source/core/svg/SVGGlyphRefElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698