OLD | NEW |
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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode(
) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } | 762 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode(
) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } |
763 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode
() ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } | 763 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode
() ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } |
764 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&); | 764 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&); |
765 bool canBeScrolledAndHasScrollableArea() const; | 765 bool canBeScrolledAndHasScrollableArea() const; |
766 virtual bool canBeProgramaticallyScrolled() const; | 766 virtual bool canBeProgramaticallyScrolled() const; |
767 virtual void autoscroll(const IntPoint&); | 767 virtual void autoscroll(const IntPoint&); |
768 bool canAutoscroll() const; | 768 bool canAutoscroll() const; |
769 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const
; | 769 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const
; |
770 static LayoutBox* findAutoscrollable(LayoutObject*); | 770 static LayoutBox* findAutoscrollable(LayoutObject*); |
771 virtual void stopAutoscroll() { } | 771 virtual void stopAutoscroll() { } |
772 virtual void panScroll(const IntPoint&); | 772 virtual void middleClickAutoscroll(const IntPoint&); |
773 | 773 |
774 DISABLE_CFI_PERF bool hasAutoVerticalScrollbar() const { return hasOverflowC
lip() && (style()->overflowY() == OverflowAuto || style()->overflowY() == Overfl
owPagedY || style()->overflowY() == OverflowOverlay); } | 774 DISABLE_CFI_PERF bool hasAutoVerticalScrollbar() const { return hasOverflowC
lip() && (style()->overflowY() == OverflowAuto || style()->overflowY() == Overfl
owPagedY || style()->overflowY() == OverflowOverlay); } |
775 DISABLE_CFI_PERF bool hasAutoHorizontalScrollbar() const { return hasOverflo
wClip() && (style()->overflowX() == OverflowAuto || style()->overflowX() == Over
flowOverlay); } | 775 DISABLE_CFI_PERF bool hasAutoHorizontalScrollbar() const { return hasOverflo
wClip() && (style()->overflowX() == OverflowAuto || style()->overflowX() == Over
flowOverlay); } |
776 DISABLE_CFI_PERF bool scrollsOverflow() const { return scrollsOverflowX() ||
scrollsOverflowY(); } | 776 DISABLE_CFI_PERF bool scrollsOverflow() const { return scrollsOverflowX() ||
scrollsOverflowY(); } |
777 virtual bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { retur
n style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft(); } | 777 virtual bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const { retur
n style()->shouldPlaceBlockDirectionScrollbarOnLogicalLeft(); } |
778 | 778 |
779 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } | 779 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } |
780 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } | 780 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } |
781 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style()
->overflowX() == OverflowScroll || hasAutoHorizontalScrollbar()); } | 781 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style()
->overflowX() == OverflowScroll || hasAutoHorizontalScrollbar()); } |
782 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style()
->overflowY() == OverflowScroll || hasAutoVerticalScrollbar()); } | 782 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style()
->overflowY() == OverflowScroll || hasAutoVerticalScrollbar()); } |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1216 || breakValue == BreakLeft | 1216 || breakValue == BreakLeft |
1217 || breakValue == BreakPage | 1217 || breakValue == BreakPage |
1218 || breakValue == BreakRecto | 1218 || breakValue == BreakRecto |
1219 || breakValue == BreakRight | 1219 || breakValue == BreakRight |
1220 || breakValue == BreakVerso; | 1220 || breakValue == BreakVerso; |
1221 } | 1221 } |
1222 | 1222 |
1223 } // namespace blink | 1223 } // namespace blink |
1224 | 1224 |
1225 #endif // LayoutBox_h | 1225 #endif // LayoutBox_h |
OLD | NEW |