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 * |
11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
20 * | 20 * |
21 */ | 21 */ |
22 | 22 |
23 #ifndef LayoutBox_h | 23 #ifndef LayoutBox_h |
24 #define LayoutBox_h | 24 #define LayoutBox_h |
25 | 25 |
26 #include "core/CoreExport.h" | 26 #include "core/CoreExport.h" |
27 #include "core/layout/LayoutBoxModelObject.h" | 27 #include "core/layout/LayoutBoxModelObject.h" |
28 #include "core/layout/OverflowModel.h" | 28 #include "core/layout/OverflowModel.h" |
| 29 #include "core/layout/ScrollEnums.h" |
29 #include "platform/scroll/ScrollTypes.h" | 30 #include "platform/scroll/ScrollTypes.h" |
30 #include "platform/scroll/ScrollableArea.h" | 31 #include "platform/scroll/ScrollableArea.h" |
31 | 32 |
32 namespace blink { | 33 namespace blink { |
33 | 34 |
34 class LayoutBlockFlow; | 35 class LayoutBlockFlow; |
35 class LayoutMultiColumnSpannerPlaceholder; | 36 class LayoutMultiColumnSpannerPlaceholder; |
36 class ShapeOutsideInfo; | 37 class ShapeOutsideInfo; |
37 | 38 |
38 struct PaintInfo; | 39 struct PaintInfo; |
39 | 40 |
40 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; | 41 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; |
41 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde
rPadding }; | 42 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde
rPadding }; |
42 // When painting, overlay scrollbars do not take up space and should not affect | 43 // When painting, overlay scrollbars do not take up space and should not affect |
43 // clipping behavior. During hit testing, overlay scrollbars behave like regular | 44 // clipping behavior. During hit testing, overlay scrollbars behave like regular |
44 // scrollbars and should change how hit testing is clipped. | 45 // scrollbars and should change how hit testing is clipped. |
45 enum OverlayScrollbarClipBehavior { IgnoreOverlayScrollbarSize, ExcludeOverlaySc
rollbarSizeForHitTesting }; | |
46 enum MarginDirection { BlockDirection, InlineDirection }; | 46 enum MarginDirection { BlockDirection, InlineDirection }; |
47 | 47 |
48 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; | 48 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; |
49 | 49 |
50 enum ScrollOffsetClamping { | |
51 ScrollOffsetUnclamped, | |
52 ScrollOffsetClamped | |
53 }; | |
54 | |
55 enum ApplyOverflowClipFlag { | 50 enum ApplyOverflowClipFlag { |
56 ApplyOverflowClip, | 51 ApplyOverflowClip, |
57 ApplyNonScrollOverflowClip | 52 ApplyNonScrollOverflowClip |
58 }; | 53 }; |
59 | 54 |
60 using SnapAreaSet = HashSet<const LayoutBox*>; | 55 using SnapAreaSet = HashSet<const LayoutBox*>; |
61 | 56 |
62 struct LayoutBoxRareData { | 57 struct LayoutBoxRareData { |
63 WTF_MAKE_NONCOPYABLE(LayoutBoxRareData); USING_FAST_MALLOC(LayoutBoxRareData
); | 58 WTF_MAKE_NONCOPYABLE(LayoutBoxRareData); USING_FAST_MALLOC(LayoutBoxRareData
); |
64 public: | 59 public: |
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 || breakValue == BreakLeft | 1213 || breakValue == BreakLeft |
1219 || breakValue == BreakPage | 1214 || breakValue == BreakPage |
1220 || breakValue == BreakRecto | 1215 || breakValue == BreakRecto |
1221 || breakValue == BreakRight | 1216 || breakValue == BreakRight |
1222 || breakValue == BreakVerso; | 1217 || breakValue == BreakVerso; |
1223 } | 1218 } |
1224 | 1219 |
1225 } // namespace blink | 1220 } // namespace blink |
1226 | 1221 |
1227 #endif // LayoutBox_h | 1222 #endif // LayoutBox_h |
OLD | NEW |