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

Side by Side Diff: sky/engine/core/rendering/RenderLayerScrollableArea.cpp

Issue 681023002: Remove a bunch of frame-level scrolling machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 IntSize RenderLayerScrollableArea::overhangAmount() const 435 IntSize RenderLayerScrollableArea::overhangAmount() const
436 { 436 {
437 return IntSize(); 437 return IntSize();
438 } 438 }
439 439
440 IntPoint RenderLayerScrollableArea::lastKnownMousePosition() const 440 IntPoint RenderLayerScrollableArea::lastKnownMousePosition() const
441 { 441 {
442 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition( ) : IntPoint(); 442 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition( ) : IntPoint();
443 } 443 }
444 444
445 bool RenderLayerScrollableArea::scrollbarsCanBeActive() const
446 {
447 RenderView* view = box().view();
448 if (!view)
449 return false;
450 return view->frameView()->scrollbarsCanBeActive();
451 }
452
453 IntRect RenderLayerScrollableArea::scrollableAreaBoundingBox() const 445 IntRect RenderLayerScrollableArea::scrollableAreaBoundingBox() const
454 { 446 {
455 return box().absoluteBoundingBoxRect(); 447 return box().absoluteBoundingBoxRect();
456 } 448 }
457 449
458 bool RenderLayerScrollableArea::userInputScrollable(ScrollbarOrientation orienta tion) const 450 bool RenderLayerScrollableArea::userInputScrollable(ScrollbarOrientation orienta tion) const
459 { 451 {
460 if (box().isIntristicallyScrollable(orientation)) 452 if (box().isIntristicallyScrollable(orientation))
461 return true; 453 return true;
462 454
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 void RenderLayerScrollableArea::setTopmostScrollChild(RenderLayer* scrollChild) 1322 void RenderLayerScrollableArea::setTopmostScrollChild(RenderLayer* scrollChild)
1331 { 1323 {
1332 // We only want to track the topmost scroll child for scrollable areas with 1324 // We only want to track the topmost scroll child for scrollable areas with
1333 // overlay scrollbars. 1325 // overlay scrollbars.
1334 if (!hasOverlayScrollbars()) 1326 if (!hasOverlayScrollbars())
1335 return; 1327 return;
1336 m_nextTopmostScrollChild = scrollChild; 1328 m_nextTopmostScrollChild = scrollChild;
1337 } 1329 }
1338 1330
1339 } // namespace blink 1331 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayerScrollableArea.h ('k') | sky/engine/core/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698