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

Unified Diff: trunk/Source/core/svg/SVGStyledElement.cpp

Issue 18196004: Revert 153294 "Remove AtomicStringImpl." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: trunk/Source/core/svg/SVGStyledElement.cpp
===================================================================
--- trunk/Source/core/svg/SVGStyledElement.cpp (revision 153372)
+++ trunk/Source/core/svg/SVGStyledElement.cpp (working copy)
@@ -58,7 +58,7 @@
using namespace SVGNames;
-void mapAttributeToCSSProperty(HashMap<StringImpl*, CSSPropertyID>* propertyNameToIdMap, const QualifiedName& attrName)
+void mapAttributeToCSSProperty(HashMap<AtomicStringImpl*, CSSPropertyID>* propertyNameToIdMap, const QualifiedName& attrName)
{
// FIXME: when CSS supports "transform-origin" the special case for transform_originAttr can be removed.
CSSPropertyID propertyId = cssPropertyID(attrName.localName());
@@ -133,9 +133,9 @@
if (!attrName.namespaceURI().isNull())
return CSSPropertyInvalid;
- static HashMap<StringImpl*, CSSPropertyID>* propertyNameToIdMap = 0;
+ static HashMap<AtomicStringImpl*, CSSPropertyID>* propertyNameToIdMap = 0;
if (!propertyNameToIdMap) {
- propertyNameToIdMap = new HashMap<StringImpl*, CSSPropertyID>;
+ propertyNameToIdMap = new HashMap<AtomicStringImpl*, CSSPropertyID>;
// This is a list of all base CSS and SVG CSS properties which are exposed as SVG XML attributes
mapAttributeToCSSProperty(propertyNameToIdMap, alignment_baselineAttr);
mapAttributeToCSSProperty(propertyNameToIdMap, baseline_shiftAttr);
« no previous file with comments | « trunk/Source/core/svg/SVGStyledElement.h ('k') | trunk/Source/core/svg/properties/SVGAnimatedPropertyDescription.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698