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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 inline SVGGlyphRefElement::SVGGlyphRefElement(Document& document) | 37 inline SVGGlyphRefElement::SVGGlyphRefElement(Document& document) |
38 : SVGElement(SVGNames::glyphRefTag, document) | 38 : SVGElement(SVGNames::glyphRefTag, document) |
39 , SVGURIReference(this) | 39 , SVGURIReference(this) |
40 , m_x(0) | 40 , m_x(0) |
41 , m_y(0) | 41 , m_y(0) |
42 , m_dx(0) | 42 , m_dx(0) |
43 , m_dy(0) | 43 , m_dy(0) |
44 { | 44 { |
45 ScriptWrappable::init(this); | 45 ScriptWrappable::init(this); |
46 registerAnimatedPropertiesForSVGGlyphRefElement(); | |
47 } | 46 } |
48 | 47 |
49 PassRefPtr<SVGGlyphRefElement> SVGGlyphRefElement::create(Document& document) | 48 PassRefPtr<SVGGlyphRefElement> SVGGlyphRefElement::create(Document& document) |
50 { | 49 { |
51 return adoptRef(new SVGGlyphRefElement(document)); | 50 return adoptRef(new SVGGlyphRefElement(document)); |
52 } | 51 } |
53 | 52 |
54 bool SVGGlyphRefElement::hasValidGlyphElement(AtomicString& glyphName) const | 53 bool SVGGlyphRefElement::hasValidGlyphElement(AtomicString& glyphName) const |
55 { | 54 { |
56 // FIXME: We only support xlink:href so far. | 55 // FIXME: We only support xlink:href so far. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 void SVGGlyphRefElement::setDy(float dy) | 126 void SVGGlyphRefElement::setDy(float dy) |
128 { | 127 { |
129 // FIXME: Honor attribute change. | 128 // FIXME: Honor attribute change. |
130 // https://bugs.webkit.org/show_bug.cgi?id=64787 | 129 // https://bugs.webkit.org/show_bug.cgi?id=64787 |
131 m_dy = dy; | 130 m_dy = dy; |
132 } | 131 } |
133 | 132 |
134 } | 133 } |
135 | 134 |
136 #endif | 135 #endif |
OLD | NEW |