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