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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 } | 558 } |
559 | 559 |
560 int PaintLayerScrollableArea::visibleWidth() const { | 560 int PaintLayerScrollableArea::visibleWidth() const { |
561 return layer()->size().width(); | 561 return layer()->size().width(); |
562 } | 562 } |
563 | 563 |
564 IntSize PaintLayerScrollableArea::contentsSize() const { | 564 IntSize PaintLayerScrollableArea::contentsSize() const { |
565 return IntSize(pixelSnappedScrollWidth(), pixelSnappedScrollHeight()); | 565 return IntSize(pixelSnappedScrollWidth(), pixelSnappedScrollHeight()); |
566 } | 566 } |
567 | 567 |
| 568 bool PaintLayerScrollableArea::isScrollable() const { |
| 569 return scrollsOverflow(); |
| 570 } |
| 571 |
568 IntPoint PaintLayerScrollableArea::lastKnownMousePosition() const { | 572 IntPoint PaintLayerScrollableArea::lastKnownMousePosition() const { |
569 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition() | 573 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition() |
570 : IntPoint(); | 574 : IntPoint(); |
571 } | 575 } |
572 | 576 |
573 bool PaintLayerScrollableArea::scrollAnimatorEnabled() const { | 577 bool PaintLayerScrollableArea::scrollAnimatorEnabled() const { |
574 if (Settings* settings = box().frame()->settings()) | 578 if (Settings* settings = box().frame()->settings()) |
575 return settings->getScrollAnimatorEnabled(); | 579 return settings->getScrollAnimatorEnabled(); |
576 return false; | 580 return false; |
577 } | 581 } |
(...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2109 | 2113 |
2110 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: | 2114 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: |
2111 clampScrollableAreas() { | 2115 clampScrollableAreas() { |
2112 for (auto& scrollableArea : *s_needsClamp) | 2116 for (auto& scrollableArea : *s_needsClamp) |
2113 scrollableArea->clampScrollOffsetAfterOverflowChange(); | 2117 scrollableArea->clampScrollOffsetAfterOverflowChange(); |
2114 delete s_needsClamp; | 2118 delete s_needsClamp; |
2115 s_needsClamp = nullptr; | 2119 s_needsClamp = nullptr; |
2116 } | 2120 } |
2117 | 2121 |
2118 } // namespace blink | 2122 } // namespace blink |
OLD | NEW |