| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAltGlyphElement) | 40 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAltGlyphElement) |
| 41 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextPositioningElement) | 41 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextPositioningElement) |
| 42 END_REGISTER_ANIMATED_PROPERTIES | 42 END_REGISTER_ANIMATED_PROPERTIES |
| 43 | 43 |
| 44 inline SVGAltGlyphElement::SVGAltGlyphElement(Document& document) | 44 inline SVGAltGlyphElement::SVGAltGlyphElement(Document& document) |
| 45 : SVGTextPositioningElement(SVGNames::altGlyphTag, document) | 45 : SVGTextPositioningElement(SVGNames::altGlyphTag, document) |
| 46 , SVGURIReference(this) | 46 , SVGURIReference(this) |
| 47 { | 47 { |
| 48 ScriptWrappable::init(this); | 48 ScriptWrappable::init(this); |
| 49 registerAnimatedPropertiesForSVGAltGlyphElement(); | |
| 50 } | 49 } |
| 51 | 50 |
| 52 PassRefPtr<SVGAltGlyphElement> SVGAltGlyphElement::create(Document& document) | 51 PassRefPtr<SVGAltGlyphElement> SVGAltGlyphElement::create(Document& document) |
| 53 { | 52 { |
| 54 return adoptRef(new SVGAltGlyphElement(document)); | 53 return adoptRef(new SVGAltGlyphElement(document)); |
| 55 } | 54 } |
| 56 | 55 |
| 57 void SVGAltGlyphElement::setGlyphRef(const AtomicString&, ExceptionState& except
ionState) | 56 void SVGAltGlyphElement::setGlyphRef(const AtomicString&, ExceptionState& except
ionState) |
| 58 { | 57 { |
| 59 exceptionState.throwDOMException(NoModificationAllowedError, ExceptionMessag
es::readOnly()); | 58 exceptionState.throwDOMException(NoModificationAllowedError, ExceptionMessag
es::readOnly()); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 if (element->hasTagName(SVGNames::altGlyphDefTag) | 93 if (element->hasTagName(SVGNames::altGlyphDefTag) |
| 95 && toSVGAltGlyphDefElement(element)->hasValidGlyphElements(glyphNames)) | 94 && toSVGAltGlyphDefElement(element)->hasValidGlyphElements(glyphNames)) |
| 96 return true; | 95 return true; |
| 97 | 96 |
| 98 return false; | 97 return false; |
| 99 } | 98 } |
| 100 | 99 |
| 101 } | 100 } |
| 102 | 101 |
| 103 #endif | 102 #endif |
| OLD | NEW |