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

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

Issue 203723007: Store marker identifiers as AtomicString (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « Source/core/rendering/style/SVGRenderStyleDefs.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGResources.cpp
diff --git a/Source/core/rendering/svg/SVGResources.cpp b/Source/core/rendering/svg/SVGResources.cpp
index f59ad854bb75e8a014276dfaed8e044e4a491694..afc99eea6fe38c3aac2e1f6d503820cdd58d28b2 100644
--- a/Source/core/rendering/svg/SVGResources.cpp
+++ b/Source/core/rendering/svg/SVGResources.cpp
@@ -251,16 +251,16 @@ PassOwnPtr<SVGResources> SVGResources::buildResources(const RenderObject* object
}
if (markerTags().contains(tagName) && style->hasMarkers()) {
- AtomicString markerStartId(style->markerStartResource());
+ const AtomicString& markerStartId = style->markerStartResource();
if (!ensureResources(resources)->setMarkerStart(getRenderSVGResourceById<RenderSVGResourceMarker>(document, markerStartId)))
registerPendingResource(extensions, markerStartId, element);
- AtomicString markerMidId(style->markerMidResource());
+ const AtomicString& markerMidId = style->markerMidResource();
if (!ensureResources(resources)->setMarkerMid(getRenderSVGResourceById<RenderSVGResourceMarker>(document, markerMidId)))
registerPendingResource(extensions, markerMidId, element);
- AtomicString markerEndId(style->markerEndResource());
- if (!ensureResources(resources)->setMarkerEnd(getRenderSVGResourceById<RenderSVGResourceMarker>(document, markerEndId)))
+ const AtomicString& markerEndId = style->markerEndResource();
+ if (!ensureResources(resources)->setMarkerEnd(getRenderSVGResourceById<RenderSVGResourceMarker>(document, style->markerEndResource())))
registerPendingResource(extensions, markerEndId, element);
}
« no previous file with comments | « Source/core/rendering/style/SVGRenderStyleDefs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698