| 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/shapes/ShapeOutsideInfo.h" | |
| 30 #include "platform/scroll/ScrollTypes.h" | 29 #include "platform/scroll/ScrollTypes.h" |
| 31 #include "platform/scroll/ScrollableArea.h" | 30 #include "platform/scroll/ScrollableArea.h" |
| 32 | 31 |
| 33 namespace blink { | 32 namespace blink { |
| 34 | 33 |
| 34 class LayoutBlockFlow; |
| 35 class LayoutMultiColumnSpannerPlaceholder; | 35 class LayoutMultiColumnSpannerPlaceholder; |
| 36 class ShapeOutsideInfo; |
| 36 | 37 |
| 37 struct PaintInfo; | 38 struct PaintInfo; |
| 38 | 39 |
| 39 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; | 40 enum SizeType { MainOrPreferredSize, MinSize, MaxSize }; |
| 40 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde
rPadding }; | 41 enum AvailableLogicalHeightType { ExcludeMarginBorderPadding, IncludeMarginBorde
rPadding }; |
| 41 enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayS
crollbarSize }; | 42 enum OverlayScrollbarSizeRelevancy { IgnoreOverlayScrollbarSize, IncludeOverlayS
crollbarSize }; |
| 42 enum MarginDirection { BlockDirection, InlineDirection }; | 43 enum MarginDirection { BlockDirection, InlineDirection }; |
| 43 | 44 |
| 44 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; | 45 enum ShouldComputePreferred { ComputeActual, ComputePreferred }; |
| 45 | 46 |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 } | 702 } |
| 702 | 703 |
| 703 virtual LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject*) con
st | 704 virtual LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject*) con
st |
| 704 { | 705 { |
| 705 ASSERT_NOT_REACHED(); | 706 ASSERT_NOT_REACHED(); |
| 706 return nullptr; | 707 return nullptr; |
| 707 } | 708 } |
| 708 | 709 |
| 709 bool hasSameDirectionAs(const LayoutBox* object) const { return style()->dir
ection() == object->style()->direction(); } | 710 bool hasSameDirectionAs(const LayoutBox* object) const { return style()->dir
ection() == object->style()->direction(); } |
| 710 | 711 |
| 711 ShapeOutsideInfo* shapeOutsideInfo() const | 712 ShapeOutsideInfo* shapeOutsideInfo() const; |
| 712 { | |
| 713 return ShapeOutsideInfo::isEnabledFor(*this) ? ShapeOutsideInfo::info(*t
his) : nullptr; | |
| 714 } | |
| 715 | 713 |
| 716 void markShapeOutsideDependentsForLayout() | 714 void markShapeOutsideDependentsForLayout() |
| 717 { | 715 { |
| 718 if (isFloating()) | 716 if (isFloating()) |
| 719 removeFloatingOrPositionedChildFromBlockLists(); | 717 removeFloatingOrPositionedChildFromBlockLists(); |
| 720 } | 718 } |
| 721 | 719 |
| 722 void setIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeig
ht) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; } | 720 void setIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeig
ht) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; } |
| 723 | 721 |
| 724 bool canRenderBorderImage() const; | 722 bool canRenderBorderImage() const; |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 if (UNLIKELY(inlineBoxWrapper() != nullptr)) | 928 if (UNLIKELY(inlineBoxWrapper() != nullptr)) |
| 931 deleteLineBoxWrapper(); | 929 deleteLineBoxWrapper(); |
| 932 } | 930 } |
| 933 | 931 |
| 934 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 932 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 935 } | 933 } |
| 936 | 934 |
| 937 } // namespace blink | 935 } // namespace blink |
| 938 | 936 |
| 939 #endif // LayoutBox_h | 937 #endif // LayoutBox_h |
| OLD | NEW |