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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 } | 592 } |
593 | 593 |
594 bool PaintLayerScrollableArea::scrollbarsCanBeActive() const { | 594 bool PaintLayerScrollableArea::scrollbarsCanBeActive() const { |
595 LayoutView* view = box().view(); | 595 LayoutView* view = box().view(); |
596 if (!view) | 596 if (!view) |
597 return false; | 597 return false; |
598 return view->frameView()->scrollbarsCanBeActive(); | 598 return view->frameView()->scrollbarsCanBeActive(); |
599 } | 599 } |
600 | 600 |
601 IntRect PaintLayerScrollableArea::scrollableAreaBoundingBox() const { | 601 IntRect PaintLayerScrollableArea::scrollableAreaBoundingBox() const { |
602 return box().absoluteBoundingBoxRect(); | 602 return box().absoluteBoundingBoxRect(TraverseDocumentBoundaries); |
603 } | 603 } |
604 | 604 |
605 void PaintLayerScrollableArea::registerForAnimation() { | 605 void PaintLayerScrollableArea::registerForAnimation() { |
606 if (LocalFrame* frame = box().frame()) { | 606 if (LocalFrame* frame = box().frame()) { |
607 if (FrameView* frameView = frame->view()) | 607 if (FrameView* frameView = frame->view()) |
608 frameView->addAnimatingScrollableArea(this); | 608 frameView->addAnimatingScrollableArea(this); |
609 } | 609 } |
610 } | 610 } |
611 | 611 |
612 void PaintLayerScrollableArea::deregisterForAnimation() { | 612 void PaintLayerScrollableArea::deregisterForAnimation() { |
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2117 | 2117 |
2118 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: | 2118 void PaintLayerScrollableArea::DelayScrollOffsetClampScope:: |
2119 clampScrollableAreas() { | 2119 clampScrollableAreas() { |
2120 for (auto& scrollableArea : *s_needsClamp) | 2120 for (auto& scrollableArea : *s_needsClamp) |
2121 scrollableArea->clampScrollOffsetAfterOverflowChange(); | 2121 scrollableArea->clampScrollOffsetAfterOverflowChange(); |
2122 delete s_needsClamp; | 2122 delete s_needsClamp; |
2123 s_needsClamp = nullptr; | 2123 s_needsClamp = nullptr; |
2124 } | 2124 } |
2125 | 2125 |
2126 } // namespace blink | 2126 } // namespace blink |
OLD | NEW |