OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
5 * | 5 * |
6 * Other contributors: | 6 * Other contributors: |
7 * Robert O'Callahan <roc+@cs.cmu.edu> | 7 * Robert O'Callahan <roc+@cs.cmu.edu> |
8 * David Baron <dbaron@fas.harvard.edu> | 8 * David Baron <dbaron@fas.harvard.edu> |
9 * Christian Biesinger <cbiesinger@web.de> | 9 * Christian Biesinger <cbiesinger@web.de> |
10 * Randall Jesup <rjesup@wgate.com> | 10 * Randall Jesup <rjesup@wgate.com> |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 bool hasHorizontalOverflow() const; | 483 bool hasHorizontalOverflow() const; |
484 bool hasVerticalOverflow() const; | 484 bool hasVerticalOverflow() const; |
485 bool hasScrollableHorizontalOverflow() const; | 485 bool hasScrollableHorizontalOverflow() const; |
486 bool hasScrollableVerticalOverflow() const; | 486 bool hasScrollableVerticalOverflow() const; |
487 bool visualViewportSuppliesScrollbars() const; | 487 bool visualViewportSuppliesScrollbars() const; |
488 | 488 |
489 bool needsScrollbarReconstruction() const; | 489 bool needsScrollbarReconstruction() const; |
490 | 490 |
491 void updateScrollOrigin(); | 491 void updateScrollOrigin(); |
492 void updateScrollDimensions(); | 492 void updateScrollDimensions(); |
| 493 void updateScrollbarEnabledState(); |
493 | 494 |
494 void updateScrollOffset(const ScrollOffset&, ScrollType) override; | 495 void updateScrollOffset(const ScrollOffset&, ScrollType) override; |
495 | 496 |
496 int verticalScrollbarStart(int minX, int maxX) const; | 497 int verticalScrollbarStart(int minX, int maxX) const; |
497 int horizontalScrollbarStart(int minX) const; | 498 int horizontalScrollbarStart(int minX) const; |
498 IntSize scrollbarOffset(const Scrollbar&) const; | 499 IntSize scrollbarOffset(const Scrollbar&) const; |
499 | 500 |
500 enum ComputeScrollbarExistenceOption { Default, ForbidAddingAutoBars }; | 501 enum ComputeScrollbarExistenceOption { Default, ForbidAddingAutoBars }; |
501 void computeScrollbarExistence( | 502 void computeScrollbarExistence( |
502 bool& needsHorizontalScrollbar, | 503 bool& needsHorizontalScrollbar, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 | 583 |
583 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, | 584 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, |
584 ScrollableArea, | 585 ScrollableArea, |
585 scrollableArea, | 586 scrollableArea, |
586 scrollableArea->isPaintLayerScrollableArea(), | 587 scrollableArea->isPaintLayerScrollableArea(), |
587 scrollableArea.isPaintLayerScrollableArea()); | 588 scrollableArea.isPaintLayerScrollableArea()); |
588 | 589 |
589 } // namespace blink | 590 } // namespace blink |
590 | 591 |
591 #endif // LayerScrollableArea_h | 592 #endif // LayerScrollableArea_h |
OLD | NEW |