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

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

Issue 2361373002: [css-grid] Clearing override sizes before running grid's layout logic. (Closed)
Patch Set: Getting back the initial approach, adding some constraints to avoid unneeded relayouts. Created 4 years, 2 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 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 LayoutUnit m_minContentHeight { -1 }; 237 LayoutUnit m_minContentHeight { -1 };
238 LayoutUnit m_maxContentHeight { -1 }; 238 LayoutUnit m_maxContentHeight { -1 };
239 239
240 int m_smallestRowStart; 240 int m_smallestRowStart;
241 int m_smallestColumnStart; 241 int m_smallestColumnStart;
242 242
243 size_t m_autoRepeatColumns { 0 }; 243 size_t m_autoRepeatColumns { 0 };
244 size_t m_autoRepeatRows { 0 }; 244 size_t m_autoRepeatRows { 0 };
245 245
246 bool m_hasAnyOrthogonalChild; 246 Vector<LayoutBox*> m_orthogonalChildren;
247 247
248 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; 248 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr };
249 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; 249 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr };
250 250
251 Optional<bool> m_hasDefiniteLogicalHeight; 251 Optional<bool> m_hasDefiniteLogicalHeight;
252 }; 252 };
253 253
254 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 254 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
255 255
256 } // namespace blink 256 } // namespace blink
257 257
258 #endif // LayoutGrid_h 258 #endif // LayoutGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698