| 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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 LayoutRect logicalLayoutOverflowRectForPropagation(RenderStyle*) const; | 573 LayoutRect logicalLayoutOverflowRectForPropagation(RenderStyle*) const; |
| 574 LayoutRect layoutOverflowRectForPropagation(RenderStyle*) const; | 574 LayoutRect layoutOverflowRectForPropagation(RenderStyle*) const; |
| 575 | 575 |
| 576 bool hasRenderOverflow() const { return m_overflow; } | 576 bool hasRenderOverflow() const { return m_overflow; } |
| 577 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta
ins(m_overflow->visualOverflowRect()); } | 577 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta
ins(m_overflow->visualOverflowRect()); } |
| 578 | 578 |
| 579 virtual bool needsPreferredWidthsRecalculation() const; | 579 virtual bool needsPreferredWidthsRecalculation() const; |
| 580 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */
, double& /* intrinsicRatio */) const { } | 580 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */
, double& /* intrinsicRatio */) const { } |
| 581 | 581 |
| 582 IntSize scrolledContentOffset() const; | 582 IntSize scrolledContentOffset() const; |
| 583 void applyCachedClipAndScrollOffsetForRepaint(LayoutRect& paintRect) const; | 583 void applyCachedClipAndScrollOffsetForPaintInvalidation(LayoutRect& paintRec
t) const; |
| 584 | 584 |
| 585 virtual bool hasRelativeLogicalHeight() const; | 585 virtual bool hasRelativeLogicalHeight() const; |
| 586 | 586 |
| 587 bool hasHorizontalLayoutOverflow() const | 587 bool hasHorizontalLayoutOverflow() const |
| 588 { | 588 { |
| 589 if (!m_overflow) | 589 if (!m_overflow) |
| 590 return false; | 590 return false; |
| 591 | 591 |
| 592 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect(); | 592 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect(); |
| 593 LayoutRect noOverflowRect = this->noOverflowRect(); | 593 LayoutRect noOverflowRect = this->noOverflowRect(); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(GraphicsContext*,
const BoxDecorationData&) const; | 657 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(GraphicsContext*,
const BoxDecorationData&) const; |
| 658 bool backgroundHasOpaqueTopLayer() const; | 658 bool backgroundHasOpaqueTopLayer() const; |
| 659 | 659 |
| 660 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const; | 660 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const; |
| 661 | 661 |
| 662 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; | 662 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; |
| 663 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe
ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons
t; | 663 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe
ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons
t; |
| 664 | 664 |
| 665 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i
sInlineBlockOrInlineTable(); } | 665 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i
sInlineBlockOrInlineTable(); } |
| 666 | 666 |
| 667 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0, const PaintInvalidationState* = 0) const OVERRIDE; | 667 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida
tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool*
wasFixed = 0, const PaintInvalidationState* = 0) const OVERRIDE; |
| 668 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst OVERRIDE; | 668 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst OVERRIDE; |
| 669 | 669 |
| 670 void paintRootBoxFillLayers(const PaintInfo&); | 670 void paintRootBoxFillLayers(const PaintInfo&); |
| 671 | 671 |
| 672 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); | 672 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); |
| 673 | 673 |
| 674 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur
rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container
Rect) const OVERRIDE; | 674 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur
rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container
Rect) const OVERRIDE; |
| 675 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; | 675 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; |
| 676 | 676 |
| 677 void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalH
eight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight;
} | 677 void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalH
eight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight;
} |
| 678 | 678 |
| 679 virtual InvalidationReason getPaintInvalidationReason(const RenderLayerModel
Object& paintInvalidationContainer, | 679 virtual InvalidationReason getPaintInvalidationReason(const RenderLayerModel
Object& paintInvalidationContainer, |
| 680 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, | 680 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, |
| 681 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer) OVERRIDE; | 681 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer) OVERRIDE; |
| 682 | 682 |
| 683 virtual void clearPaintInvalidationState(const PaintInvalidationState&) OVER
RIDE; | 683 virtual void clearPaintInvalidationState(const PaintInvalidationState&) OVER
RIDE; |
| 684 #if ENABLE(ASSERT) | 684 #if ENABLE(ASSERT) |
| 685 virtual bool paintInvalidationStateIsDirty() const OVERRIDE; | 685 virtual bool paintInvalidationStateIsDirty() const OVERRIDE; |
| 686 #endif | 686 #endif |
| 687 | 687 |
| 688 private: | 688 private: |
| 689 void updateShapeOutsideInfoAfterStyleChange(const RenderStyle&, const Render
Style* oldStyle); | 689 void updateShapeOutsideInfoAfterStyleChange(const RenderStyle&, const Render
Style* oldStyle); |
| 690 void updateGridPositionAfterStyleChange(const RenderStyle*); | 690 void updateGridPositionAfterStyleChange(const RenderStyle*); |
| 691 | 691 |
| 692 bool autoWidthShouldFitContent() const; | 692 bool autoWidthShouldFitContent() const; |
| 693 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi
calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&)
const; | 693 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi
calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&)
const; |
| 694 | 694 |
| 695 // Returns true if we did a full repaint | 695 // Returns true if we did a full paint invalidation |
| 696 bool repaintLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawi
ngBackground); | 696 bool paintInvalidationLayerRectsForImage(WrappedImagePtr, const FillLayer&,
bool drawingBackground); |
| 697 | 697 |
| 698 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain
ingBlock) const; | 698 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain
ingBlock) const; |
| 699 | 699 |
| 700 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje
ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; | 700 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje
ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; |
| 701 LayoutUnit containingBlockLogicalHeightForPositioned(const RenderBoxModelObj
ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; | 701 LayoutUnit containingBlockLogicalHeightForPositioned(const RenderBoxModelObj
ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; |
| 702 | 702 |
| 703 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; | 703 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; |
| 704 void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBox
ModelObject* containerBlock, TextDirection containerDirection, | 704 void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBox
ModelObject* containerBlock, TextDirection containerDirection, |
| 705 LayoutUnit containerLogicalWidth, La
youtUnit bordersPlusPadding, | 705 LayoutUnit containerLogicalWidth, La
youtUnit bordersPlusPadding, |
| 706 const Length& logicalLeft, const Len
gth& logicalRight, const Length& marginLogicalLeft, | 706 const Length& logicalLeft, const Len
gth& logicalRight, const Length& marginLogicalLeft, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 if (UNLIKELY(inlineBoxWrapper() != 0)) | 799 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 800 deleteLineBoxWrapper(); | 800 deleteLineBoxWrapper(); |
| 801 } | 801 } |
| 802 | 802 |
| 803 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 803 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 804 } | 804 } |
| 805 | 805 |
| 806 } // namespace blink | 806 } // namespace blink |
| 807 | 807 |
| 808 #endif // RenderBox_h | 808 #endif // RenderBox_h |
| OLD | NEW |