OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights |
3 * reserved. | 3 * reserved. |
4 * | 4 * |
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
6 * | 6 * |
7 * Other contributors: | 7 * Other contributors: |
8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
10 * Christian Biesinger <cbiesinger@gmail.com> | 10 * Christian Biesinger <cbiesinger@gmail.com> |
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 } | 559 } |
560 | 560 |
561 int PaintLayerScrollableArea::visibleWidth() const { | 561 int PaintLayerScrollableArea::visibleWidth() const { |
562 return layer()->size().width(); | 562 return layer()->size().width(); |
563 } | 563 } |
564 | 564 |
565 IntSize PaintLayerScrollableArea::contentsSize() const { | 565 IntSize PaintLayerScrollableArea::contentsSize() const { |
566 return IntSize(pixelSnappedScrollWidth(), pixelSnappedScrollHeight()); | 566 return IntSize(pixelSnappedScrollWidth(), pixelSnappedScrollHeight()); |
567 } | 567 } |
568 | 568 |
| 569 bool PaintLayerScrollableArea::isScrollable() const { |
| 570 return scrollsOverflow(); |
| 571 } |
| 572 |
569 IntPoint PaintLayerScrollableArea::lastKnownMousePosition() const { | 573 IntPoint PaintLayerScrollableArea::lastKnownMousePosition() const { |
570 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition() | 574 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition() |
571 : IntPoint(); | 575 : IntPoint(); |
572 } | 576 } |
573 | 577 |
574 bool PaintLayerScrollableArea::scrollAnimatorEnabled() const { | 578 bool PaintLayerScrollableArea::scrollAnimatorEnabled() const { |
575 if (Settings* settings = box().frame()->settings()) | 579 if (Settings* settings = box().frame()->settings()) |
576 return settings->getScrollAnimatorEnabled(); | 580 return settings->getScrollAnimatorEnabled(); |
577 return false; | 581 return false; |
578 } | 582 } |
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2117 | 2121 |
2118 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: | 2122 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: |
2119 clampScrollableAreas() { | 2123 clampScrollableAreas() { |
2120 for (auto& scrollableArea : *s_needsClamp) | 2124 for (auto& scrollableArea : *s_needsClamp) |
2121 scrollableArea->clampScrollOffsetAfterOverflowChange(); | 2125 scrollableArea->clampScrollOffsetAfterOverflowChange(); |
2122 delete s_needsClamp; | 2126 delete s_needsClamp; |
2123 s_needsClamp = nullptr; | 2127 s_needsClamp = nullptr; |
2124 } | 2128 } |
2125 | 2129 |
2126 } // namespace blink | 2130 } // namespace blink |
OLD | NEW |