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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
404 return document().inQuirksMode() && style()->logicalHeight().isAuto() && !isFloatingOrOutOfFlowPositioned() && (isRoot() || isBody()) && !document().sho uldDisplaySeamlesslyWithParent() && !isInline(); | 404 return document().inQuirksMode() && style()->logicalHeight().isAuto() && !isFloatingOrOutOfFlowPositioned() && (isRoot() || isBody()) && !document().sho uldDisplaySeamlesslyWithParent() && !isInline(); |
405 } | 405 } |
406 | 406 |
407 virtual LayoutSize intrinsicSize() const { return LayoutSize(); } | 407 virtual LayoutSize intrinsicSize() const { return LayoutSize(); } |
408 LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWriti ngMode() ? intrinsicSize().width() : intrinsicSize().height(); } | 408 LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWriti ngMode() ? intrinsicSize().width() : intrinsicSize().height(); } |
409 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit ingMode() ? intrinsicSize().height() : intrinsicSize().width(); } | 409 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit ingMode() ? intrinsicSize().height() : intrinsicSize().width(); } |
410 | 410 |
411 // Whether or not the element shrinks to its intrinsic width (rather than fi lling the width | 411 // Whether or not the element shrinks to its intrinsic width (rather than fi lling the width |
412 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and floating/compact elements do this. | 412 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and floating/compact elements do this. |
413 bool sizesLogicalWidthToFitContent(SizeType) const; | 413 bool sizesLogicalWidthToFitContent(SizeType) const; |
414 bool isElementWithIntrinsicWidth() const; | |
415 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&) const; | |
ojan
2013/10/16 01:44:43
These should be private?
pals
2013/10/16 07:10:05
Done.
| |
414 | 416 |
415 LayoutUnit shrinkLogicalWidthToAvoidFloats(LayoutUnit childMarginStart, Layo utUnit childMarginEnd, const RenderBlock* cb, RenderRegion*) const; | 417 LayoutUnit shrinkLogicalWidthToAvoidFloats(LayoutUnit childMarginStart, Layo utUnit childMarginEnd, const RenderBlock* cb, RenderRegion*) const; |
416 | 418 |
417 LayoutUnit computeLogicalWidthInRegionUsing(SizeType, Length logicalWidth, L ayoutUnit availableLogicalWidth, const RenderBlock* containingBlock, RenderRegio n*) const; | 419 LayoutUnit computeLogicalWidthInRegionUsing(SizeType, Length logicalWidth, L ayoutUnit availableLogicalWidth, const RenderBlock* containingBlock, RenderRegio n*) const; |
418 LayoutUnit computeLogicalHeightUsing(const Length& height, LayoutUnit intrin sicContentHeight) const; | 420 LayoutUnit computeLogicalHeightUsing(const Length& height, LayoutUnit intrin sicContentHeight) const; |
419 LayoutUnit computeContentLogicalHeight(const Length& height, LayoutUnit intr insicContentHeight) const; | 421 LayoutUnit computeContentLogicalHeight(const Length& height, LayoutUnit intr insicContentHeight) const; |
420 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(const Length& height , LayoutUnit intrinsicContentHeight) const; | 422 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(const Length& height , LayoutUnit intrinsicContentHeight) const; |
421 LayoutUnit computeReplacedLogicalWidthUsing(Length width) const; | 423 LayoutUnit computeReplacedLogicalWidthUsing(Length width) const; |
422 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic alWidth, ShouldComputePreferred = ComputeActual) const; | 424 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic alWidth, ShouldComputePreferred = ComputeActual) const; |
423 LayoutUnit computeReplacedLogicalHeightUsing(Length height) const; | 425 LayoutUnit computeReplacedLogicalHeightUsing(Length height) const; |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
757 if (UNLIKELY(m_inlineBoxWrapper != 0)) | 759 if (UNLIKELY(m_inlineBoxWrapper != 0)) |
758 deleteLineBoxWrapper(); | 760 deleteLineBoxWrapper(); |
759 } | 761 } |
760 | 762 |
761 m_inlineBoxWrapper = boxWrapper; | 763 m_inlineBoxWrapper = boxWrapper; |
762 } | 764 } |
763 | 765 |
764 } // namespace WebCore | 766 } // namespace WebCore |
765 | 767 |
766 #endif // RenderBox_h | 768 #endif // RenderBox_h |
OLD | NEW |