Changeset 155119 in webkit for trunk/Source/WebCore/css/DeprecatedStyleBuilder.cpp
- Timestamp:
- Sep 5, 2013, 8:15:59 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/DeprecatedStyleBuilder.cpp
r154887 r155119 1636 1636 class ApplyPropertyAnimation { 1637 1637 public: 1638 static void setValue(Animation * animation, T value) { (animation->*setterFunction)(value); }1639 static T value(const Animation * animation) { return (animation->*getterFunction)(); }1640 static bool test(const Animation * animation) { return (animation->*testFunction)(); }1641 static void clear(Animation * animation) { (animation->*clearFunction)(); }1638 static void setValue(Animation& animation, T value) { (animation.*setterFunction)(value); } 1639 static T value(const Animation& animation) { return (animation.*getterFunction)(); } 1640 static bool test(const Animation& animation) { return (animation.*testFunction)(); } 1641 static void clear(Animation& animation) { (animation.*clearFunction)(); } 1642 1642 static T initial() { return (*initialFunction)(); } 1643 static void map(StyleResolver* styleResolver, Animation * animation, CSSValue* value) { (styleResolver->styleMap()->*mapFunction)(animation, value); }1643 static void map(StyleResolver* styleResolver, Animation& animation, CSSValue* value) { (styleResolver->styleMap()->*mapFunction)(&animation, value); } 1644 1644 static AnimationList* accessAnimations(RenderStyle* style) { return (style->*animationGetterFunction)(); } 1645 1645 static const AnimationList* animations(RenderStyle* style) { return (style->*immutableAnimationGetterFunction)(); } … … 1654 1654 list->append(Animation::create()); 1655 1655 setValue(list->animation(i), value(parentList->animation(i))); 1656 list->animation(i) ->setAnimationMode(parentList->animation(i)->animationMode());1656 list->animation(i).setAnimationMode(parentList->animation(i).animationMode()); 1657 1657 } 1658 1658 … … 1669 1669 setValue(list->animation(0), initial()); 1670 1670 if (propertyID == CSSPropertyWebkitTransitionProperty) 1671 list->animation(0) ->setAnimationMode(Animation::AnimateAll);1671 list->animation(0).setAnimationMode(Animation::AnimateAll); 1672 1672 for (size_t i = 1; i < list->size(); ++i) 1673 1673 clear(list->animation(i));
Note:
See TracChangeset
for help on using the changeset viewer.