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

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

Issue 1157853002: [WIP] Implement flexbox spec behavior for flex factor sum between 0 and 1 Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void alignChildren(const Vector<LineContext>&); 167 void alignChildren(const Vector<LineContext>&);
168 void applyStretchAlignmentToChild(LayoutBox& child, LayoutUnit lineCrossAxis Extent); 168 void applyStretchAlignmentToChild(LayoutBox& child, LayoutUnit lineCrossAxis Extent);
169 void flipForRightToLeftColumn(); 169 void flipForRightToLeftColumn();
170 void flipForWrapReverse(const Vector<LineContext>&, LayoutUnit crossAxisStar tEdge); 170 void flipForWrapReverse(const Vector<LineContext>&, LayoutUnit crossAxisStar tEdge);
171 171
172 // This is used to cache the preferred size for orthogonal flow children so we don't have to relayout to get it 172 // This is used to cache the preferred size for orthogonal flow children so we don't have to relayout to get it
173 HashMap<const LayoutObject*, LayoutUnit> m_intrinsicSizeAlongMainAxis; 173 HashMap<const LayoutObject*, LayoutUnit> m_intrinsicSizeAlongMainAxis;
174 174
175 mutable OrderIterator m_orderIterator; 175 mutable OrderIterator m_orderIterator;
176 int m_numberOfInFlowChildrenOnFirstLine; 176 int m_numberOfInFlowChildrenOnFirstLine;
177 bool m_originalAvailableFreeSpaceInitialized;
178 LayoutUnit m_originalAvailableFreeSpace;
177 }; 179 };
178 180
179 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); 181 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox());
180 182
181 } // namespace blink 183 } // namespace blink
182 184
183 #endif // LayoutFlexibleBox_h 185 #endif // LayoutFlexibleBox_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698