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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 // There are a few cases where we need to refer specifically to the availabl
e physical width and available physical height. | 536 // There are a few cases where we need to refer specifically to the availabl
e physical width and available physical height. |
537 // Relative positioning is one of those cases, since left/top offsets are ph
ysical. | 537 // Relative positioning is one of those cases, since left/top offsets are ph
ysical. |
538 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode(
) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding)
; } | 538 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode(
) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding)
; } |
539 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode
() ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth(
); } | 539 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode
() ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth(
); } |
540 | 540 |
541 virtual int verticalScrollbarWidth() const; | 541 virtual int verticalScrollbarWidth() const; |
542 int horizontalScrollbarHeight() const; | 542 int horizontalScrollbarHeight() const; |
543 int intrinsicScrollbarLogicalWidth() const; | 543 int intrinsicScrollbarLogicalWidth() const; |
544 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode(
) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } | 544 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode(
) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } |
545 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode
() ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } | 545 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode
() ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } |
546 virtual bool scroll(ScrollDirection, ScrollGranularity, float delta = 1); | 546 virtual ScrollResultOneDimensional scroll(ScrollDirection, ScrollGranularity
, float delta = 1); |
547 bool canBeScrolledAndHasScrollableArea() const; | 547 bool canBeScrolledAndHasScrollableArea() const; |
548 virtual bool canBeProgramaticallyScrolled() const; | 548 virtual bool canBeProgramaticallyScrolled() const; |
549 virtual void autoscroll(const IntPoint&); | 549 virtual void autoscroll(const IntPoint&); |
550 bool canAutoscroll() const; | 550 bool canAutoscroll() const; |
551 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const
; | 551 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const
; |
552 static LayoutBox* findAutoscrollable(LayoutObject*); | 552 static LayoutBox* findAutoscrollable(LayoutObject*); |
553 virtual void stopAutoscroll() { } | 553 virtual void stopAutoscroll() { } |
554 virtual void panScroll(const IntPoint&); | 554 virtual void panScroll(const IntPoint&); |
555 | 555 |
556 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY(
) == OOVERLAY); } | 556 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY(
) == OOVERLAY); } |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 if (UNLIKELY(inlineBoxWrapper() != 0)) | 923 if (UNLIKELY(inlineBoxWrapper() != 0)) |
924 deleteLineBoxWrapper(); | 924 deleteLineBoxWrapper(); |
925 } | 925 } |
926 | 926 |
927 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 927 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
928 } | 928 } |
929 | 929 |
930 } // namespace blink | 930 } // namespace blink |
931 | 931 |
932 #endif // LayoutBox_h | 932 #endif // LayoutBox_h |
OLD | NEW |