| 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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState
&, MapCoordinatesFlags = ApplyContainerFlip) const override; | 888 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState
&, MapCoordinatesFlags = ApplyContainerFlip) const override; |
| 889 void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState&, MapCoo
rdinatesFlags) const override; | 889 void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState&, MapCoo
rdinatesFlags) const override; |
| 890 | 890 |
| 891 void clearPreviousPaintInvalidationRects() override; | 891 void clearPreviousPaintInvalidationRects() override; |
| 892 | 892 |
| 893 LayoutBlock* percentHeightContainer() const { return m_rareData ? m_rareData
->m_percentHeightContainer : nullptr; } | 893 LayoutBlock* percentHeightContainer() const { return m_rareData ? m_rareData
->m_percentHeightContainer : nullptr; } |
| 894 void setPercentHeightContainer(LayoutBlock*); | 894 void setPercentHeightContainer(LayoutBlock*); |
| 895 void removeFromPercentHeightContainer(); | 895 void removeFromPercentHeightContainer(); |
| 896 void clearPercentHeightDescendants(); | 896 void clearPercentHeightDescendants(); |
| 897 | 897 |
| 898 bool hitTestClippedOutByRoundedBorder(const HitTestLocation& locationInConta
iner, const LayoutPoint& borderBoxLocation) const; |
| 899 |
| 898 protected: | 900 protected: |
| 899 void willBeDestroyed() override; | 901 void willBeDestroyed() override; |
| 900 | 902 |
| 901 void insertedIntoTree() override; | 903 void insertedIntoTree() override; |
| 902 void willBeRemovedFromTree() override; | 904 void willBeRemovedFromTree() override; |
| 903 | 905 |
| 904 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; | 906 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; |
| 905 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 907 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
| 906 void updateFromStyle() override; | 908 void updateFromStyle() override; |
| 907 | 909 |
| 908 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. | 910 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. |
| 909 // FIXME: make this a const method once the LayoutBox reference in BoxPainte
r is const. | 911 // FIXME: make this a const method once the LayoutBox reference in BoxPainte
r is const. |
| 910 bool getBackgroundPaintedExtent(LayoutRect&) const; | 912 bool getBackgroundPaintedExtent(LayoutRect&) const; |
| 911 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; | 913 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; |
| 912 bool computeBackgroundIsKnownToBeObscured() const override; | 914 bool computeBackgroundIsKnownToBeObscured() const override; |
| 913 | 915 |
| 914 virtual void computePositionedLogicalWidth(LogicalExtentComputedValues&) con
st; | 916 virtual void computePositionedLogicalWidth(LogicalExtentComputedValues&) con
st; |
| 915 | 917 |
| 916 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; | 918 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; |
| 917 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l
ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi
ng) const; | 919 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l
ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi
ng) const; |
| 918 | 920 |
| 919 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve
l() && !isInlineBlockOrInlineTable(); } | 921 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve
l() && !isInlineBlockOrInlineTable(); } |
| 920 | 922 |
| 921 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); | 923 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); |
| 922 | 924 |
| 923 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; | 925 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; |
| 924 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; | 926 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; |
| 925 | 927 |
| 926 bool hitTestClippedOutByRoundedBorder(const HitTestLocation& locationInConta
iner, const LayoutPoint& borderBoxLocation) const; | |
| 927 | |
| 928 PaintInvalidationReason getPaintInvalidationReason(const LayoutBoxModelObjec
t& paintInvalidationContainer, | 928 PaintInvalidationReason getPaintInvalidationReason(const LayoutBoxModelObjec
t& paintInvalidationContainer, |
| 929 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, | 929 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, |
| 930 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer) const override; | 930 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer) const override; |
| 931 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat
ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La
youtPoint& positionFromPaintInvalidationContainer) override; | 931 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat
ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La
youtPoint& positionFromPaintInvalidationContainer) override; |
| 932 | 932 |
| 933 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState
&) override; | 933 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState
&) override; |
| 934 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa
intInvalidationState) override; | 934 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa
intInvalidationState) override; |
| 935 | 935 |
| 936 bool hasStretchedLogicalWidth() const; | 936 bool hasStretchedLogicalWidth() const; |
| 937 | 937 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1140 || breakValue == BreakLeft | 1140 || breakValue == BreakLeft |
| 1141 || breakValue == BreakPage | 1141 || breakValue == BreakPage |
| 1142 || breakValue == BreakRecto | 1142 || breakValue == BreakRecto |
| 1143 || breakValue == BreakRight | 1143 || breakValue == BreakRight |
| 1144 || breakValue == BreakVerso; | 1144 || breakValue == BreakVerso; |
| 1145 } | 1145 } |
| 1146 | 1146 |
| 1147 } // namespace blink | 1147 } // namespace blink |
| 1148 | 1148 |
| 1149 #endif // LayoutBox_h | 1149 #endif // LayoutBox_h |
| OLD | NEW |