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

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

Issue 2803323002: Avoiding name collisions between flexbox and grid (Closed)
Patch Set: Fixed include, removed empty line. Created 3 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
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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 LayoutUnit lineCrossAxisExtent); 228 LayoutUnit lineCrossAxisExtent);
229 void flipForRightToLeftColumn(const Vector<LineContext>& lineContexts); 229 void flipForRightToLeftColumn(const Vector<LineContext>& lineContexts);
230 void flipForWrapReverse(const Vector<LineContext>&, 230 void flipForWrapReverse(const Vector<LineContext>&,
231 LayoutUnit crossAxisStartEdge); 231 LayoutUnit crossAxisStartEdge);
232 232
233 float countIntrinsicSizeForAlgorithmChange( 233 float countIntrinsicSizeForAlgorithmChange(
234 LayoutUnit maxPreferredWidth, 234 LayoutUnit maxPreferredWidth,
235 LayoutBox* child, 235 LayoutBox* child,
236 float previousMaxContentFlexFraction) const; 236 float previousMaxContentFlexFraction) const;
237 237
238 static const StyleContentAlignmentData& contentAlignmentNormalBehavior();
cbiesinger 2017/04/07 21:26:28 Please try to sort the functions in the header fil
Daniel Bratell 2017/04/07 21:54:50 Done.
239 static int synthesizedBaselineFromContentBox(const LayoutBox&,
240 LineDirectionMode);
241
238 // This is used to cache the preferred size for orthogonal flow children so we 242 // This is used to cache the preferred size for orthogonal flow children so we
239 // don't have to relayout to get it 243 // don't have to relayout to get it
240 HashMap<const LayoutObject*, LayoutUnit> m_intrinsicSizeAlongMainAxis; 244 HashMap<const LayoutObject*, LayoutUnit> m_intrinsicSizeAlongMainAxis;
241 245
242 // This set is used to keep track of which children we laid out in this 246 // This set is used to keep track of which children we laid out in this
243 // current layout iteration. We need it because the ones in this set may 247 // current layout iteration. We need it because the ones in this set may
244 // need an additional layout pass for correct stretch alignment handling, as 248 // need an additional layout pass for correct stretch alignment handling, as
245 // the first layout likely did not use the correct value for percentage 249 // the first layout likely did not use the correct value for percentage
246 // sizing of children. 250 // sizing of children.
247 HashSet<const LayoutObject*> m_relaidOutChildren; 251 HashSet<const LayoutObject*> m_relaidOutChildren;
248 252
249 mutable OrderIterator m_orderIterator; 253 mutable OrderIterator m_orderIterator;
250 int m_numberOfInFlowChildrenOnFirstLine; 254 int m_numberOfInFlowChildrenOnFirstLine;
251 255
252 // This is SizeIsUnknown outside of layoutBlock() 256 // This is SizeIsUnknown outside of layoutBlock()
253 mutable SizeDefiniteness m_hasDefiniteHeight; 257 mutable SizeDefiniteness m_hasDefiniteHeight;
254 bool m_inLayout; 258 bool m_inLayout;
255 }; 259 };
256 260
257 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox()); 261 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutFlexibleBox, isFlexibleBox());
258 262
259 } // namespace blink 263 } // namespace blink
260 264
261 #endif // LayoutFlexibleBox_h 265 #endif // LayoutFlexibleBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698