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