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

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

Issue 2206793004: Revert of Add grid/flex layout support for <fieldset> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 ResolveMaxContentMaximums, 46 ResolveMaxContentMaximums,
47 MaximizeTracks, 47 MaximizeTracks,
48 }; 48 };
49 enum GridAxisPosition {GridAxisStart, GridAxisEnd, GridAxisCenter}; 49 enum GridAxisPosition {GridAxisStart, GridAxisEnd, GridAxisCenter};
50 50
51 class LayoutGrid final : public LayoutBlock { 51 class LayoutGrid final : public LayoutBlock {
52 public: 52 public:
53 explicit LayoutGrid(Element*); 53 explicit LayoutGrid(Element*);
54 ~LayoutGrid() override; 54 ~LayoutGrid() override;
55 55
56 static LayoutGrid* createAnonymous(Document*);
57 const char* name() const override { return "LayoutGrid"; } 56 const char* name() const override { return "LayoutGrid"; }
58 57
59 void layoutBlock(bool relayoutChildren) override; 58 void layoutBlock(bool relayoutChildren) override;
60 59
61 void dirtyGrid(); 60 void dirtyGrid();
62 61
63 Vector<LayoutUnit> trackSizesForComputedStyle(GridTrackSizingDirection) cons t; 62 Vector<LayoutUnit> trackSizesForComputedStyle(GridTrackSizingDirection) cons t;
64 63
65 const Vector<LayoutUnit>& columnPositions() const 64 const Vector<LayoutUnit>& columnPositions() const
66 { 65 {
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 240
242 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; 241 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr };
243 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; 242 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr };
244 }; 243 };
245 244
246 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 245 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
247 246
248 } // namespace blink 247 } // namespace blink
249 248
250 #endif // LayoutGrid_h 249 #endif // LayoutGrid_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutGrid.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698