| 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 384 |
| 385 // For inline replaced elements, this function returns the inline box that o
wns us. Enables | 385 // For inline replaced elements, this function returns the inline box that o
wns us. Enables |
| 386 // the replaced RenderObject to quickly determine what line it is contained
on and to easily | 386 // the replaced RenderObject to quickly determine what line it is contained
on and to easily |
| 387 // iterate over structures on the line. | 387 // iterate over structures on the line. |
| 388 InlineBox* inlineBoxWrapper() const { return m_rareData ? m_rareData->m_inli
neBoxWrapper : 0; } | 388 InlineBox* inlineBoxWrapper() const { return m_rareData ? m_rareData->m_inli
neBoxWrapper : 0; } |
| 389 void setInlineBoxWrapper(InlineBox*); | 389 void setInlineBoxWrapper(InlineBox*); |
| 390 void deleteLineBoxWrapper(); | 390 void deleteLineBoxWrapper(); |
| 391 | 391 |
| 392 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons
t override; | 392 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons
t override; |
| 393 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o
verride; | 393 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o
verride; |
| 394 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); | |
| 395 | 394 |
| 396 virtual LayoutUnit containingBlockLogicalWidthForContent() const override; | 395 virtual LayoutUnit containingBlockLogicalWidthForContent() const override; |
| 397 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType
) const; | 396 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType
) const; |
| 398 | 397 |
| 399 LayoutUnit containingBlockAvailableLineWidth() const; | 398 LayoutUnit containingBlockAvailableLineWidth() const; |
| 400 LayoutUnit perpendicularContainingBlockLogicalHeight() const; | 399 LayoutUnit perpendicularContainingBlockLogicalHeight() const; |
| 401 | 400 |
| 402 virtual void updateLogicalWidth(); | 401 virtual void updateLogicalWidth(); |
| 403 virtual void updateLogicalHeight(); | 402 virtual void updateLogicalHeight(); |
| 404 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const; | 403 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic
alTop, LogicalExtentComputedValues&) const; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 | 498 |
| 500 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 499 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
| 501 | 500 |
| 502 void removeFloatingOrPositionedChildFromBlockLists(); | 501 void removeFloatingOrPositionedChildFromBlockLists(); |
| 503 | 502 |
| 504 RenderLayer* enclosingFloatPaintingLayer() const; | 503 RenderLayer* enclosingFloatPaintingLayer() const; |
| 505 | 504 |
| 506 virtual int firstLineBoxBaseline() const { return -1; } | 505 virtual int firstLineBoxBaseline() const { return -1; } |
| 507 virtual int inlineBlockBaseline(LineDirectionMode) const { return -1; } // R
eturns -1 if we should skip this box when computing the baseline of an inline-bl
ock. | 506 virtual int inlineBlockBaseline(LineDirectionMode) const { return -1; } // R
eturns -1 if we should skip this box when computing the baseline of an inline-bl
ock. |
| 508 | 507 |
| 509 bool shrinkToAvoidFloats() const; | |
| 510 virtual bool avoidsFloats() const; | 508 virtual bool avoidsFloats() const; |
| 511 | 509 |
| 512 bool isFlexItemIncludingDeprecated() const { return !isInline() && !isFloati
ngOrOutOfFlowPositioned() && parent() && parent()->isFlexibleBox(); } | 510 bool isFlexItemIncludingDeprecated() const { return !isInline() && !isFloati
ngOrOutOfFlowPositioned() && parent() && parent()->isFlexibleBox(); } |
| 513 | 511 |
| 514 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const override; | 512 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositio
nMode = PositionOnContainingLine) const override; |
| 515 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const override; | 513 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode
, LinePositionMode = PositionOnContainingLine) const override; |
| 516 | 514 |
| 517 virtual LayoutUnit offsetLeft() const override; | 515 virtual LayoutUnit offsetLeft() const override; |
| 518 virtual LayoutUnit offsetTop() const override; | 516 virtual LayoutUnit offsetTop() const override; |
| 519 | 517 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 const Length& marginLogicalRight, Lo
gicalExtentComputedValues&) const; | 656 const Length& marginLogicalRight, Lo
gicalExtentComputedValues&) const; |
| 659 void computePositionedLogicalHeightUsing(Length logicalHeightLength, const R
enderBoxModelObject* containerBlock, | 657 void computePositionedLogicalHeightUsing(Length logicalHeightLength, const R
enderBoxModelObject* containerBlock, |
| 660 LayoutUnit containerLogicalHeight,
LayoutUnit bordersPlusPadding, LayoutUnit logicalHeight, | 658 LayoutUnit containerLogicalHeight,
LayoutUnit bordersPlusPadding, LayoutUnit logicalHeight, |
| 661 const Length& logicalTop, const Len
gth& logicalBottom, const Length& marginLogicalTop, | 659 const Length& logicalTop, const Len
gth& logicalBottom, const Length& marginLogicalTop, |
| 662 const Length& marginLogicalBottom,
LogicalExtentComputedValues&) const; | 660 const Length& marginLogicalBottom,
LogicalExtentComputedValues&) const; |
| 663 | 661 |
| 664 void computePositionedLogicalHeightReplaced(LogicalExtentComputedValues&) co
nst; | 662 void computePositionedLogicalHeightReplaced(LogicalExtentComputedValues&) co
nst; |
| 665 void computePositionedLogicalWidthReplaced(LogicalExtentComputedValues&) con
st; | 663 void computePositionedLogicalWidthReplaced(LogicalExtentComputedValues&) con
st; |
| 666 | 664 |
| 667 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth) const; | 665 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth) const; |
| 668 LayoutUnit fillAvailableMeasure(LayoutUnit availableLogicalWidth, LayoutUnit
& marginStart, LayoutUnit& marginEnd) const; | |
| 669 | 666 |
| 670 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const; | 667 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo
utUnit& maxLogicalWidth) const; |
| 671 | 668 |
| 672 // This function calculates the minimum and maximum preferred widths for an
object. | 669 // This function calculates the minimum and maximum preferred widths for an
object. |
| 673 // These values are used in shrink-to-fit layout systems. | 670 // These values are used in shrink-to-fit layout systems. |
| 674 // These include tables, positioned objects, floats and flexible boxes. | 671 // These include tables, positioned objects, floats and flexible boxes. |
| 675 virtual void computePreferredLogicalWidths() { clearPreferredLogicalWidthsDi
rty(); } | 672 virtual void computePreferredLogicalWidths() { clearPreferredLogicalWidthsDi
rty(); } |
| 676 | 673 |
| 677 RenderBoxRareData& ensureRareData() | 674 RenderBoxRareData& ensureRareData() |
| 678 { | 675 { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 if (UNLIKELY(inlineBoxWrapper() != 0)) | 751 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 755 deleteLineBoxWrapper(); | 752 deleteLineBoxWrapper(); |
| 756 } | 753 } |
| 757 | 754 |
| 758 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 755 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 759 } | 756 } |
| 760 | 757 |
| 761 } // namespace blink | 758 } // namespace blink |
| 762 | 759 |
| 763 #endif // RenderBox_h | 760 #endif // RenderBox_h |
| OLD | NEW |