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

Unified Diff: Source/core/svg/SVGAnimatedAngle.cpp

Issue 566373002: Use ConstructFromLiteral instead of implicit conversion (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Two more fixes Created 6 years, 3 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/html/shadow/MediaControls.cpp ('k') | Source/core/svg/SVGFontFaceUriElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimatedAngle.cpp
diff --git a/Source/core/svg/SVGAnimatedAngle.cpp b/Source/core/svg/SVGAnimatedAngle.cpp
index d074a7d30eebb2ab869d2d1c817ef9b9e4493953..dd338ddad944daa12c8896ab58e17d6b0b4e9dfe 100644
--- a/Source/core/svg/SVGAnimatedAngle.cpp
+++ b/Source/core/svg/SVGAnimatedAngle.cpp
@@ -49,9 +49,10 @@ SVGAnimatedAngle::~SVGAnimatedAngle()
void SVGAnimatedAngle::synchronizeAttribute()
{
+ DEFINE_STATIC_LOCAL(const AtomicString, autoValue, ("auto", AtomicString::ConstructFromLiteral));
AtomicString value;
if (m_orientType->currentValue()->enumValue() == SVGMarkerOrientAuto)
- value = "auto";
+ value = autoValue;
else
value = AtomicString(currentValue()->valueAsString());
« no previous file with comments | « Source/core/html/shadow/MediaControls.cpp ('k') | Source/core/svg/SVGFontFaceUriElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698