X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Fanimation%2Fcss%2FCSSAnimations.h;h=2f36dfbf0b813870676f12ab89c20343b97b06bd;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=fc6afb7ce22fa75bb010ca8671f62fafc80a3023;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/animation/css/CSSAnimations.h b/src/third_party/WebKit/Source/core/animation/css/CSSAnimations.h index fc6afb7..2f36dfb 100644 --- a/src/third_party/WebKit/Source/core/animation/css/CSSAnimations.h +++ b/src/third_party/WebKit/Source/core/animation/css/CSSAnimations.h @@ -73,10 +73,11 @@ public: m_animationsWithPauseToggled.append(name); } - void startTransition(CSSPropertyID id, const AnimatableValue* from, const AnimatableValue* to, PassRefPtr animation) + void startTransition(CSSPropertyID id, CSSPropertyID eventId, const AnimatableValue* from, const AnimatableValue* to, PassRefPtr animation) { NewTransition newTransition; newTransition.id = id; + newTransition.eventId = eventId; newTransition.from = from; newTransition.to = to; newTransition.animation = animation; @@ -104,6 +105,7 @@ public: } CSSPropertyID id; + CSSPropertyID eventId; RawPtrWillBeMember from; RawPtrWillBeMember to; RefPtr animation; @@ -150,7 +152,10 @@ private: }; class CSSAnimations FINAL : public NoBaseWillBeGarbageCollectedFinalized { + WTF_MAKE_NONCOPYABLE(CSSAnimations); public: + CSSAnimations(); + // FIXME: This method is only used here and in the legacy animations // implementation. It should be made private or file-scope when the legacy // engine is removed. @@ -158,6 +163,7 @@ public: static bool isAnimatableProperty(CSSPropertyID); static const StylePropertyShorthand& animatableProperties(); + static bool isAllowedAnimation(CSSPropertyID); // FIXME: This should take a const ScopedStyleTree instead of a StyleResolver. // We should also change the Element* to a const Element* static PassOwnPtrWillBeRawPtr calculateUpdate(Element*, const Element& parentElement, const RenderStyle&, RenderStyle* parentStyle, StyleResolver*); @@ -179,7 +185,7 @@ private: visitor->trace(to); } - Animation* transition; // The TransitionTimeline keeps the AnimationPlayers alive + RefPtr player; RawPtrWillBeMember from; RawPtrWillBeMember to; }; @@ -206,13 +212,17 @@ private: AnimationEventDelegate(Element* target, const AtomicString& name) : m_target(target) , m_name(name) + , m_previousPhase(TimedItem::PhaseNone) + , m_previousIteration(nullValue()) { } - virtual void onEventCondition(const TimedItem*, bool isFirstSample, TimedItem::Phase previousPhase, double previousIteration) OVERRIDE; + virtual void onEventCondition(const TimedItem*) OVERRIDE; private: void maybeDispatch(Document::ListenerType, const AtomicString& eventName, double elapsedTime); Element* m_target; const AtomicString m_name; + TimedItem::Phase m_previousPhase; + double m_previousIteration; }; class TransitionEventDelegate FINAL : public TimedItem::EventDelegate { @@ -220,12 +230,14 @@ private: TransitionEventDelegate(Element* target, CSSPropertyID property) : m_target(target) , m_property(property) + , m_previousPhase(TimedItem::PhaseNone) { } - virtual void onEventCondition(const TimedItem*, bool isFirstSample, TimedItem::Phase previousPhase, double previousIteration) OVERRIDE; + virtual void onEventCondition(const TimedItem*) OVERRIDE; private: Element* m_target; const CSSPropertyID m_property; + TimedItem::Phase m_previousPhase; }; };