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