| 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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 LayoutUnit computeReplacedLogicalWidthUsing(SizeType, const Length& width) c
onst; | 733 LayoutUnit computeReplacedLogicalWidthUsing(SizeType, const Length& width) c
onst; |
| 734 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic
alWidth, ShouldComputePreferred = ComputeActual) const; | 734 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic
alWidth, ShouldComputePreferred = ComputeActual) const; |
| 735 LayoutUnit computeReplacedLogicalHeightUsing(SizeType, const Length& height)
const; | 735 LayoutUnit computeReplacedLogicalHeightUsing(SizeType, const Length& height)
const; |
| 736 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log
icalHeight) const; | 736 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log
icalHeight) const; |
| 737 | 737 |
| 738 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com
puteActual) const; | 738 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com
puteActual) const; |
| 739 virtual LayoutUnit computeReplacedLogicalHeight(LayoutUnit estimatedUsedWidt
h = LayoutUnit()) const; | 739 virtual LayoutUnit computeReplacedLogicalHeight(LayoutUnit estimatedUsedWidt
h = LayoutUnit()) const; |
| 740 | 740 |
| 741 bool hasDefiniteLogicalWidth() const; | 741 bool hasDefiniteLogicalWidth() const; |
| 742 bool percentageLogicalHeightIsResolvable() const; | 742 bool percentageLogicalHeightIsResolvable() const; |
| 743 bool hasDefiniteLogicalHeight() const; | |
| 744 LayoutUnit computePercentageLogicalHeight(const Length& height) const; | 743 LayoutUnit computePercentageLogicalHeight(const Length& height) const; |
| 745 | 744 |
| 746 // Block flows subclass availableWidth/Height to handle multi column layout
(shrinking the width/height available to children when laying out.) | 745 // Block flows subclass availableWidth/Height to handle multi column layout
(shrinking the width/height available to children when laying out.) |
| 747 LayoutUnit availableLogicalWidth() const { return contentLogicalWidth(); } | 746 LayoutUnit availableLogicalWidth() const { return contentLogicalWidth(); } |
| 748 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const; | 747 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const; |
| 749 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight
Type) const; | 748 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight
Type) const; |
| 750 | 749 |
| 751 // There are a few cases where we need to refer specifically to the availabl
e physical width and available physical height. | 750 // There are a few cases where we need to refer specifically to the availabl
e physical width and available physical height. |
| 752 // Relative positioning is one of those cases, since left/top offsets are ph
ysical. | 751 // Relative positioning is one of those cases, since left/top offsets are ph
ysical. |
| 753 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode(
) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding)
; } | 752 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode(
) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding)
; } |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 || breakValue == BreakLeft | 1210 || breakValue == BreakLeft |
| 1212 || breakValue == BreakPage | 1211 || breakValue == BreakPage |
| 1213 || breakValue == BreakRecto | 1212 || breakValue == BreakRecto |
| 1214 || breakValue == BreakRight | 1213 || breakValue == BreakRight |
| 1215 || breakValue == BreakVerso; | 1214 || breakValue == BreakVerso; |
| 1216 } | 1215 } |
| 1217 | 1216 |
| 1218 } // namespace blink | 1217 } // namespace blink |
| 1219 | 1218 |
| 1220 #endif // LayoutBox_h | 1219 #endif // LayoutBox_h |
| OLD | NEW |