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

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

Issue 2033033002: [css-grid] Percentage columns can always be resolved during layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fixes on tests Created 4 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
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 *
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 LayoutUnit computeContentLogicalHeight(SizeType, const Length& height, Layou tUnit intrinsicContentHeight) const; 731 LayoutUnit computeContentLogicalHeight(SizeType, const Length& height, Layou tUnit intrinsicContentHeight) const;
732 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(SizeType, const Leng th& height, LayoutUnit intrinsicContentHeight) const; 732 LayoutUnit computeContentAndScrollbarLogicalHeightUsing(SizeType, const Leng th& height, LayoutUnit intrinsicContentHeight) const;
733 LayoutUnit computeReplacedLogicalWidthUsing(SizeType, const Length& width) c onst; 733 LayoutUnit computeReplacedLogicalWidthUsing(SizeType, const Length& width) c onst;
734 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic alWidth, ShouldComputePreferred = ComputeActual) const; 734 LayoutUnit computeReplacedLogicalWidthRespectingMinMaxWidth(LayoutUnit logic alWidth, ShouldComputePreferred = ComputeActual) const;
735 LayoutUnit computeReplacedLogicalHeightUsing(SizeType, const Length& height) const; 735 LayoutUnit computeReplacedLogicalHeightUsing(SizeType, const Length& height) const;
736 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log icalHeight) const; 736 LayoutUnit computeReplacedLogicalHeightRespectingMinMaxHeight(LayoutUnit log icalHeight) const;
737 737
738 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const; 738 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = Com puteActual) const;
739 virtual LayoutUnit computeReplacedLogicalHeight(LayoutUnit estimatedUsedWidt h = LayoutUnit()) const; 739 virtual LayoutUnit computeReplacedLogicalHeight(LayoutUnit estimatedUsedWidt h = LayoutUnit()) const;
740 740
741 bool hasDefiniteLogicalWidth() const;
742 bool percentageLogicalHeightIsResolvable() const; 741 bool percentageLogicalHeightIsResolvable() const;
743 bool hasDefiniteLogicalHeight() const; 742 bool hasDefiniteLogicalHeight() const;
744 LayoutUnit computePercentageLogicalHeight(const Length& height) const; 743 LayoutUnit computePercentageLogicalHeight(const Length& height) const;
745 744
746 // Block flows subclass availableWidth/Height to handle multi column layout (shrinking the width/height available to children when laying out.) 745 // Block flows subclass availableWidth/Height to handle multi column layout (shrinking the width/height available to children when laying out.)
747 LayoutUnit availableLogicalWidth() const { return contentLogicalWidth(); } 746 LayoutUnit availableLogicalWidth() const { return contentLogicalWidth(); }
748 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const; 747 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const;
749 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const; 748 LayoutUnit availableLogicalHeightUsing(const Length&, AvailableLogicalHeight Type) const;
750 749
751 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height. 750 // There are a few cases where we need to refer specifically to the availabl e physical width and available physical height.
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 || breakValue == BreakLeft 1210 || breakValue == BreakLeft
1212 || breakValue == BreakPage 1211 || breakValue == BreakPage
1213 || breakValue == BreakRecto 1212 || breakValue == BreakRecto
1214 || breakValue == BreakRight 1213 || breakValue == BreakRight
1215 || breakValue == BreakVerso; 1214 || breakValue == BreakVerso;
1216 } 1215 }
1217 1216
1218 } // namespace blink 1217 } // namespace blink
1219 1218
1220 #endif // LayoutBox_h 1219 #endif // LayoutBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698