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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 | 940 |
941 virtual void computePositionedLogicalWidth(LogicalExtentComputedValues&) con
st; | 941 virtual void computePositionedLogicalWidth(LogicalExtentComputedValues&) con
st; |
942 | 942 |
943 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; | 943 LayoutUnit computeIntrinsicLogicalWidthUsing(const Length& logicalWidthLengt
h, LayoutUnit availableLogicalWidth, LayoutUnit borderAndPadding) const; |
944 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l
ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi
ng) const; | 944 virtual LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& l
ogicalHeightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPaddi
ng) const; |
945 | 945 |
946 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve
l() && !isInlineBlockOrInlineTable(); } | 946 virtual bool shouldComputeSizeAsReplaced() const { return isAtomicInlineLeve
l() && !isInlineBlockOrInlineTable(); } |
947 | 947 |
948 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); | 948 LayoutObject* splitAnonymousBoxesAroundChild(LayoutObject* beforeChild); |
949 | 949 |
| 950 virtual bool hitTestChildren(HitTestResult&, const HitTestLocation& location
InContainer, const LayoutPoint& accumulatedOffset, HitTestAction); |
950 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; | 951 void addLayerHitTestRects(LayerHitTestRects&, const PaintLayer* currentCompo
sitedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) con
st override; |
951 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; | 952 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; |
952 | 953 |
953 PaintInvalidationReason getPaintInvalidationReason(const LayoutBoxModelObjec
t& paintInvalidationContainer, | 954 PaintInvalidationReason getPaintInvalidationReason(const LayoutBoxModelObjec
t& paintInvalidationContainer, |
954 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, | 955 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva
lidationContainer, |
955 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer) const override; | 956 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva
lidationContainer) const override; |
956 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat
ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La
youtPoint& positionFromPaintInvalidationContainer) override; | 957 void incrementallyInvalidatePaint(const LayoutBoxModelObject& paintInvalidat
ionContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds, const La
youtPoint& positionFromPaintInvalidationContainer) override; |
957 | 958 |
958 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState
&) override; | 959 PaintInvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState
&) override; |
959 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa
intInvalidationState) override; | 960 void invalidatePaintOfSubtreesIfNeeded(const PaintInvalidationState& childPa
intInvalidationState) override; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1035 // The frame rect may change because of layout of other objects. | 1036 // The frame rect may change because of layout of other objects. |
1036 // Should check this object for paint invalidation. | 1037 // Should check this object for paint invalidation. |
1037 if (!needsLayout()) | 1038 if (!needsLayout()) |
1038 setMayNeedPaintInvalidation(); | 1039 setMayNeedPaintInvalidation(); |
1039 } | 1040 } |
1040 | 1041 |
1041 // Returns true if the box intersects the viewport visible to the user. | 1042 // Returns true if the box intersects the viewport visible to the user. |
1042 bool intersectsVisibleViewport(); | 1043 bool intersectsVisibleViewport(); |
1043 | 1044 |
1044 virtual bool isInSelfHitTestingPhase(HitTestAction hitTestAction) const { re
turn hitTestAction == HitTestForeground; } | 1045 virtual bool isInSelfHitTestingPhase(HitTestAction hitTestAction) const { re
turn hitTestAction == HitTestForeground; } |
1045 virtual bool hitTestChildren(HitTestResult&, const HitTestLocation& location
InContainer, const LayoutPoint& accumulatedOffset, HitTestAction); | |
1046 | 1046 |
1047 void updateBackgroundAttachmentFixedStatusAfterStyleChange(); | 1047 void updateBackgroundAttachmentFixedStatusAfterStyleChange(); |
1048 | 1048 |
1049 // The CSS border box rect for this box. | 1049 // The CSS border box rect for this box. |
1050 // | 1050 // |
1051 // The rectangle is in this box's physical coordinates but with a | 1051 // The rectangle is in this box's physical coordinates but with a |
1052 // flipped block-flow direction (see the COORDINATE SYSTEMS section | 1052 // flipped block-flow direction (see the COORDINATE SYSTEMS section |
1053 // in LayoutBoxModelObject). The location is the distance from this | 1053 // in LayoutBoxModelObject). The location is the distance from this |
1054 // object's border edge to the container's border edge (which is not | 1054 // object's border edge to the container's border edge (which is not |
1055 // always the parent). Thus it includes any logical top/left along | 1055 // always the parent). Thus it includes any logical top/left along |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1167 || breakValue == BreakLeft | 1167 || breakValue == BreakLeft |
1168 || breakValue == BreakPage | 1168 || breakValue == BreakPage |
1169 || breakValue == BreakRecto | 1169 || breakValue == BreakRecto |
1170 || breakValue == BreakRight | 1170 || breakValue == BreakRight |
1171 || breakValue == BreakVerso; | 1171 || breakValue == BreakVerso; |
1172 } | 1172 } |
1173 | 1173 |
1174 } // namespace blink | 1174 } // namespace blink |
1175 | 1175 |
1176 #endif // LayoutBox_h | 1176 #endif // LayoutBox_h |
OLD | NEW |