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

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

Issue 121173004: Make calls to AtomicString(const String&) explicit in svg/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Take feedback into consideration Created 6 years, 11 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
« no previous file with comments | « Source/core/svg/SVGPathElement.cpp ('k') | Source/core/svg/SVGScriptElement.cpp » ('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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 ASSERT_NOT_REACHED(); 133 ASSERT_NOT_REACHED();
134 } 134 }
135 135
136 void SVGPolyElement::synchronizePoints(SVGElement* contextElement) 136 void SVGPolyElement::synchronizePoints(SVGElement* contextElement)
137 { 137 {
138 ASSERT(contextElement); 138 ASSERT(contextElement);
139 SVGPolyElement* ownerType = toSVGPolyElement(contextElement); 139 SVGPolyElement* ownerType = toSVGPolyElement(contextElement);
140 if (!ownerType->m_points.shouldSynchronize) 140 if (!ownerType->m_points.shouldSynchronize)
141 return; 141 return;
142 ownerType->m_points.synchronize(ownerType, pointsPropertyInfo()->attributeNa me, ownerType->m_points.value.valueAsString()); 142 ownerType->m_points.synchronize(ownerType, pointsPropertyInfo()->attributeNa me, AtomicString(ownerType->m_points.value.valueAsString()));
143 } 143 }
144 144
145 PassRefPtr<SVGAnimatedProperty> SVGPolyElement::lookupOrCreatePointsWrapper(SVGE lement* contextElement) 145 PassRefPtr<SVGAnimatedProperty> SVGPolyElement::lookupOrCreatePointsWrapper(SVGE lement* contextElement)
146 { 146 {
147 ASSERT(contextElement); 147 ASSERT(contextElement);
148 SVGPolyElement* ownerType = toSVGPolyElement(contextElement); 148 SVGPolyElement* ownerType = toSVGPolyElement(contextElement);
149 return SVGAnimatedProperty::lookupOrCreateWrapper<SVGPolyElement, SVGAnimate dPointList, SVGPointList> 149 return SVGAnimatedProperty::lookupOrCreateWrapper<SVGPolyElement, SVGAnimate dPointList, SVGPointList>
150 (ownerType, pointsPropertyInfo(), ownerType->m_points.value); 150 (ownerType, pointsPropertyInfo(), ownerType->m_points.value);
151 } 151 }
152 152
153 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::points() 153 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::points()
154 { 154 {
155 m_points.shouldSynchronize = true; 155 m_points.shouldSynchronize = true;
156 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->baseVal()); 156 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->baseVal());
157 } 157 }
158 158
159 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::animatedPoints() 159 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::animatedPoints()
160 { 160 {
161 m_points.shouldSynchronize = true; 161 m_points.shouldSynchronize = true;
162 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->animVal()); 162 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->animVal());
163 } 163 }
164 164
165 } 165 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathElement.cpp ('k') | Source/core/svg/SVGScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698