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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
976 protected: | 976 protected: |
977 void willBeDestroyed() override; | 977 void willBeDestroyed() override; |
978 | 978 |
979 void insertedIntoTree() override; | 979 void insertedIntoTree() override; |
980 void willBeRemovedFromTree() override; | 980 void willBeRemovedFromTree() override; |
981 | 981 |
982 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; | 982 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; |
983 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 983 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
984 void updateFromStyle() override; | 984 void updateFromStyle() override; |
985 | 985 |
| 986 virtual ItemPosition selfAlignmentNormalBehavior() const { return ItemPositi
onStretch; } |
| 987 |
986 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. | 988 // Returns false if it could not cheaply compute the extent (e.g. fixed back
ground), in which case the returned rect may be incorrect. |
987 // FIXME: make this a const method once the LayoutBox reference in BoxPainte
r is const. | 989 // FIXME: make this a const method once the LayoutBox reference in BoxPainte
r is const. |
988 bool getBackgroundPaintedExtent(LayoutRect&) const; | 990 bool getBackgroundPaintedExtent(LayoutRect&) const; |
989 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; | 991 virtual bool foregroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect,
unsigned maxDepthToTest) const; |
990 bool computeBackgroundIsKnownToBeObscured() const override; | 992 bool computeBackgroundIsKnownToBeObscured() const override; |
991 | 993 |
992 virtual void computePositionedLogicalWidth(LogicalExtentComputedValues&) con
st; | 994 virtual void computePositionedLogicalWidth(LogicalExtentComputedValues&) con
st; |
993 | 995 |
994 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; | 996 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; |
995 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l
ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi
ng) const; | 997 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l
ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi
ng) const; |
996 | 998 |
997 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve
l() && !isInlineBlockOrInlineTable(); } | 999 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve
l() && !isInlineBlockOrInlineTable(); } |
998 | 1000 |
999 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); | 1001 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); |
1000 | 1002 |
1001 virtual bool hitTestOverflowControl(HitTestResult&, const HitTestLocation&,
const LayoutPoint&) { return false; } | 1003 virtual bool hitTestOverflowControl(HitTestResult&, const HitTestLocation&,
const LayoutPoint&) { return false; } |
1002 virtual bool hitTestChildren(HitTestResult&, const HitTestLocation& location
InContainer, const LayoutPoint& accumulatedOffset, HitTestAction); | 1004 virtual bool hitTestChildren(HitTestResult&, const HitTestLocation& location
InContainer, const LayoutPoint& accumulatedOffset, HitTestAction); |
1003 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; | 1005 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; |
1004 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; | 1006 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; |
1005 | 1007 |
1006 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState
&) override; | 1008 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState
&) override; |
1007 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidatorContex
t&) const override; | 1009 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidatorContex
t&) const override; |
1008 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa
intInvalidationState) override; | 1010 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa
intInvalidationState) override; |
1009 | 1011 |
| 1012 bool columnFlexItemHasStretchAlignment() const; |
| 1013 bool isStretchingColumnFlexItem() const; |
1010 bool hasStretchedLogicalWidth() const; | 1014 bool hasStretchedLogicalWidth() const; |
1011 | 1015 |
1012 void excludeScrollbars(LayoutRect&, OverlayScrollbarClipBehavior = IgnoreOve
rlayScrollbarSize) const; | 1016 void excludeScrollbars(LayoutRect&, OverlayScrollbarClipBehavior = IgnoreOve
rlayScrollbarSize) const; |
1013 | 1017 |
1014 LayoutUnit containingBlockLogicalWidthForPositioned(const LayoutBoxModelObje
ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; | 1018 LayoutUnit containingBlockLogicalWidthForPositioned(const LayoutBoxModelObje
ct* containingBlock, bool checkForPerpendicularWritingMode = true) const; |
1015 LayoutUnit containingBlockLogicalHeightForPositioned(const LayoutBoxModelObj
ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; | 1019 LayoutUnit containingBlockLogicalHeightForPositioned(const LayoutBoxModelObj
ect* containingBlock, bool checkForPerpendicularWritingMode = true) const; |
1016 | 1020 |
1017 static void computeBlockStaticDistance(Length& logicalTop, Length& logicalBo
ttom, const LayoutBox* child, const LayoutBoxModelObject* containerBlock); | 1021 static void computeBlockStaticDistance(Length& logicalTop, Length& logicalBo
ttom, const LayoutBox* child, const LayoutBoxModelObject* containerBlock); |
1018 static void computeInlineStaticDistance(Length& logicalLeft, Length& logical
Right, const LayoutBox* child, const LayoutBoxModelObject* containerBlock, Layou
tUnit containerLogicalWidth); | 1022 static void computeInlineStaticDistance(Length& logicalLeft, Length& logical
Right, const LayoutBox* child, const LayoutBoxModelObject* containerBlock, Layou
tUnit containerLogicalWidth); |
1019 static void computeLogicalLeftPositionedOffset(LayoutUnit& logicalLeftPos, c
onst LayoutBox* child, LayoutUnit logicalWidthValue, const LayoutBoxModelObject*
containerBlock, LayoutUnit containerLogicalWidth); | 1023 static void computeLogicalLeftPositionedOffset(LayoutUnit& logicalLeftPos, c
onst LayoutBox* child, LayoutUnit logicalWidthValue, const LayoutBoxModelObject*
containerBlock, LayoutUnit containerLogicalWidth); |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 || breakValue == BreakLeft | 1218 || breakValue == BreakLeft |
1215 || breakValue == BreakPage | 1219 || breakValue == BreakPage |
1216 || breakValue == BreakRecto | 1220 || breakValue == BreakRecto |
1217 || breakValue == BreakRight | 1221 || breakValue == BreakRight |
1218 || breakValue == BreakVerso; | 1222 || breakValue == BreakVerso; |
1219 } | 1223 } |
1220 | 1224 |
1221 } // namespace blink | 1225 } // namespace blink |
1222 | 1226 |
1223 #endif // LayoutBox_h | 1227 #endif // LayoutBox_h |
OLD | NEW |