| 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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; | 627 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; |
| 628 virtual void updateFromStyle() OVERRIDE; | 628 virtual void updateFromStyle() OVERRIDE; |
| 629 | 629 |
| 630 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. | 630 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. |
| 631 bool getBackgroundPaintedExtent(LayoutRect&) const; | 631 bool getBackgroundPaintedExtent(LayoutRect&) const; |
| 632 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; | 632 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; |
| 633 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE; | 633 virtual bool computeBackgroundIsKnownToBeObscured() OVERRIDE; |
| 634 | 634 |
| 635 void paintBackground(const PaintInfo&, const LayoutRect&, BackgroundBleedAvo
idance = BackgroundBleedNone); | 635 void paintBackground(const PaintInfo&, const LayoutRect&, BackgroundBleedAvo
idance = BackgroundBleedNone); |
| 636 | 636 |
| 637 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer*, const
LayoutRect&, BackgroundBleedAvoidance, CompositeOperator, RenderObject* backgrou
ndObject); | 637 void paintFillLayer(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, BackgroundBleedAvoidance, CompositeOperator, RenderObject* backgrou
ndObject); |
| 638 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer*, const
LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, CompositeOperator
= CompositeSourceOver, RenderObject* backgroundObject = 0); | 638 void paintFillLayers(const PaintInfo&, const Color&, const FillLayer&, const
LayoutRect&, BackgroundBleedAvoidance = BackgroundBleedNone, CompositeOperator
= CompositeSourceOver, RenderObject* backgroundObject = 0); |
| 639 | 639 |
| 640 void paintMaskImages(const PaintInfo&, const LayoutRect&); | 640 void paintMaskImages(const PaintInfo&, const LayoutRect&); |
| 641 void paintBoxDecorationBackgroundWithRect(PaintInfo&, const LayoutPoint&, co
nst LayoutRect&); | 641 void paintBoxDecorationBackgroundWithRect(PaintInfo&, const LayoutPoint&, co
nst LayoutRect&); |
| 642 | 642 |
| 643 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(GraphicsContext*)
const; | 643 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(GraphicsContext*)
const; |
| 644 bool backgroundHasOpaqueTopLayer() const; | 644 bool backgroundHasOpaqueTopLayer() const; |
| 645 | 645 |
| 646 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const; | 646 void computePositionedLogicalWidth(LogicalExtentComputedValues&) const; |
| 647 | 647 |
| 648 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; | 648 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 668 virtual void incrementallyInvalidatePaint(const RenderLayerModelObject* pain
tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds
) OVERRIDE; | 668 virtual void incrementallyInvalidatePaint(const RenderLayerModelObject* pain
tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds
) OVERRIDE; |
| 669 | 669 |
| 670 private: | 670 private: |
| 671 void updateShapeOutsideInfoAfterStyleChange(const RenderStyle&, const Render
Style* oldStyle); | 671 void updateShapeOutsideInfoAfterStyleChange(const RenderStyle&, const Render
Style* oldStyle); |
| 672 void updateGridPositionAfterStyleChange(const RenderStyle*); | 672 void updateGridPositionAfterStyleChange(const RenderStyle*); |
| 673 | 673 |
| 674 bool autoWidthShouldFitContent() const; | 674 bool autoWidthShouldFitContent() const; |
| 675 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi
calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&)
const; | 675 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi
calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&)
const; |
| 676 | 676 |
| 677 // Returns true if we did a full repaint | 677 // Returns true if we did a full repaint |
| 678 bool repaintLayerRectsForImage(WrappedImagePtr image, const FillLayer* layer
s, bool drawingBackground); | 678 bool repaintLayerRectsForImage(WrappedImagePtr, const FillLayer&, bool drawi
ngBackground); |
| 679 | 679 |
| 680 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain
ingBlock) const; | 680 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain
ingBlock) const; |
| 681 | 681 |
| 682 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje
ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; | 682 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje
ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; |
| 683 LayoutUnit containingBlockLogicalHeightForPositioned(const RenderBoxModelObj
ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; | 683 LayoutUnit containingBlockLogicalHeightForPositioned(const RenderBoxModelObj
ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; |
| 684 | 684 |
| 685 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; | 685 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; |
| 686 void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBox
ModelObject* containerBlock, TextDirection containerDirection, | 686 void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBox
ModelObject* containerBlock, TextDirection containerDirection, |
| 687 LayoutUnit containerLogicalWidth, La
youtUnit bordersPlusPadding, | 687 LayoutUnit containerLogicalWidth, La
youtUnit bordersPlusPadding, |
| 688 const Length& logicalLeft, const Len
gth& logicalRight, const Length& marginLogicalLeft, | 688 const Length& logicalLeft, const Len
gth& logicalRight, const Length& marginLogicalLeft, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 if (UNLIKELY(inlineBoxWrapper() != 0)) | 775 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 776 deleteLineBoxWrapper(); | 776 deleteLineBoxWrapper(); |
| 777 } | 777 } |
| 778 | 778 |
| 779 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 779 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 780 } | 780 } |
| 781 | 781 |
| 782 } // namespace WebCore | 782 } // namespace WebCore |
| 783 | 783 |
| 784 #endif // RenderBox_h | 784 #endif // RenderBox_h |
| OLD | NEW |