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