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

Unified Diff: Source/core/rendering/svg/SVGPathData.cpp

Issue 332773002: Clean up SVGNames usage in core/rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 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: Source/core/rendering/svg/SVGPathData.cpp
diff --git a/Source/core/rendering/svg/SVGPathData.cpp b/Source/core/rendering/svg/SVGPathData.cpp
index b35768ddb6f53337c6f6fe6a0ee92e289d727814..7043f725212aa75a6262e9a811a4c9a5c7de053d 100644
--- a/Source/core/rendering/svg/SVGPathData.cpp
+++ b/Source/core/rendering/svg/SVGPathData.cpp
@@ -34,6 +34,8 @@
namespace WebCore {
+using namespace SVGNames;
+
static void updatePathFromCircleElement(SVGElement* element, Path& path)
{
SVGCircleElement* circle = toSVGCircleElement(element);
@@ -138,13 +140,13 @@ void updatePathFromGraphicsElement(SVGElement* element, Path& path)
static HashMap<StringImpl*, PathUpdateFunction>* map = 0;
if (!map) {
map = new HashMap<StringImpl*, PathUpdateFunction>;
- map->set(SVGNames::circleTag.localName().impl(), updatePathFromCircleElement);
- map->set(SVGNames::ellipseTag.localName().impl(), updatePathFromEllipseElement);
- map->set(SVGNames::lineTag.localName().impl(), updatePathFromLineElement);
- map->set(SVGNames::pathTag.localName().impl(), updatePathFromPathElement);
- map->set(SVGNames::polygonTag.localName().impl(), updatePathFromPolygonElement);
- map->set(SVGNames::polylineTag.localName().impl(), updatePathFromPolylineElement);
- map->set(SVGNames::rectTag.localName().impl(), updatePathFromRectElement);
+ map->set(circleTag.localName().impl(), updatePathFromCircleElement);
+ map->set(ellipseTag.localName().impl(), updatePathFromEllipseElement);
+ map->set(lineTag.localName().impl(), updatePathFromLineElement);
+ map->set(pathTag.localName().impl(), updatePathFromPathElement);
+ map->set(polygonTag.localName().impl(), updatePathFromPolygonElement);
+ map->set(polylineTag.localName().impl(), updatePathFromPolylineElement);
+ map->set(rectTag.localName().impl(), updatePathFromRectElement);
}
if (PathUpdateFunction pathUpdateFunction = map->get(element->localName().impl()))
« no previous file with comments | « Source/core/rendering/svg/RenderSVGViewportContainer.cpp ('k') | Source/core/rendering/svg/SVGRenderTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698