| 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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 // There are a few cases where we need to refer specifically to the availabl
e physical width and available physical height. | 684 // There are a few cases where we need to refer specifically to the availabl
e physical width and available physical height. |
| 685 // Relative positioning is one of those cases, since left/top offsets are ph
ysical. | 685 // Relative positioning is one of those cases, since left/top offsets are ph
ysical. |
| 686 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode(
) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding)
; } | 686 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode(
) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding)
; } |
| 687 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode
() ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth(
); } | 687 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode
() ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth(
); } |
| 688 | 688 |
| 689 int verticalScrollbarWidth() const; | 689 int verticalScrollbarWidth() const; |
| 690 int horizontalScrollbarHeight() const; | 690 int horizontalScrollbarHeight() const; |
| 691 int intrinsicScrollbarLogicalWidth() const; | 691 int intrinsicScrollbarLogicalWidth() const; |
| 692 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode(
) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } | 692 int scrollbarLogicalWidth() const { return style()->isHorizontalWritingMode(
) ? verticalScrollbarWidth() : horizontalScrollbarHeight(); } |
| 693 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode
() ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } | 693 int scrollbarLogicalHeight() const { return style()->isHorizontalWritingMode
() ? horizontalScrollbarHeight() : verticalScrollbarWidth(); } |
| 694 virtual ScrollResultOneDimensional scroll(ScrollDirectionPhysical, ScrollGra
nularity, float delta = 1); | 694 virtual ScrollResult scroll(ScrollGranularity, const FloatSize&); |
| 695 bool canBeScrolledAndHasScrollableArea() const; | 695 bool canBeScrolledAndHasScrollableArea() const; |
| 696 virtual bool canBeProgramaticallyScrolled() const; | 696 virtual bool canBeProgramaticallyScrolled() const; |
| 697 virtual void autoscroll(const IntPoint&); | 697 virtual void autoscroll(const IntPoint&); |
| 698 bool canAutoscroll() const; | 698 bool canAutoscroll() const; |
| 699 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const
; | 699 IntSize calculateAutoscrollDirection(const IntPoint& pointInRootFrame) const
; |
| 700 static LayoutBox* findAutoscrollable(LayoutObject*); | 700 static LayoutBox* findAutoscrollable(LayoutObject*); |
| 701 virtual void stopAutoscroll() { } | 701 virtual void stopAutoscroll() { } |
| 702 virtual void panScroll(const IntPoint&); | 702 virtual void panScroll(const IntPoint&); |
| 703 | 703 |
| 704 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY(
) == OOVERLAY); } | 704 bool hasAutoVerticalScrollbar() const { return hasOverflowClip() && (style()
->overflowY() == OAUTO || style()->overflowY() == OPAGEDY || style()->overflowY(
) == OOVERLAY); } |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 if (UNLIKELY(m_inlineBoxWrapper != nullptr)) | 1131 if (UNLIKELY(m_inlineBoxWrapper != nullptr)) |
| 1132 deleteLineBoxWrapper(); | 1132 deleteLineBoxWrapper(); |
| 1133 } | 1133 } |
| 1134 | 1134 |
| 1135 m_inlineBoxWrapper = boxWrapper; | 1135 m_inlineBoxWrapper = boxWrapper; |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 } // namespace blink | 1138 } // namespace blink |
| 1139 | 1139 |
| 1140 #endif // LayoutBox_h | 1140 #endif // LayoutBox_h |
| OLD | NEW |