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

Side by Side Diff: Source/platform/scroll/ScrollAnimatorNone.cpp

Issue 905463007: Update ScrollAnimator's copy of the layer dimensions after layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: contentsResized -> updateAfterLayout Created 5 years, 10 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
« no previous file with comments | « Source/platform/scroll/ScrollAnimatorNone.h ('k') | no next file » | 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) 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
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::updateAfterLayout()
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
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
OLDNEW
« no previous file with comments | « Source/platform/scroll/ScrollAnimatorNone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698