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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit
ingMode() ? intrinsicSize().height() : intrinsicSize().width(); } | 498 LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWrit
ingMode() ? intrinsicSize().height() : intrinsicSize().width(); } |
499 virtual LayoutUnit intrinsicContentLogicalHeight() const { return m_intrinsi
cContentLogicalHeight; } | 499 virtual LayoutUnit intrinsicContentLogicalHeight() const { return m_intrinsi
cContentLogicalHeight; } |
500 | 500 |
501 // Whether or not the element shrinks to its intrinsic width (rather than fi
lling the width | 501 // Whether or not the element shrinks to its intrinsic width (rather than fi
lling the width |
502 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and
floating/compact elements do this. | 502 // of a containing block). HTML4 buttons, <select>s, <input>s, legends, and
floating/compact elements do this. |
503 bool sizesLogicalWidthToFitContent(const Length& logicalWidth) const; | 503 bool sizesLogicalWidthToFitContent(const Length& logicalWidth) const; |
504 | 504 |
505 LayoutUnit shrinkLogicalWidthToAvoidFloats(LayoutUnit childMarginStart, Layo
utUnit childMarginEnd, const LayoutBlockFlow* cb) const; | 505 LayoutUnit shrinkLogicalWidthToAvoidFloats(LayoutUnit childMarginStart, Layo
utUnit childMarginEnd, const LayoutBlockFlow* cb) const; |
506 | 506 |
507 LayoutUnit computeLogicalWidthUsing(SizeType, const Length& logicalWidth, La
youtUnit availableLogicalWidth, const LayoutBlock* containingBlock) const; | 507 LayoutUnit computeLogicalWidthUsing(SizeType, const Length& logicalWidth, La
youtUnit availableLogicalWidth, const LayoutBlock* containingBlock) const; |
508 LayoutUnit computeLogicalHeightUsing(const Length& height, LayoutUnit intrin
sicContentHeight) const; | 508 LayoutUnit computeLogicalHeightUsing(SizeType, const Length& height, LayoutU
nit intrinsicContentHeight) const; |
509 LayoutUnit computeContentLogicalHeight(const Length& height, LayoutUnit intr
insicContentHeight) const; | 509 LayoutUnit computeContentLogicalHeight(SizeType, const Length& height, Layou
tUnit intrinsicContentHeight) const; |
510 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(const Length& height
, LayoutUnit intrinsicContentHeight) const; | 510 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(SizeType, const Leng
th& height, LayoutUnit intrinsicContentHeight) const; |
511 LayoutUnit computeReplacedLogicalWidthUsing(const Length& width) const; | 511 LayoutUnit computeReplacedLogicalWidthUsing(SizeType, const Length& width) c
onst; |
512 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic
alWidth, ShouldComputePreferred = ComputeActual) const; | 512 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic
alWidth, ShouldComputePreferred = ComputeActual) const; |
513 LayoutUnit computeReplacedLogicalHeightUsing(const Length& height) const; | 513 LayoutUnit computeReplacedLogicalHeightUsing(SizeType, const Length& height)
const; |
514 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log
icalHeight) const; | 514 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log
icalHeight) const; |
515 | 515 |
516 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com
puteActual) const; | 516 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com
puteActual) const; |
517 virtual LayoutUnit computeReplacedLogicalHeight() const; | 517 virtual LayoutUnit computeReplacedLogicalHeight() const; |
518 | 518 |
519 bool hasDefiniteLogicalWidth() const; | 519 bool hasDefiniteLogicalWidth() const; |
520 static bool percentageLogicalHeightIsResolvableFromBlock(const LayoutBlock*
containingBlock, bool outOfFlowPositioned); | 520 static bool percentageLogicalHeightIsResolvableFromBlock(const LayoutBlock*
containingBlock, bool outOfFlowPositioned); |
521 bool hasDefiniteLogicalHeight() const; | 521 bool hasDefiniteLogicalHeight() const; |
522 LayoutUnit computePercentageLogicalHeight(const Length& height) const; | 522 LayoutUnit computePercentageLogicalHeight(const Length& height) const; |
523 | 523 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 | 766 |
767 // Returns true if we queued up a paint invalidation. | 767 // Returns true if we queued up a paint invalidation. |
768 bool paintInvalidationLayerRectsForImage(WrappedImagePtr, const FillLayer&,
bool drawingBackground); | 768 bool paintInvalidationLayerRectsForImage(WrappedImagePtr, const FillLayer&,
bool drawingBackground); |
769 | 769 |
770 bool skipContainingBlockForPercentHeightCalculation(const LayoutBox* contain
ingBlock) const; | 770 bool skipContainingBlockForPercentHeightCalculation(const LayoutBox* contain
ingBlock) const; |
771 | 771 |
772 LayoutUnit containingBlockLogicalWidthForPositioned(const LayoutBoxModelObje
ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; | 772 LayoutUnit containingBlockLogicalWidthForPositioned(const LayoutBoxModelObje
ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; |
773 LayoutUnit containingBlockLogicalHeightForPositioned(const LayoutBoxModelObj
ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; | 773 LayoutUnit containingBlockLogicalHeightForPositioned(const LayoutBoxModelObj
ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; |
774 | 774 |
775 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; | 775 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; |
776 void computePositionedLogicalWidthUsing(Length logicalWidth, const LayoutBox
ModelObject* containerBlock, TextDirection containerDirection, | 776 void computePositionedLogicalWidthUsing(SizeType, Length logicalWidth, const
LayoutBoxModelObject* containerBlock, TextDirection containerDirection, |
777 LayoutUnit containerLogicalWidth, LayoutUnit bordersPlusPadding, | 777 LayoutUnit containerLogicalWidth, LayoutUnit bordersPlusPadding, |
778 const Length& logicalLeft, const Length& logicalRight, const Length& mar
ginLogicalLeft, | 778 const Length& logicalLeft, const Length& logicalRight, const Length& mar
ginLogicalLeft, |
779 const Length& marginLogicalRight, LogicalExtentComputedValues&) const; | 779 const Length& marginLogicalRight, LogicalExtentComputedValues&) const; |
780 void computePositionedLogicalHeightUsing(Length logicalHeightLength, const L
ayoutBoxModelObject* containerBlock, | 780 void computePositionedLogicalHeightUsing(SizeType, Length logicalHeightLengt
h, const LayoutBoxModelObject* containerBlock, |
781 LayoutUnit containerLogicalHeight, LayoutUnit bordersPlusPadding, Layout
Unit logicalHeight, | 781 LayoutUnit containerLogicalHeight, LayoutUnit bordersPlusPadding, Layout
Unit logicalHeight, |
782 const Length& logicalTop, const Length& logicalBottom, const Length& mar
ginLogicalTop, | 782 const Length& logicalTop, const Length& logicalBottom, const Length& mar
ginLogicalTop, |
783 const Length& marginLogicalBottom, LogicalExtentComputedValues&) const; | 783 const Length& marginLogicalBottom, LogicalExtentComputedValues&) const; |
784 | 784 |
785 void computePositionedLogicalHeightReplaced(LogicalExtentComputedValues&) co
nst; | 785 void computePositionedLogicalHeightReplaced(LogicalExtentComputedValues&) co
nst; |
786 void computePositionedLogicalWidthReplaced(LogicalExtentComputedValues&) con
st; | 786 void computePositionedLogicalWidthReplaced(LogicalExtentComputedValues&) con
st; |
787 | 787 |
788 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth) const; | 788 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth) const; |
789 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth, LayoutUnit
& marginStart, LayoutUnit& marginEnd) const; | 789 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth, LayoutUnit
& marginStart, LayoutUnit& marginEnd) const; |
790 | 790 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 if (UNLIKELY(inlineBoxWrapper() != 0)) | 912 if (UNLIKELY(inlineBoxWrapper() != 0)) |
913 deleteLineBoxWrapper(); | 913 deleteLineBoxWrapper(); |
914 } | 914 } |
915 | 915 |
916 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 916 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
917 } | 917 } |
918 | 918 |
919 } // namespace blink | 919 } // namespace blink |
920 | 920 |
921 #endif // LayoutBox_h | 921 #endif // LayoutBox_h |
OLD | NEW |