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

Side by Side Diff: Source/core/svg/SVGAnimateMotionElement.cpp

Issue 150103007: Use fastGetAttribute in more places (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add more instances Created 6 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 return; 120 return;
121 } 121 }
122 122
123 ASSERT_NOT_REACHED(); 123 ASSERT_NOT_REACHED();
124 } 124 }
125 125
126 SVGAnimateMotionElement::RotateMode SVGAnimateMotionElement::rotateMode() const 126 SVGAnimateMotionElement::RotateMode SVGAnimateMotionElement::rotateMode() const
127 { 127 {
128 DEFINE_STATIC_LOCAL(const AtomicString, autoVal, ("auto", AtomicString::Cons tructFromLiteral)); 128 DEFINE_STATIC_LOCAL(const AtomicString, autoVal, ("auto", AtomicString::Cons tructFromLiteral));
129 DEFINE_STATIC_LOCAL(const AtomicString, autoReverse, ("auto-reverse", Atomic String::ConstructFromLiteral)); 129 DEFINE_STATIC_LOCAL(const AtomicString, autoReverse, ("auto-reverse", Atomic String::ConstructFromLiteral));
130 const AtomicString& rotate = getAttribute(SVGNames::rotateAttr); 130 const AtomicString& rotate = fastGetAttribute(SVGNames::rotateAttr);
131 if (rotate == autoVal) 131 if (rotate == autoVal)
132 return RotateAuto; 132 return RotateAuto;
133 if (rotate == autoReverse) 133 if (rotate == autoReverse)
134 return RotateAutoReverse; 134 return RotateAutoReverse;
135 return RotateAngle; 135 return RotateAngle;
136 } 136 }
137 137
138 void SVGAnimateMotionElement::updateAnimationPath() 138 void SVGAnimateMotionElement::updateAnimationPath()
139 { 139 {
140 m_animationPath = Path(); 140 m_animationPath = Path();
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 345
346 void SVGAnimateMotionElement::updateAnimationMode() 346 void SVGAnimateMotionElement::updateAnimationMode()
347 { 347 {
348 if (!m_animationPath.isEmpty()) 348 if (!m_animationPath.isEmpty())
349 setAnimationMode(PathAnimation); 349 setAnimationMode(PathAnimation);
350 else 350 else
351 SVGAnimationElement::updateAnimationMode(); 351 SVGAnimationElement::updateAnimationMode();
352 } 352 }
353 353
354 } 354 }
OLDNEW
« Source/core/html/HTMLImageElement.cpp ('K') | « Source/core/html/HTMLTableSectionElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698