|
Lines 55-61
AnimationControllerPrivate::AnimationControllerPrivate(Frame* frame)
a/WebCore/page/animation/AnimationController.cpp_sec1
|
| 55 |
, m_lastStyleAvailableWaiter(0) |
55 |
, m_lastStyleAvailableWaiter(0) |
| 56 |
, m_responseWaiters(0) |
56 |
, m_responseWaiters(0) |
| 57 |
, m_lastResponseWaiter(0) |
57 |
, m_lastResponseWaiter(0) |
| 58 |
, m_waitingForAResponse(false) |
58 |
, m_waitingForResponse(false) |
| 59 |
{ |
59 |
{ |
| 60 |
} |
60 |
} |
| 61 |
|
61 |
|
|
Lines 279-284
double AnimationControllerPrivate::beginAnimationUpdateTime()
a/WebCore/page/animation/AnimationController.cpp_sec2
|
| 279 |
return m_beginAnimationUpdateTime; |
279 |
return m_beginAnimationUpdateTime; |
| 280 |
} |
280 |
} |
| 281 |
|
281 |
|
|
|
282 |
void AnimationControllerPrivate::endAnimationUpdate() |
| 283 |
{ |
| 284 |
styleAvailable(); |
| 285 |
if (!m_waitingForResponse) |
| 286 |
startTimeResponse(beginAnimationUpdateTime()); |
| 287 |
} |
| 288 |
|
| 289 |
void AnimationControllerPrivate::receivedStartTimeResponse(double time) |
| 290 |
{ |
| 291 |
m_waitingForResponse = false; |
| 292 |
startTimeResponse(time); |
| 293 |
} |
| 294 |
|
| 282 |
PassRefPtr<RenderStyle> AnimationControllerPrivate::getAnimatedStyleForRenderer(RenderObject* renderer) |
295 |
PassRefPtr<RenderStyle> AnimationControllerPrivate::getAnimatedStyleForRenderer(RenderObject* renderer) |
| 283 |
{ |
296 |
{ |
| 284 |
if (!renderer) |
297 |
if (!renderer) |
|
Lines 378-384
void AnimationControllerPrivate::addToStartTimeResponseWaitList(AnimationBase* a
a/WebCore/page/animation/AnimationController.cpp_sec3
|
| 378 |
ASSERT(!animation->next()); |
391 |
ASSERT(!animation->next()); |
| 379 |
|
392 |
|
| 380 |
if (willGetResponse) |
393 |
if (willGetResponse) |
| 381 |
m_waitingForAResponse = true; |
394 |
m_waitingForResponse = true; |
| 382 |
|
395 |
|
| 383 |
if (m_responseWaiters) |
396 |
if (m_responseWaiters) |
| 384 |
m_lastResponseWaiter->setNext(animation); |
397 |
m_lastResponseWaiter->setNext(animation); |
|
Lines 408-420
void AnimationControllerPrivate::removeFromStartTimeResponseWaitList(AnimationBa
a/WebCore/page/animation/AnimationController.cpp_sec4
|
| 408 |
} |
421 |
} |
| 409 |
} |
422 |
} |
| 410 |
|
423 |
|
| 411 |
void AnimationControllerPrivate::startTimeResponse(double t) |
424 |
void AnimationControllerPrivate::startTimeResponse(double time) |
| 412 |
{ |
425 |
{ |
| 413 |
// Go through list of waiters and send them on their way |
426 |
// Go through list of waiters and send them on their way |
| 414 |
for (AnimationBase* animation = m_responseWaiters; animation; ) { |
427 |
for (AnimationBase* animation = m_responseWaiters; animation; ) { |
| 415 |
AnimationBase* nextAnimation = animation->next(); |
428 |
AnimationBase* nextAnimation = animation->next(); |
| 416 |
animation->setNext(0); |
429 |
animation->setNext(0); |
| 417 |
animation->onAnimationStartResponse(t); |
430 |
animation->onAnimationStartResponse(time); |
| 418 |
animation = nextAnimation; |
431 |
animation = nextAnimation; |
| 419 |
} |
432 |
} |
| 420 |
|
433 |
|