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

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

Issue 873963003: Remove more mouse-specific code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Build fixes Created 5 years, 11 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 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 IntSize RenderLayerScrollableArea::contentsSize() const 257 IntSize RenderLayerScrollableArea::contentsSize() const
258 { 258 {
259 return IntSize(scrollWidth(), scrollHeight()); 259 return IntSize(scrollWidth(), scrollHeight());
260 } 260 }
261 261
262 IntSize RenderLayerScrollableArea::overhangAmount() const 262 IntSize RenderLayerScrollableArea::overhangAmount() const
263 { 263 {
264 return IntSize(); 264 return IntSize();
265 } 265 }
266 266
267 IntPoint RenderLayerScrollableArea::lastKnownMousePosition() const
268 {
269 return box().frame() ? box().frame()->eventHandler().lastKnownMousePosition( ) : IntPoint();
270 }
271
272 IntRect RenderLayerScrollableArea::scrollableAreaBoundingBox() const 267 IntRect RenderLayerScrollableArea::scrollableAreaBoundingBox() const
273 { 268 {
274 return box().absoluteBoundingBoxRect(); 269 return box().absoluteBoundingBoxRect();
275 } 270 }
276 271
277 bool RenderLayerScrollableArea::userInputScrollable(ScrollbarOrientation orienta tion) const 272 bool RenderLayerScrollableArea::userInputScrollable(ScrollbarOrientation orienta tion) const
278 { 273 {
279 EOverflow overflowStyle = (orientation == HorizontalScrollbar) ? 274 EOverflow overflowStyle = (orientation == HorizontalScrollbar) ?
280 box().style()->overflowX() : box().style()->overflowY(); 275 box().style()->overflowX() : box().style()->overflowY();
281 return (overflowStyle == OSCROLL || overflowStyle == OAUTO || overflowStyle == OOVERLAY); 276 return (overflowStyle == OSCROLL || overflowStyle == OAUTO || overflowStyle == OOVERLAY);
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 void RenderLayerScrollableArea::setTopmostScrollChild(RenderLayer* scrollChild) 691 void RenderLayerScrollableArea::setTopmostScrollChild(RenderLayer* scrollChild)
697 { 692 {
698 // We only want to track the topmost scroll child for scrollable areas with 693 // We only want to track the topmost scroll child for scrollable areas with
699 // overlay scrollbars. 694 // overlay scrollbars.
700 if (!hasOverlayScrollbars()) 695 if (!hasOverlayScrollbars())
701 return; 696 return;
702 m_nextTopmostScrollChild = scrollChild; 697 m_nextTopmostScrollChild = scrollChild;
703 } 698 }
704 699
705 } // namespace blink 700 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayerScrollableArea.h ('k') | sky/engine/platform/PlatformEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698