Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: Source/core/layout/LayoutBox.h

Issue 1164933006: Create LineLayout api (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: non-working version with explicit constructors Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 } 707 }
707 708
708 virtual LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject*) con st 709 virtual LayoutBox* createAnonymousBoxWithSameTypeAs(const LayoutObject*) con st
709 { 710 {
710 ASSERT_NOT_REACHED(); 711 ASSERT_NOT_REACHED();
711 return nullptr; 712 return nullptr;
712 } 713 }
713 714
714 bool hasSameDirectionAs(const LayoutBox* object) const { return style()->dir ection() == object->style()->direction(); } 715 bool hasSameDirectionAs(const LayoutBox* object) const { return style()->dir ection() == object->style()->direction(); }
715 716
716 ShapeOutsideInfo* shapeOutsideInfo() const 717 ShapeOutsideInfo* shapeOutsideInfo() const;
717 {
718 return ShapeOutsideInfo::isEnabledFor(*this) ? ShapeOutsideInfo::info(*t his) : nullptr;
719 }
720 718
721 void markShapeOutsideDependentsForLayout() 719 void markShapeOutsideDependentsForLayout()
722 { 720 {
723 if (isFloating()) 721 if (isFloating())
724 removeFloatingOrPositionedChildFromBlockLists(); 722 removeFloatingOrPositionedChildFromBlockLists();
725 } 723 }
726 724
727 bool backgroundHasOpaqueTopLayer() const; 725 bool backgroundHasOpaqueTopLayer() const;
728 726
729 void setIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeig ht) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; } 727 void setIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeig ht) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; }
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 if (UNLIKELY(inlineBoxWrapper() != nullptr)) 935 if (UNLIKELY(inlineBoxWrapper() != nullptr))
938 deleteLineBoxWrapper(); 936 deleteLineBoxWrapper();
939 } 937 }
940 938
941 ensureRareData().m_inlineBoxWrapper = boxWrapper; 939 ensureRareData().m_inlineBoxWrapper = boxWrapper;
942 } 940 }
943 941
944 } // namespace blink 942 } // namespace blink
945 943
946 #endif // LayoutBox_h 944 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698