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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 protected: | 961 protected: |
962 void willBeDestroyed() override; | 962 void willBeDestroyed() override; |
963 | 963 |
964 void insertedIntoTree() override; | 964 void insertedIntoTree() override; |
965 void willBeRemovedFromTree() override; | 965 void willBeRemovedFromTree() override; |
966 | 966 |
967 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; | 967 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; |
968 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 968 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
969 void updateFromStyle() override; | 969 void updateFromStyle() override; |
970 | 970 |
| 971 virtual ItemPosition selfAlignmentNormalBehavior() const { return ItemPositi
onStretch; } |
| 972 |
971 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. | 973 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. |
972 // FIXME: make this a const method once the LayoutBox reference in BoxPainte
r is const. | 974 // FIXME: make this a const method once the LayoutBox reference in BoxPainte
r is const. |
973 bool getBackgroundPaintedExtent(LayoutRect&) const; | 975 bool getBackgroundPaintedExtent(LayoutRect&) const; |
974 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; | 976 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; |
975 bool computeBackgroundIsKnownToBeObscured() const override; | 977 bool computeBackgroundIsKnownToBeObscured() const override; |
976 | 978 |
977 virtual void computePositionedLogicalWidth(LogicalExtentComputedValues&) con
st; | 979 virtual void computePositionedLogicalWidth(LogicalExtentComputedValues&) con
st; |
978 | 980 |
979 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; | 981 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; |
980 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l
ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi
ng) const; | 982 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l
ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi
ng) const; |
981 | 983 |
982 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve
l() && !isInlineBlockOrInlineTable(); } | 984 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve
l() && !isInlineBlockOrInlineTable(); } |
983 | 985 |
984 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); | 986 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); |
985 | 987 |
986 virtual bool hitTestOverflowControl(HitTestResult&, const HitTestLocation&,
const LayoutPoint&) { return false; } | 988 virtual bool hitTestOverflowControl(HitTestResult&, const HitTestLocation&,
const LayoutPoint&) { return false; } |
987 virtual bool hitTestChildren(HitTestResult&, const HitTestLocation& location
InContainer, const LayoutPoint& accumulatedOffset, HitTestAction); | 989 virtual bool hitTestChildren(HitTestResult&, const HitTestLocation& location
InContainer, const LayoutPoint& accumulatedOffset, HitTestAction); |
988 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; | 990 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; |
989 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; | 991 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; |
990 | 992 |
991 PaintInvalidationReason getPaintInvalidationReason(const PaintInvalidationSt
ate&, | 993 PaintInvalidationReason getPaintInvalidationReason(const PaintInvalidationSt
ate&, |
992 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, | 994 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, |
993 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer) const override; | 995 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer) const override; |
994 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat
ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La
youtPoint& positionFromPaintInvalidationContainer) override; | 996 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat
ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La
youtPoint& positionFromPaintInvalidationContainer) override; |
995 | 997 |
996 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState
&) override; | 998 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState
&) override; |
997 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa
intInvalidationState) override; | 999 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa
intInvalidationState) override; |
998 | 1000 |
| 1001 bool columnFlexItemHasStretchAlignment() const; |
| 1002 bool isStretchingColumnFlexItem() const; |
999 bool hasStretchedLogicalWidth() const; | 1003 bool hasStretchedLogicalWidth() const; |
1000 | 1004 |
1001 bool hasNonCompositedScrollbars() const final; | 1005 bool hasNonCompositedScrollbars() const final; |
1002 void excludeScrollbars(LayoutRect&, OverlayScrollbarClipBehavior = IgnoreOve
rlayScrollbarSize) const; | 1006 void excludeScrollbars(LayoutRect&, OverlayScrollbarClipBehavior = IgnoreOve
rlayScrollbarSize) const; |
1003 | 1007 |
1004 LayoutUnit containingBlockLogicalWidthForPositioned(const LayoutBoxModelObje
ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; | 1008 LayoutUnit containingBlockLogicalWidthForPositioned(const LayoutBoxModelObje
ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; |
1005 LayoutUnit containingBlockLogicalHeightForPositioned(const LayoutBoxModelObj
ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; | 1009 LayoutUnit containingBlockLogicalHeightForPositioned(const LayoutBoxModelObj
ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; |
1006 | 1010 |
1007 static void computeBlockStaticDistance(Length& logicalTop, Length& logicalBo
ttom, const LayoutBox* child, const LayoutBoxModelObject* containerBlock); | 1011 static void computeBlockStaticDistance(Length& logicalTop, Length& logicalBo
ttom, const LayoutBox* child, const LayoutBoxModelObject* containerBlock); |
1008 static void computeInlineStaticDistance(Length& logicalLeft, Length& logical
Right, const LayoutBox* child, const LayoutBoxModelObject* containerBlock, Layou
tUnit containerLogicalWidth); | 1012 static void computeInlineStaticDistance(Length& logicalLeft, Length& logical
Right, const LayoutBox* child, const LayoutBoxModelObject* containerBlock, Layou
tUnit containerLogicalWidth); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 || breakValue == BreakLeft | 1222 || breakValue == BreakLeft |
1219 || breakValue == BreakPage | 1223 || breakValue == BreakPage |
1220 || breakValue == BreakRecto | 1224 || breakValue == BreakRecto |
1221 || breakValue == BreakRight | 1225 || breakValue == BreakRight |
1222 || breakValue == BreakVerso; | 1226 || breakValue == BreakVerso; |
1223 } | 1227 } |
1224 | 1228 |
1225 } // namespace blink | 1229 } // namespace blink |
1226 | 1230 |
1227 #endif // LayoutBox_h | 1231 #endif // LayoutBox_h |
OLD | NEW |