| 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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 | 705 |
| 706 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com
puteActual) const; | 706 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com
puteActual) const; |
| 707 virtual LayoutUnit computeReplacedLogicalHeight() const; | 707 virtual LayoutUnit computeReplacedLogicalHeight() const; |
| 708 | 708 |
| 709 bool hasDefiniteLogicalWidth() const; | 709 bool hasDefiniteLogicalWidth() const; |
| 710 bool percentageLogicalHeightIsResolvable() const; | 710 bool percentageLogicalHeightIsResolvable() const; |
| 711 bool hasDefiniteLogicalHeight() const; | 711 bool hasDefiniteLogicalHeight() const; |
| 712 LayoutUnit computePercentageLogicalHeight(const Length& height) const; | 712 LayoutUnit computePercentageLogicalHeight(const Length& height) const; |
| 713 | 713 |
| 714 // Block flows subclass availableWidth/Height to handle multi column layout
(shrinking the width/height available to children when laying out.) | 714 // Block flows subclass availableWidth/Height to handle multi column layout
(shrinking the width/height available to children when laying out.) |
| 715 LayoutUnit availableLogicalWidth() const { return contentLogicalWidth(); } | 715 LayoutUnit availableLogicalWidth() const { return LIKELY(!styleRef().snapWid
th()) ? contentLogicalWidth() : snapContentLogicalWidth(); } |
| 716 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const; | 716 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const; |
| 717 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight
Type) const; | 717 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight
Type) const; |
| 718 | 718 |
| 719 // There are a few cases where we need to refer specifically to the availabl
e physical width and available physical height. | 719 // There are a few cases where we need to refer specifically to the availabl
e physical width and available physical height. |
| 720 // Relative positioning is one of those cases, since left/top offsets are ph
ysical. | 720 // Relative positioning is one of those cases, since left/top offsets are ph
ysical. |
| 721 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode(
) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding)
; } | 721 LayoutUnit availableWidth() const { return style()->isHorizontalWritingMode(
) ? availableLogicalWidth() : availableLogicalHeight(IncludeMarginBorderPadding)
; } |
| 722 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode
() ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth(
); } | 722 LayoutUnit availableHeight() const { return style()->isHorizontalWritingMode
() ? availableLogicalHeight(IncludeMarginBorderPadding) : availableLogicalWidth(
); } |
| 723 | 723 |
| 724 int verticalScrollbarWidth() const; | 724 int verticalScrollbarWidth() const; |
| 725 int horizontalScrollbarHeight() const; | 725 int horizontalScrollbarHeight() const; |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 private: | 969 private: |
| 970 bool mustInvalidateBackgroundOrBorderPaintOnHeightChange() const; | 970 bool mustInvalidateBackgroundOrBorderPaintOnHeightChange() const; |
| 971 bool mustInvalidateBackgroundOrBorderPaintOnWidthChange() const; | 971 bool mustInvalidateBackgroundOrBorderPaintOnWidthChange() const; |
| 972 inline bool mustInvalidateFillLayersPaintOnWidthChange(const FillLayer&) con
st; | 972 inline bool mustInvalidateFillLayersPaintOnWidthChange(const FillLayer&) con
st; |
| 973 | 973 |
| 974 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutBoxModelObject&
paintInvalidationContainer, const LayoutRect&, const LayoutRect& oldBounds, con
st LayoutRect& newBounds); | 974 void invalidatePaintRectClippedByOldAndNewBounds(const LayoutBoxModelObject&
paintInvalidationContainer, const LayoutRect&, const LayoutRect& oldBounds, con
st LayoutRect& newBounds); |
| 975 | 975 |
| 976 void updateShapeOutsideInfoAfterStyleChange(const ComputedStyle&, const Comp
utedStyle* oldStyle); | 976 void updateShapeOutsideInfoAfterStyleChange(const ComputedStyle&, const Comp
utedStyle* oldStyle); |
| 977 void updateGridPositionAfterStyleChange(const ComputedStyle*); | 977 void updateGridPositionAfterStyleChange(const ComputedStyle*); |
| 978 | 978 |
| 979 LayoutUnit snapContentLogicalWidth() const; |
| 979 bool autoWidthShouldFitContent() const; | 980 bool autoWidthShouldFitContent() const; |
| 980 LayoutUnit shrinkToFitLogicalWidth(LayoutUnit availableLogicalWidth, LayoutU
nit bordersPlusPadding) const; | 981 LayoutUnit shrinkToFitLogicalWidth(LayoutUnit availableLogicalWidth, LayoutU
nit bordersPlusPadding) const; |
| 981 | 982 |
| 982 // Returns true if we queued up a paint invalidation. | 983 // Returns true if we queued up a paint invalidation. |
| 983 bool invalidatePaintOfLayerRectsForImage(WrappedImagePtr, const FillLayer&,
bool drawingBackground); | 984 bool invalidatePaintOfLayerRectsForImage(WrappedImagePtr, const FillLayer&,
bool drawingBackground); |
| 984 | 985 |
| 985 bool stretchesToViewportInQuirksMode() const; | 986 bool stretchesToViewportInQuirksMode() const; |
| 986 bool skipContainingBlockForPercentHeightCalculation(const LayoutBox* contain
ingBlock) const; | 987 bool skipContainingBlockForPercentHeightCalculation(const LayoutBox* contain
ingBlock) const; |
| 987 | 988 |
| 988 virtual void computePositionedLogicalHeight(LogicalExtentComputedValues&) co
nst; | 989 virtual void computePositionedLogicalHeight(LogicalExtentComputedValues&) co
nst; |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1160 || breakValue == BreakLeft | 1161 || breakValue == BreakLeft |
| 1161 || breakValue == BreakPage | 1162 || breakValue == BreakPage |
| 1162 || breakValue == BreakRecto | 1163 || breakValue == BreakRecto |
| 1163 || breakValue == BreakRight | 1164 || breakValue == BreakRight |
| 1164 || breakValue == BreakVerso; | 1165 || breakValue == BreakVerso; |
| 1165 } | 1166 } |
| 1166 | 1167 |
| 1167 } // namespace blink | 1168 } // namespace blink |
| 1168 | 1169 |
| 1169 #endif // LayoutBox_h | 1170 #endif // LayoutBox_h |
| OLD | NEW |