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

Side by Side Diff: sky/engine/core/rendering/RenderFlexibleBox.h

Issue 707233006: Remove scrollbar width/height computations from layout. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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) 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 LayoutUnit flowAwareBorderBefore() const; 103 LayoutUnit flowAwareBorderBefore() const;
104 LayoutUnit flowAwareBorderAfter() const; 104 LayoutUnit flowAwareBorderAfter() const;
105 LayoutUnit flowAwarePaddingStart() const; 105 LayoutUnit flowAwarePaddingStart() const;
106 LayoutUnit flowAwarePaddingEnd() const; 106 LayoutUnit flowAwarePaddingEnd() const;
107 LayoutUnit flowAwarePaddingBefore() const; 107 LayoutUnit flowAwarePaddingBefore() const;
108 LayoutUnit flowAwarePaddingAfter() const; 108 LayoutUnit flowAwarePaddingAfter() const;
109 LayoutUnit flowAwareMarginStartForChild(RenderBox* child) const; 109 LayoutUnit flowAwareMarginStartForChild(RenderBox* child) const;
110 LayoutUnit flowAwareMarginEndForChild(RenderBox* child) const; 110 LayoutUnit flowAwareMarginEndForChild(RenderBox* child) const;
111 LayoutUnit flowAwareMarginBeforeForChild(RenderBox* child) const; 111 LayoutUnit flowAwareMarginBeforeForChild(RenderBox* child) const;
112 LayoutUnit crossAxisMarginExtentForChild(RenderBox* child) const; 112 LayoutUnit crossAxisMarginExtentForChild(RenderBox* child) const;
113 LayoutUnit crossAxisScrollbarExtent() const;
114 LayoutUnit crossAxisScrollbarExtentForChild(RenderBox* child) const;
115 LayoutPoint flowAwareLocationForChild(RenderBox* child) const; 113 LayoutPoint flowAwareLocationForChild(RenderBox* child) const;
116 // FIXME: Supporting layout deltas. 114 // FIXME: Supporting layout deltas.
117 void setFlowAwareLocationForChild(RenderBox* child, const LayoutPoint&); 115 void setFlowAwareLocationForChild(RenderBox* child, const LayoutPoint&);
118 void adjustAlignmentForChild(RenderBox* child, LayoutUnit); 116 void adjustAlignmentForChild(RenderBox* child, LayoutUnit);
119 ItemPosition alignmentForChild(RenderBox* child) const; 117 ItemPosition alignmentForChild(RenderBox* child) const;
120 LayoutUnit mainAxisBorderAndPaddingExtentForChild(RenderBox* child) const; 118 LayoutUnit mainAxisBorderAndPaddingExtentForChild(RenderBox* child) const;
121 LayoutUnit preferredMainAxisContentExtentForChild(RenderBox* child, bool has InfiniteLineLength, bool relayoutChildren = false); 119 LayoutUnit preferredMainAxisContentExtentForChild(RenderBox* child, bool has InfiniteLineLength, bool relayoutChildren = false);
122 bool childPreferredMainAxisContentExtentRequiresLayout(RenderBox* child, boo l hasInfiniteLineLength) const; 120 bool childPreferredMainAxisContentExtentRequiresLayout(RenderBox* child, boo l hasInfiniteLineLength) const;
123 bool needToStretchChildLogicalHeight(RenderBox* child) const; 121 bool needToStretchChildLogicalHeight(RenderBox* child) const;
124 122
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 159
162 mutable OrderIterator m_orderIterator; 160 mutable OrderIterator m_orderIterator;
163 int m_numberOfInFlowChildrenOnFirstLine; 161 int m_numberOfInFlowChildrenOnFirstLine;
164 }; 162 };
165 163
166 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox()); 164 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox());
167 165
168 } // namespace blink 166 } // namespace blink
169 167
170 #endif // RenderFlexibleBox_h 168 #endif // RenderFlexibleBox_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBox.cpp ('k') | sky/engine/core/rendering/RenderFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698