OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 30 matching lines...) Expand all Loading... |
41 | 41 |
42 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAltGlyphElement) | 42 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAltGlyphElement) |
43 REGISTER_LOCAL_ANIMATED_PROPERTY(href) | 43 REGISTER_LOCAL_ANIMATED_PROPERTY(href) |
44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextPositioningElement) | 44 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextPositioningElement) |
45 END_REGISTER_ANIMATED_PROPERTIES | 45 END_REGISTER_ANIMATED_PROPERTIES |
46 | 46 |
47 inline SVGAltGlyphElement::SVGAltGlyphElement(const QualifiedName& tagName, Docu
ment* document) | 47 inline SVGAltGlyphElement::SVGAltGlyphElement(const QualifiedName& tagName, Docu
ment* document) |
48 : SVGTextPositioningElement(tagName, document) | 48 : SVGTextPositioningElement(tagName, document) |
49 { | 49 { |
50 ASSERT(hasTagName(SVGNames::altGlyphTag)); | 50 ASSERT(hasTagName(SVGNames::altGlyphTag)); |
| 51 ScriptWrappable::init(this); |
51 registerAnimatedPropertiesForSVGAltGlyphElement(); | 52 registerAnimatedPropertiesForSVGAltGlyphElement(); |
52 } | 53 } |
53 | 54 |
54 PassRefPtr<SVGAltGlyphElement> SVGAltGlyphElement::create(const QualifiedName& t
agName, Document* document) | 55 PassRefPtr<SVGAltGlyphElement> SVGAltGlyphElement::create(const QualifiedName& t
agName, Document* document) |
55 { | 56 { |
56 return adoptRef(new SVGAltGlyphElement(tagName, document)); | 57 return adoptRef(new SVGAltGlyphElement(tagName, document)); |
57 } | 58 } |
58 | 59 |
59 void SVGAltGlyphElement::setGlyphRef(const AtomicString&, ExceptionCode& ec) | 60 void SVGAltGlyphElement::setGlyphRef(const AtomicString&, ExceptionCode& ec) |
60 { | 61 { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 if (element->hasTagName(SVGNames::altGlyphDefTag) | 104 if (element->hasTagName(SVGNames::altGlyphDefTag) |
104 && static_cast<SVGAltGlyphDefElement*>(element)->hasValidGlyphElements(g
lyphNames)) | 105 && static_cast<SVGAltGlyphDefElement*>(element)->hasValidGlyphElements(g
lyphNames)) |
105 return true; | 106 return true; |
106 | 107 |
107 return false; | 108 return false; |
108 } | 109 } |
109 | 110 |
110 } | 111 } |
111 | 112 |
112 #endif // ENABLE(SVG) | 113 #endif // ENABLE(SVG) |
OLD | NEW |