| 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 // There are a few cases where we need to refer specifically to the availabl
e physical width and available physical height. | 542 // There are a few cases where we need to refer specifically to the availabl
e physical width and available physical height. |
| 543 // Relative positioning is one of those cases, since left/top offsets are ph
ysical. | 543 // Relative positioning is one of those cases, since left/top offsets are ph
ysical. |
| 544 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode(
) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding)
; } | 544 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode(
) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding)
; } |
| 545 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode
() ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth(
); } | 545 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode
() ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth(
); } |
| 546 | 546 |
| 547 virtual int verticalScrollbarWidth() const; | 547 virtual int verticalScrollbarWidth() const; |
| 548 int horizontalScrollbarHeight() const; | 548 int horizontalScrollbarHeight() const; |
| 549 int intrinsicScrollbarLogicalWidth() const; | 549 int intrinsicScrollbarLogicalWidth() const; |
| 550 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode(
) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } | 550 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode(
) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } |
| 551 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode
() ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } | 551 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode
() ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } |
| 552 virtual bool scroll(ScrollDirectionPhysical, ScrollGranularity, float delta
= 1); | 552 virtual ScrollResultOneDimensional scroll(ScrollDirectionPhysical, ScrollGra
nularity, float delta = 1); |
| 553 bool canBeScrolledAndHasScrollableArea() const; | 553 bool canBeScrolledAndHasScrollableArea() const; |
| 554 virtual bool canBeProgramaticallyScrolled() const; | 554 virtual bool canBeProgramaticallyScrolled() const; |
| 555 virtual void autoscroll(const IntPoint&); | 555 virtual void autoscroll(const IntPoint&); |
| 556 bool canAutoscroll() const; | 556 bool canAutoscroll() const; |
| 557 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const
; | 557 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const
; |
| 558 static LayoutBox* findAutoscrollable(LayoutObject*); | 558 static LayoutBox* findAutoscrollable(LayoutObject*); |
| 559 virtual void stopAutoscroll() { } | 559 virtual void stopAutoscroll() { } |
| 560 virtual void panScroll(const IntPoint&); | 560 virtual void panScroll(const IntPoint&); |
| 561 | 561 |
| 562 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY(
) == OOVERLAY); } | 562 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY(
) == OOVERLAY); } |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 if (UNLIKELY(inlineBoxWrapper() != 0)) | 935 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 936 deleteLineBoxWrapper(); | 936 deleteLineBoxWrapper(); |
| 937 } | 937 } |
| 938 | 938 |
| 939 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 939 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 940 } | 940 } |
| 941 | 941 |
| 942 } // namespace blink | 942 } // namespace blink |
| 943 | 943 |
| 944 #endif // LayoutBox_h | 944 #endif // LayoutBox_h |
| OLD | NEW |