| 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 24 matching lines...) Expand all Loading... |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 // Animated property definitions | 37 // Animated property definitions |
| 38 DEFINE_ANIMATED_STRING(SVGAltGlyphElement, XLinkNames::hrefAttr, Href, href) | 38 DEFINE_ANIMATED_STRING(SVGAltGlyphElement, XLinkNames::hrefAttr, Href, href) |
| 39 | 39 |
| 40 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAltGlyphElement) | 40 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAltGlyphElement) |
| 41 REGISTER_LOCAL_ANIMATED_PROPERTY(href) | 41 REGISTER_LOCAL_ANIMATED_PROPERTY(href) |
| 42 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextPositioningElement) | 42 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextPositioningElement) |
| 43 END_REGISTER_ANIMATED_PROPERTIES | 43 END_REGISTER_ANIMATED_PROPERTIES |
| 44 | 44 |
| 45 inline SVGAltGlyphElement::SVGAltGlyphElement(const QualifiedName& tagName, Docu
ment& document) | 45 inline SVGAltGlyphElement::SVGAltGlyphElement(Document& document) |
| 46 : SVGTextPositioningElement(tagName, document) | 46 : SVGTextPositioningElement(SVGNames::altGlyphTag, document) |
| 47 { | 47 { |
| 48 ASSERT(hasTagName(SVGNames::altGlyphTag)); | |
| 49 ScriptWrappable::init(this); | 48 ScriptWrappable::init(this); |
| 50 registerAnimatedPropertiesForSVGAltGlyphElement(); | 49 registerAnimatedPropertiesForSVGAltGlyphElement(); |
| 51 } | 50 } |
| 52 | 51 |
| 53 PassRefPtr<SVGAltGlyphElement> SVGAltGlyphElement::create(const QualifiedName& t
agName, Document& document) | 52 PassRefPtr<SVGAltGlyphElement> SVGAltGlyphElement::create(Document& document) |
| 54 { | 53 { |
| 55 return adoptRef(new SVGAltGlyphElement(tagName, document)); | 54 return adoptRef(new SVGAltGlyphElement(document)); |
| 56 } | 55 } |
| 57 | 56 |
| 58 void SVGAltGlyphElement::setGlyphRef(const AtomicString&, ExceptionState& es) | 57 void SVGAltGlyphElement::setGlyphRef(const AtomicString&, ExceptionState& es) |
| 59 { | 58 { |
| 60 es.throwUninformativeAndGenericDOMException(NoModificationAllowedError); | 59 es.throwUninformativeAndGenericDOMException(NoModificationAllowedError); |
| 61 } | 60 } |
| 62 | 61 |
| 63 const AtomicString& SVGAltGlyphElement::glyphRef() const | 62 const AtomicString& SVGAltGlyphElement::glyphRef() const |
| 64 { | 63 { |
| 65 return fastGetAttribute(SVGNames::glyphRefAttr); | 64 return fastGetAttribute(SVGNames::glyphRefAttr); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 if (element->hasTagName(SVGNames::altGlyphDefTag) | 101 if (element->hasTagName(SVGNames::altGlyphDefTag) |
| 103 && static_cast<SVGAltGlyphDefElement*>(element)->hasValidGlyphElements(g
lyphNames)) | 102 && static_cast<SVGAltGlyphDefElement*>(element)->hasValidGlyphElements(g
lyphNames)) |
| 104 return true; | 103 return true; |
| 105 | 104 |
| 106 return false; | 105 return false; |
| 107 } | 106 } |
| 108 | 107 |
| 109 } | 108 } |
| 110 | 109 |
| 111 #endif | 110 #endif |
| OLD | NEW |