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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 virtual int verticalScrollbarWidth() const; | 485 virtual int verticalScrollbarWidth() const; |
486 int horizontalScrollbarHeight() const; | 486 int horizontalScrollbarHeight() const; |
487 int intrinsicScrollbarLogicalWidth() const; | 487 int intrinsicScrollbarLogicalWidth() const; |
488 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode(
) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } | 488 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode(
) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } |
489 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode
() ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } | 489 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode
() ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } |
490 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1); | 490 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1); |
491 bool canBeScrolledAndHasScrollableArea() const; | 491 bool canBeScrolledAndHasScrollableArea() const; |
492 virtual bool canBeProgramaticallyScrolled() const; | 492 virtual bool canBeProgramaticallyScrolled() const; |
493 virtual void autoscroll(const IntPoint&); | 493 virtual void autoscroll(const IntPoint&); |
494 bool canAutoscroll() const; | 494 bool canAutoscroll() const; |
495 IntSize calculateAutoscrollDirection(const IntPoint& windowPoint) const; | 495 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const
; |
496 static LayoutBox* findAutoscrollable(LayoutObject*); | 496 static LayoutBox* findAutoscrollable(LayoutObject*); |
497 virtual void stopAutoscroll() { } | 497 virtual void stopAutoscroll() { } |
498 virtual void panScroll(const IntPoint&); | 498 virtual void panScroll(const IntPoint&); |
499 | 499 |
500 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY(
) == OOVERLAY); } | 500 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY(
) == OOVERLAY); } |
501 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } | 501 bool hasAutoHorizontalScrollbar() const { return hasOverflowClip() && (style
()->overflowX() == OAUTO || style()->overflowX() == OOVERLAY); } |
502 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } | 502 bool scrollsOverflow() const { return scrollsOverflowX() || scrollsOverflowY
(); } |
503 | 503 |
504 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } | 504 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } |
505 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } | 505 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 if (UNLIKELY(inlineBoxWrapper() != 0)) | 855 if (UNLIKELY(inlineBoxWrapper() != 0)) |
856 deleteLineBoxWrapper(); | 856 deleteLineBoxWrapper(); |
857 } | 857 } |
858 | 858 |
859 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 859 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
860 } | 860 } |
861 | 861 |
862 } // namespace blink | 862 } // namespace blink |
863 | 863 |
864 #endif // LayoutBox_h | 864 #endif // LayoutBox_h |
OLD | NEW |