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