Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2657183002: Use full mapLocalToAncestor machinery in ScrollingCoordinator. (Closed)
Patch Set: test expectations Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698