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

Side by Side Diff: Source/core/animation/css/CSSAnimations.h

Issue 23039013: Web Animations: Fix elpasedTime in animation events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed elapsedTime for negative delay and added a test Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/animation/TimedItemTest.cpp ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 private: 80 private:
81 typedef HashMap<StringImpl*, RefPtr<Player> > AnimationMap; 81 typedef HashMap<StringImpl*, RefPtr<Player> > AnimationMap;
82 AnimationMap m_animations; 82 AnimationMap m_animations;
83 class EventDelegate FINAL : public TimedItem::EventDelegate { 83 class EventDelegate FINAL : public TimedItem::EventDelegate {
84 public: 84 public:
85 EventDelegate(Element* target, const AtomicString& name) 85 EventDelegate(Element* target, const AtomicString& name)
86 : m_target(target) 86 : m_target(target)
87 , m_name(name) 87 , m_name(name)
88 { 88 {
89 } 89 }
90 virtual void onEventCondition(bool isFirstSample, TimedItem::Phase previ ousPhase, TimedItem::Phase currentPhase, double previousIteration, double curren tIteration) OVERRIDE; 90 virtual void onEventCondition(const TimedItem*, bool isFirstSample, Time dItem::Phase previousPhase, double previousIteration) OVERRIDE;
91 private: 91 private:
92 void maybeDispatch(Document::ListenerType, AtomicString& eventName, doub le elapsedTime); 92 void maybeDispatch(Document::ListenerType, AtomicString& eventName, doub le elapsedTime);
93 Element* m_target; 93 Element* m_target;
94 const AtomicString m_name; 94 const AtomicString m_name;
95 }; 95 };
96 }; 96 };
97 97
98 } // namespace WebCore 98 } // namespace WebCore
99 99
100 #endif 100 #endif
OLDNEW
« no previous file with comments | « Source/core/animation/TimedItemTest.cpp ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698