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

Unified Diff: Source/core/svg/properties/SVGAnimatedPropertyMacros.h

Issue 19097005: Remove one SVG animated type special case from the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix the regressions Created 7 years, 5 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/svg/properties/SVGAnimatedPropertyMacros.h
diff --git a/Source/core/svg/properties/SVGAnimatedPropertyMacros.h b/Source/core/svg/properties/SVGAnimatedPropertyMacros.h
index 4f4426335d6e6401ba7420aae0483df9c6309cc8..4d2d36e26935f724c86d2032f08932276bea8f62 100644
--- a/Source/core/svg/properties/SVGAnimatedPropertyMacros.h
+++ b/Source/core/svg/properties/SVGAnimatedPropertyMacros.h
@@ -106,7 +106,7 @@ const SVGPropertyInfo* OwnerType::LowerProperty##PropertyInfo() { \
&OwnerType::lookupOrCreate##UpperProperty##Wrapper)); \
return &s_propertyInfo; \
} \
-PropertyType& OwnerType::LowerProperty() const \
+PropertyType& OwnerType::LowerProperty##CurrentValue() const \
{ \
if (TearOffType* wrapper = SVGAnimatedProperty::lookupWrapper<UseOwnerType, TearOffType>(this, LowerProperty##PropertyInfo())) { \
if (wrapper->isAnimating()) \
@@ -126,7 +126,7 @@ void OwnerType::set##UpperProperty##BaseValue(const PropertyType& type, const bo
m_##LowerProperty.isValid = validValue; \
} \
\
-PassRefPtr<TearOffType> OwnerType::LowerProperty##Animated() \
+PassRefPtr<TearOffType> OwnerType::LowerProperty() \
{ \
m_##LowerProperty.shouldSynchronize = true; \
return static_pointer_cast<TearOffType>(lookupOrCreate##UpperProperty##Wrapper(this)); \
@@ -169,10 +169,10 @@ public: \
#define DECLARE_ANIMATED_PROPERTY(TearOffType, PropertyType, UpperProperty, LowerProperty) \
public: \
static const SVGPropertyInfo* LowerProperty##PropertyInfo(); \
- PropertyType& LowerProperty() const; \
+ PropertyType& LowerProperty##CurrentValue() const; \
PropertyType& LowerProperty##BaseValue() const; \
void set##UpperProperty##BaseValue(const PropertyType& type, const bool = true); \
- PassRefPtr<TearOffType> LowerProperty##Animated(); \
+ PassRefPtr<TearOffType> LowerProperty(); \
bool LowerProperty##IsValid() const; \
\
private: \
« Source/core/svg/SVGTextContentElement.h ('K') | « Source/core/svg/graphics/SVGImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698