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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp

Issue 1743863002: Rename enums/functions that collide in chromium style in core/svg,xml (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-10: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp b/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
index 0b303c02585fd5be58f2ba987c2adc289af1eb7a..94177cd0394e4a464f10fbcd56e2ffad65b64f96 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp
@@ -106,7 +106,7 @@ void SVGAnimateElement::calculateAnimatedValue(float percentage, unsigned repeat
if (isSVGSetElement(*this))
percentage = 1;
- if (calcMode() == CalcModeDiscrete)
+ if (getCalcMode() == CalcModeDiscrete)
percentage = percentage < 0.5 ? 0 : 1;
// Target element might have changed.
@@ -142,11 +142,11 @@ bool SVGAnimateElement::calculateFromAndByValues(const String& fromString, const
if (!targetElement)
return false;
- if (animationMode() == ByAnimation && !isAdditive())
+ if (getAnimationMode() == ByAnimation && !isAdditive())
return false;
// from-by animation may only be used with attributes that support addition (e.g. most numeric attributes).
- if (animationMode() == FromByAnimation && !animatedPropertyTypeSupportsAddition())
+ if (getAnimationMode() == FromByAnimation && !animatedPropertyTypeSupportsAddition())
return false;
ASSERT(!isSVGSetElement(*this));
@@ -366,7 +366,7 @@ bool SVGAnimateElement::animatedPropertyTypeSupportsAddition()
bool SVGAnimateElement::isAdditive()
{
- if (animationMode() == ByAnimation || animationMode() == FromByAnimation) {
+ if (getAnimationMode() == ByAnimation || getAnimationMode() == FromByAnimation) {
if (!animatedPropertyTypeSupportsAddition())
return false;
}
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAngle.cpp ('k') | third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698