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

Side by Side Diff: Source/core/svg/SVGPolyElement.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/SVGPolyElement.h ('k') | Source/core/svg/SVGPolygonElement.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, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Animated property definitions 49 // Animated property definitions
50 DEFINE_ANIMATED_BOOLEAN(SVGPolyElement, SVGNames::externalResourcesRequiredAttr, ExternalResourcesRequired, externalResourcesRequired) 50 DEFINE_ANIMATED_BOOLEAN(SVGPolyElement, SVGNames::externalResourcesRequiredAttr, ExternalResourcesRequired, externalResourcesRequired)
51 51
52 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGPolyElement) 52 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGPolyElement)
53 REGISTER_LOCAL_ANIMATED_PROPERTY(points) 53 REGISTER_LOCAL_ANIMATED_PROPERTY(points)
54 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) 54 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired)
55 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) 55 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement)
56 END_REGISTER_ANIMATED_PROPERTIES 56 END_REGISTER_ANIMATED_PROPERTIES
57 57
58 SVGPolyElement::SVGPolyElement(const QualifiedName& tagName, Document* document) 58 SVGPolyElement::SVGPolyElement(const QualifiedName& tagName, Document& document)
59 : SVGGraphicsElement(tagName, document) 59 : SVGGraphicsElement(tagName, document)
60 { 60 {
61 registerAnimatedPropertiesForSVGPolyElement(); 61 registerAnimatedPropertiesForSVGPolyElement();
62 } 62 }
63 63
64 bool SVGPolyElement::isSupportedAttribute(const QualifiedName& attrName) 64 bool SVGPolyElement::isSupportedAttribute(const QualifiedName& attrName)
65 { 65 {
66 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); 66 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
67 if (supportedAttributes.isEmpty()) { 67 if (supportedAttributes.isEmpty()) {
68 SVGLangSpace::addSupportedAttributes(supportedAttributes); 68 SVGLangSpace::addSupportedAttributes(supportedAttributes);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->baseVal()); 149 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->baseVal());
150 } 150 }
151 151
152 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::animatedPoints() 152 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::animatedPoints()
153 { 153 {
154 m_points.shouldSynchronize = true; 154 m_points.shouldSynchronize = true;
155 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->animVal()); 155 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->animVal());
156 } 156 }
157 157
158 } 158 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPolyElement.h ('k') | Source/core/svg/SVGPolygonElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698