OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |