Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: Source/core/svg/SVGAltGlyphElement.cpp

Issue 169103002: Drop [LegacyImplementedInBaseClass] from SVGURIReference IDL interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
36 namespace WebCore { 36 namespace WebCore {
37 37
38 // Animated property definitions 38 // Animated property definitions
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 , m_href(SVGAnimatedString::create(this, XLinkNames::hrefAttr, SVGString::cr eate())) 46 , SVGURIReference(this)
47 { 47 {
48 ScriptWrappable::init(this); 48 ScriptWrappable::init(this);
49 addToPropertyMap(m_href);
50 registerAnimatedPropertiesForSVGAltGlyphElement(); 49 registerAnimatedPropertiesForSVGAltGlyphElement();
51 } 50 }
52 51
53 PassRefPtr<SVGAltGlyphElement> SVGAltGlyphElement::create(Document& document) 52 PassRefPtr<SVGAltGlyphElement> SVGAltGlyphElement::create(Document& document)
54 { 53 {
55 return adoptRef(new SVGAltGlyphElement(document)); 54 return adoptRef(new SVGAltGlyphElement(document));
56 } 55 }
57 56
58 void SVGAltGlyphElement::setGlyphRef(const AtomicString&, ExceptionState& except ionState) 57 void SVGAltGlyphElement::setGlyphRef(const AtomicString&, ExceptionState& except ionState)
59 { 58 {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 if (element->hasTagName(SVGNames::altGlyphDefTag) 94 if (element->hasTagName(SVGNames::altGlyphDefTag)
96 && toSVGAltGlyphDefElement(element)->hasValidGlyphElements(glyphNames)) 95 && toSVGAltGlyphDefElement(element)->hasValidGlyphElements(glyphNames))
97 return true; 96 return true;
98 97
99 return false; 98 return false;
100 } 99 }
101 100
102 } 101 }
103 102
104 #endif 103 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698