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

Side by Side Diff: Source/core/rendering/RenderFlexibleBox.h

Issue 196533012: Make LayoutState always be RAII (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: It's the ToT as you can see Created 6 years, 9 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) 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 LayoutPoint flowAwareLocationForChild(RenderBox* child) const; 117 LayoutPoint flowAwareLocationForChild(RenderBox* child) const;
118 // FIXME: Supporting layout deltas. 118 // FIXME: Supporting layout deltas.
119 void setFlowAwareLocationForChild(RenderBox* child, const LayoutPoint&); 119 void setFlowAwareLocationForChild(RenderBox* child, const LayoutPoint&);
120 void adjustAlignmentForChild(RenderBox* child, LayoutUnit); 120 void adjustAlignmentForChild(RenderBox* child, LayoutUnit);
121 ItemPosition alignmentForChild(RenderBox* child) const; 121 ItemPosition alignmentForChild(RenderBox* child) const;
122 LayoutUnit mainAxisBorderAndPaddingExtentForChild(RenderBox* child) const; 122 LayoutUnit mainAxisBorderAndPaddingExtentForChild(RenderBox* child) const;
123 LayoutUnit mainAxisScrollbarExtentForChild(RenderBox* child) const; 123 LayoutUnit mainAxisScrollbarExtentForChild(RenderBox* child) const;
124 LayoutUnit preferredMainAxisContentExtentForChild(RenderBox* child, bool has InfiniteLineLength, bool relayoutChildren = false); 124 LayoutUnit preferredMainAxisContentExtentForChild(RenderBox* child, bool has InfiniteLineLength, bool relayoutChildren = false);
125 bool childPreferredMainAxisContentExtentRequiresLayout(RenderBox* child, boo l hasInfiniteLineLength) const; 125 bool childPreferredMainAxisContentExtentRequiresLayout(RenderBox* child, boo l hasInfiniteLineLength) const;
126 126
127 void layoutFlexItems(bool relayoutChildren, Vector<LineContext>&); 127 void layoutFlexItems(bool relayoutChildren);
128 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&, LayoutUnit & availableFreeSpace); 128 LayoutUnit autoMarginOffsetInMainAxis(const OrderedFlexItemList&, LayoutUnit & availableFreeSpace);
129 void updateAutoMarginsInMainAxis(RenderBox* child, LayoutUnit autoMarginOffs et); 129 void updateAutoMarginsInMainAxis(RenderBox* child, LayoutUnit autoMarginOffs et);
130 bool hasAutoMarginsInCrossAxis(RenderBox* child) const; 130 bool hasAutoMarginsInCrossAxis(RenderBox* child) const;
131 bool updateAutoMarginsInCrossAxis(RenderBox* child, LayoutUnit availableAlig nmentSpace); 131 bool updateAutoMarginsInCrossAxis(RenderBox* child, LayoutUnit availableAlig nmentSpace);
132 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&); 132 void repositionLogicalHeightDependentFlexItems(Vector<LineContext>&);
133 LayoutUnit clientLogicalBottomAfterRepositioning(); 133 LayoutUnit clientLogicalBottomAfterRepositioning();
134 void appendChildFrameRects(ChildFrameRects&); 134 void appendChildFrameRects(ChildFrameRects&);
135 void repaintChildrenDuringLayoutIfMoved(const ChildFrameRects&); 135 void repaintChildrenDuringLayoutIfMoved(const ChildFrameRects&);
136 136
137 LayoutUnit availableAlignmentSpaceForChild(LayoutUnit lineCrossAxisExtent, R enderBox*); 137 LayoutUnit availableAlignmentSpaceForChild(LayoutUnit lineCrossAxisExtent, R enderBox*);
(...skipping 25 matching lines...) Expand all
163 163
164 mutable OrderIterator m_orderIterator; 164 mutable OrderIterator m_orderIterator;
165 int m_numberOfInFlowChildrenOnFirstLine; 165 int m_numberOfInFlowChildrenOnFirstLine;
166 }; 166 };
167 167
168 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox()); 168 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderFlexibleBox, isFlexibleBox());
169 169
170 } // namespace WebCore 170 } // namespace WebCore
171 171
172 #endif // RenderFlexibleBox_h 172 #endif // RenderFlexibleBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698