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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 bool hasHorizontalOverflow() const; | 485 bool hasHorizontalOverflow() const; |
486 bool hasVerticalOverflow() const; | 486 bool hasVerticalOverflow() const; |
487 bool hasScrollableHorizontalOverflow() const; | 487 bool hasScrollableHorizontalOverflow() const; |
488 bool hasScrollableVerticalOverflow() const; | 488 bool hasScrollableVerticalOverflow() const; |
489 bool visualViewportSuppliesScrollbars() const; | 489 bool visualViewportSuppliesScrollbars() const; |
490 | 490 |
491 bool needsScrollbarReconstruction() const; | 491 bool needsScrollbarReconstruction() const; |
492 | 492 |
493 void updateScrollOrigin(); | 493 void updateScrollOrigin(); |
494 void updateScrollDimensions(); | 494 void updateScrollDimensions(); |
| 495 void updateScrollbarEnabledState(); |
495 | 496 |
496 void updateScrollOffset(const ScrollOffset&, ScrollType) override; | 497 void updateScrollOffset(const ScrollOffset&, ScrollType) override; |
497 | 498 |
498 int verticalScrollbarStart(int minX, int maxX) const; | 499 int verticalScrollbarStart(int minX, int maxX) const; |
499 int horizontalScrollbarStart(int minX) const; | 500 int horizontalScrollbarStart(int minX) const; |
500 IntSize scrollbarOffset(const Scrollbar&) const; | 501 IntSize scrollbarOffset(const Scrollbar&) const; |
501 | 502 |
502 enum ComputeScrollbarExistenceOption { Default, ForbidAddingAutoBars }; | 503 enum ComputeScrollbarExistenceOption { Default, ForbidAddingAutoBars }; |
503 void computeScrollbarExistence( | 504 void computeScrollbarExistence( |
504 bool& needsHorizontalScrollbar, | 505 bool& needsHorizontalScrollbar, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 | 585 |
585 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, | 586 DEFINE_TYPE_CASTS(PaintLayerScrollableArea, |
586 ScrollableArea, | 587 ScrollableArea, |
587 scrollableArea, | 588 scrollableArea, |
588 scrollableArea->isPaintLayerScrollableArea(), | 589 scrollableArea->isPaintLayerScrollableArea(), |
589 scrollableArea.isPaintLayerScrollableArea()); | 590 scrollableArea.isPaintLayerScrollableArea()); |
590 | 591 |
591 } // namespace blink | 592 } // namespace blink |
592 | 593 |
593 #endif // LayerScrollableArea_h | 594 #endif // LayerScrollableArea_h |
OLD | NEW |