OLD | NEW |
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 Loading... |
39 END_REGISTER_ANIMATED_PROPERTIES | 39 END_REGISTER_ANIMATED_PROPERTIES |
40 | 40 |
41 inline SVGGlyphRefElement::SVGGlyphRefElement(const QualifiedName& tagName, Docu
ment* document) | 41 inline SVGGlyphRefElement::SVGGlyphRefElement(const QualifiedName& tagName, Docu
ment* document) |
42 : SVGStyledElement(tagName, document) | 42 : SVGStyledElement(tagName, document) |
43 , m_x(0) | 43 , m_x(0) |
44 , m_y(0) | 44 , m_y(0) |
45 , m_dx(0) | 45 , m_dx(0) |
46 , m_dy(0) | 46 , m_dy(0) |
47 { | 47 { |
48 ASSERT(hasTagName(SVGNames::glyphRefTag)); | 48 ASSERT(hasTagName(SVGNames::glyphRefTag)); |
| 49 ScriptWrappable::init(this); |
49 registerAnimatedPropertiesForSVGGlyphRefElement(); | 50 registerAnimatedPropertiesForSVGGlyphRefElement(); |
50 } | 51 } |
51 | 52 |
52 PassRefPtr<SVGGlyphRefElement> SVGGlyphRefElement::create(const QualifiedName& t
agName, Document* document) | 53 PassRefPtr<SVGGlyphRefElement> SVGGlyphRefElement::create(const QualifiedName& t
agName, Document* document) |
53 { | 54 { |
54 return adoptRef(new SVGGlyphRefElement(tagName, document)); | 55 return adoptRef(new SVGGlyphRefElement(tagName, document)); |
55 } | 56 } |
56 | 57 |
57 bool SVGGlyphRefElement::hasValidGlyphElement(String& glyphName) const | 58 bool SVGGlyphRefElement::hasValidGlyphElement(String& glyphName) const |
58 { | 59 { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 void SVGGlyphRefElement::setDy(float dy, ExceptionCode&) | 121 void SVGGlyphRefElement::setDy(float dy, ExceptionCode&) |
121 { | 122 { |
122 // FIXME: Honor attribute change. | 123 // FIXME: Honor attribute change. |
123 // https://bugs.webkit.org/show_bug.cgi?id=64787 | 124 // https://bugs.webkit.org/show_bug.cgi?id=64787 |
124 m_dy = dy; | 125 m_dy = dy; |
125 } | 126 } |
126 | 127 |
127 } | 128 } |
128 | 129 |
129 #endif | 130 #endif |
OLD | NEW |