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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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
« no previous file with comments | « Source/core/svg/SVGTextPositioningElement.h ('k') | Source/core/svg/SVGTitleElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 29 matching lines...) Expand all
40 40
41 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextPositioningElement) 41 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextPositioningElement)
42 REGISTER_LOCAL_ANIMATED_PROPERTY(x) 42 REGISTER_LOCAL_ANIMATED_PROPERTY(x)
43 REGISTER_LOCAL_ANIMATED_PROPERTY(y) 43 REGISTER_LOCAL_ANIMATED_PROPERTY(y)
44 REGISTER_LOCAL_ANIMATED_PROPERTY(dx) 44 REGISTER_LOCAL_ANIMATED_PROPERTY(dx)
45 REGISTER_LOCAL_ANIMATED_PROPERTY(dy) 45 REGISTER_LOCAL_ANIMATED_PROPERTY(dy)
46 REGISTER_LOCAL_ANIMATED_PROPERTY(rotate) 46 REGISTER_LOCAL_ANIMATED_PROPERTY(rotate)
47 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextContentElement) 47 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextContentElement)
48 END_REGISTER_ANIMATED_PROPERTIES 48 END_REGISTER_ANIMATED_PROPERTIES
49 49
50 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam e, Document* document) 50 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam e, Document& document)
51 : SVGTextContentElement(tagName, document) 51 : SVGTextContentElement(tagName, document)
52 { 52 {
53 ScriptWrappable::init(this); 53 ScriptWrappable::init(this);
54 registerAnimatedPropertiesForSVGTextPositioningElement(); 54 registerAnimatedPropertiesForSVGTextPositioningElement();
55 } 55 }
56 56
57 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa me) 57 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa me)
58 { 58 {
59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
60 if (supportedAttributes.isEmpty()) { 60 if (supportedAttributes.isEmpty()) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 #if ENABLE(SVG_FONTS) 165 #if ENABLE(SVG_FONTS)
166 && !node->hasTagName(SVGNames::altGlyphTag) 166 && !node->hasTagName(SVGNames::altGlyphTag)
167 #endif 167 #endif
168 && !node->hasTagName(SVGNames::trefTag)) 168 && !node->hasTagName(SVGNames::trefTag))
169 return 0; 169 return 0;
170 170
171 return static_cast<SVGTextPositioningElement*>(node); 171 return static_cast<SVGTextPositioningElement*>(node);
172 } 172 }
173 173
174 } 174 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextPositioningElement.h ('k') | Source/core/svg/SVGTitleElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698