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