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

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

Issue 988523003: Reimplement min-width: auto (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 5 years, 8 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
« no previous file with comments | « Source/core/layout/LayoutButton.cpp ('k') | Source/core/layout/LayoutFlexibleBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 LayoutPoint flowAwareLocationForChild(LayoutBox& child) const; 120 LayoutPoint flowAwareLocationForChild(LayoutBox& child) const;
121 // FIXME: Supporting layout deltas. 121 // FIXME: Supporting layout deltas.
122 void setFlowAwareLocationForChild(LayoutBox& child, const LayoutPoint&); 122 void setFlowAwareLocationForChild(LayoutBox& child, const LayoutPoint&);
123 void adjustAlignmentForChild(LayoutBox& child, LayoutUnit); 123 void adjustAlignmentForChild(LayoutBox& child, LayoutUnit);
124 ItemPosition alignmentForChild(LayoutBox& child) const; 124 ItemPosition alignmentForChild(LayoutBox& child) const;
125 LayoutUnit mainAxisBorderAndPaddingExtentForChild(LayoutBox& child) const; 125 LayoutUnit mainAxisBorderAndPaddingExtentForChild(LayoutBox& child) const;
126 LayoutUnit preferredMainAxisContentExtentForChild(LayoutBox& child, bool rel ayoutChildren = false); 126 LayoutUnit preferredMainAxisContentExtentForChild(LayoutBox& child, bool rel ayoutChildren = false);
127 bool preferredMainAxisExtentDependsOnLayout(const Length& flexBasis) const; 127 bool preferredMainAxisExtentDependsOnLayout(const Length& flexBasis) const;
128 bool childPreferredMainAxisContentExtentRequiresLayout(LayoutBox& child) con st; 128 bool childPreferredMainAxisContentExtentRequiresLayout(LayoutBox& child) con st;
129 bool needToStretchChildLogicalHeight(LayoutBox& child) const; 129 bool needToStretchChildLogicalHeight(LayoutBox& child) const;
130 EOverflow mainAxisOverflowForChild(LayoutBox& child) const;
130 131
131 void layoutFlexItems(bool relayoutChildren); 132 void layoutFlexItems(bool relayoutChildren);
132 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&, LayoutUnit & availableFreeSpace); 133 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&, LayoutUnit & availableFreeSpace);
133 void updateAutoMarginsInMainAxis(LayoutBox& child, LayoutUnit autoMarginOffs et); 134 void updateAutoMarginsInMainAxis(LayoutBox& child, LayoutUnit autoMarginOffs et);
134 bool hasAutoMarginsInCrossAxis(LayoutBox& child) const; 135 bool hasAutoMarginsInCrossAxis(LayoutBox& child) const;
135 bool updateAutoMarginsInCrossAxis(LayoutBox& child, LayoutUnit availableAlig nmentSpace); 136 bool updateAutoMarginsInCrossAxis(LayoutBox& child, LayoutUnit availableAlig nmentSpace);
136 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&); 137 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&);
137 LayoutUnit clientLogicalBottomAfterRepositioning(); 138 LayoutUnit clientLogicalBottomAfterRepositioning();
138 void appendChildFrameRects(ChildFrameRects&); 139 void appendChildFrameRects(ChildFrameRects&);
139 140
(...skipping 27 matching lines...) Expand all
167 168
168 mutable OrderIterator m_orderIterator; 169 mutable OrderIterator m_orderIterator;
169 int m_numberOfInFlowChildrenOnFirstLine; 170 int m_numberOfInFlowChildrenOnFirstLine;
170 }; 171 };
171 172
172 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); 173 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox());
173 174
174 } // namespace blink 175 } // namespace blink
175 176
176 #endif // LayoutFlexibleBox_h 177 #endif // LayoutFlexibleBox_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutButton.cpp ('k') | Source/core/layout/LayoutFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698