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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 2484563003: Determine the layoutobject of middleClickAutoscroll by the scroll direction. (Closed)
Patch Set: Better tests. Created 4 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 : verticalScrollbarWidth(); 991 : verticalScrollbarWidth();
992 } 992 }
993 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&); 993 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&);
994 bool canBeScrolledAndHasScrollableArea() const; 994 bool canBeScrolledAndHasScrollableArea() const;
995 virtual bool canBeProgramaticallyScrolled() const; 995 virtual bool canBeProgramaticallyScrolled() const;
996 virtual void autoscroll(const IntPoint&); 996 virtual void autoscroll(const IntPoint&);
997 bool canAutoscroll() const; 997 bool canAutoscroll() const;
998 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const; 998 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const;
999 static LayoutBox* findAutoscrollable(LayoutObject*); 999 static LayoutBox* findAutoscrollable(LayoutObject*);
1000 virtual void stopAutoscroll() {} 1000 virtual void stopAutoscroll() {}
1001 virtual void middleClickAutoscroll(const IntPoint&);
1002 1001
1003 DISABLE_CFI_PERF bool hasAutoVerticalScrollbar() const { 1002 DISABLE_CFI_PERF bool hasAutoVerticalScrollbar() const {
1004 return hasOverflowClip() && (style()->overflowY() == OverflowAuto || 1003 return hasOverflowClip() && (style()->overflowY() == OverflowAuto ||
1005 style()->overflowY() == OverflowPagedY || 1004 style()->overflowY() == OverflowPagedY ||
1006 style()->overflowY() == OverflowOverlay); 1005 style()->overflowY() == OverflowOverlay);
1007 } 1006 }
1008 DISABLE_CFI_PERF bool hasAutoHorizontalScrollbar() const { 1007 DISABLE_CFI_PERF bool hasAutoHorizontalScrollbar() const {
1009 return hasOverflowClip() && (style()->overflowX() == OverflowAuto || 1008 return hasOverflowClip() && (style()->overflowX() == OverflowAuto ||
1010 style()->overflowX() == OverflowOverlay); 1009 style()->overflowX() == OverflowOverlay);
1011 } 1010 }
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 1620
1622 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { 1621 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) {
1623 return breakValue == BreakColumn || breakValue == BreakLeft || 1622 return breakValue == BreakColumn || breakValue == BreakLeft ||
1624 breakValue == BreakPage || breakValue == BreakRecto || 1623 breakValue == BreakPage || breakValue == BreakRecto ||
1625 breakValue == BreakRight || breakValue == BreakVerso; 1624 breakValue == BreakRight || breakValue == BreakVerso;
1626 } 1625 }
1627 1626
1628 } // namespace blink 1627 } // namespace blink
1629 1628
1630 #endif // LayoutBox_h 1629 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698