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

Side by Side Diff: Source/core/svg/SVGViewSpec.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/SVGUseElement.cpp ('k') | Source/core/svg/animation/SVGSMILElement.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) 2007, 2010 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007, 2010 Rob Buis <buis@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 String SVGViewSpec::preserveAspectRatioString() const 133 String SVGViewSpec::preserveAspectRatioString() const
134 { 134 {
135 return SVGPropertyTraits<SVGPreserveAspectRatio>::toString(preserveAspectRat ioBaseValue()); 135 return SVGPropertyTraits<SVGPreserveAspectRatio>::toString(preserveAspectRat ioBaseValue());
136 } 136 }
137 137
138 SVGElement* SVGViewSpec::viewTarget() const 138 SVGElement* SVGViewSpec::viewTarget() const
139 { 139 {
140 if (!m_contextElement) 140 if (!m_contextElement)
141 return 0; 141 return 0;
142 Element* element = m_contextElement.get()->treeScope().getElementById(m_view TargetString); 142 Element* element = m_contextElement.get()->treeScope().getElementById(Atomic String(m_viewTargetString));
143 if (!element || !element->isSVGElement()) 143 if (!element || !element->isSVGElement())
144 return 0; 144 return 0;
145 return toSVGElement(element); 145 return toSVGElement(element);
146 } 146 }
147 147
148 SVGTransformListPropertyTearOff* SVGViewSpec::transform() 148 SVGTransformListPropertyTearOff* SVGViewSpec::transform()
149 { 149 {
150 if (!m_contextElement) 150 if (!m_contextElement)
151 return 0; 151 return 0;
152 // Return the animVal here, as its readonly by default - which is exactly wh at we want here. 152 // Return the animVal here, as its readonly by default - which is exactly wh at we want here.
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 const LChar* ptr = spec.characters8(); 294 const LChar* ptr = spec.characters8();
295 const LChar* end = ptr + spec.length(); 295 const LChar* end = ptr + spec.length();
296 return parseViewSpecInternal(ptr, end); 296 return parseViewSpecInternal(ptr, end);
297 } 297 }
298 const UChar* ptr = spec.characters16(); 298 const UChar* ptr = spec.characters16();
299 const UChar* end = ptr + spec.length(); 299 const UChar* end = ptr + spec.length();
300 return parseViewSpecInternal(ptr, end); 300 return parseViewSpecInternal(ptr, end);
301 } 301 }
302 302
303 } 303 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGUseElement.cpp ('k') | Source/core/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698