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

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

Issue 871013005: Notify ProgrammaticScrollAnimator about scroll layer destruction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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/platform/scroll/ScrollableArea.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) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. 3 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 bool ScrollableArea::hasLayerForVerticalScrollbar() const 413 bool ScrollableArea::hasLayerForVerticalScrollbar() const
414 { 414 {
415 return layerForVerticalScrollbar(); 415 return layerForVerticalScrollbar();
416 } 416 }
417 417
418 bool ScrollableArea::hasLayerForScrollCorner() const 418 bool ScrollableArea::hasLayerForScrollCorner() const
419 { 419 {
420 return layerForScrollCorner(); 420 return layerForScrollCorner();
421 } 421 }
422 422
423 void ScrollableArea::layerForScrollingDidChange()
424 {
425 if (ProgrammaticScrollAnimator* programmaticScrollAnimator = existingProgram maticScrollAnimator())
426 programmaticScrollAnimator->layerForCompositedScrollingDidChange();
427 }
428
423 bool ScrollableArea::scheduleAnimation() 429 bool ScrollableArea::scheduleAnimation()
424 { 430 {
425 if (HostWindow* window = hostWindow()) { 431 if (HostWindow* window = hostWindow()) {
426 window->scheduleAnimation(); 432 window->scheduleAnimation();
427 return true; 433 return true;
428 } 434 }
429 return false; 435 return false;
430 } 436 }
431 437
432 void ScrollableArea::serviceScrollAnimations(double monotonicTime) 438 void ScrollableArea::serviceScrollAnimations(double monotonicTime)
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 { 511 {
506 return scrollSize(orientation); 512 return scrollSize(orientation);
507 } 513 }
508 514
509 float ScrollableArea::pixelStep(ScrollbarOrientation) const 515 float ScrollableArea::pixelStep(ScrollbarOrientation) const
510 { 516 {
511 return 1; 517 return 1;
512 } 518 }
513 519
514 } // namespace blink 520 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/scroll/ScrollableArea.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698