| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011, Google Inc. All rights reserved. | 2 * Copyright (c) 2011, 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 { | 459 { |
| 460 if (m_animationActive) | 460 if (m_animationActive) |
| 461 animationTimerFired(); | 461 animationTimerFired(); |
| 462 } | 462 } |
| 463 | 463 |
| 464 bool ScrollAnimatorNone::hasRunningAnimation() const | 464 bool ScrollAnimatorNone::hasRunningAnimation() const |
| 465 { | 465 { |
| 466 return m_animationActive; | 466 return m_animationActive; |
| 467 } | 467 } |
| 468 | 468 |
| 469 void ScrollAnimatorNone::contentsResized() |
| 470 { |
| 471 updateVisibleLengths(); |
| 472 } |
| 473 |
| 469 void ScrollAnimatorNone::willEndLiveResize() | 474 void ScrollAnimatorNone::willEndLiveResize() |
| 470 { | 475 { |
| 471 updateVisibleLengths(); | 476 updateVisibleLengths(); |
| 472 } | 477 } |
| 473 | 478 |
| 474 void ScrollAnimatorNone::didAddVerticalScrollbar(Scrollbar*) | 479 void ScrollAnimatorNone::didAddVerticalScrollbar(Scrollbar*) |
| 475 { | 480 { |
| 476 updateVisibleLengths(); | 481 updateVisibleLengths(); |
| 477 } | 482 } |
| 478 | 483 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 return m_animationActive; | 527 return m_animationActive; |
| 523 } | 528 } |
| 524 | 529 |
| 525 void ScrollAnimatorNone::stopAnimationTimerIfNeeded() | 530 void ScrollAnimatorNone::stopAnimationTimerIfNeeded() |
| 526 { | 531 { |
| 527 if (animationTimerActive()) | 532 if (animationTimerActive()) |
| 528 m_animationActive = false; | 533 m_animationActive = false; |
| 529 } | 534 } |
| 530 | 535 |
| 531 } // namespace blink | 536 } // namespace blink |
| OLD | NEW |