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

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

Issue 2215133005: Add grid/flex layout support for <fieldset> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed more ClusterFuzz tests Created 4 years, 3 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*);
56 const char* name() const override { return "LayoutGrid"; } 57 const char* name() const override { return "LayoutGrid"; }
57 58
58 void layoutBlock(bool relayoutChildren) override; 59 void layoutBlock(bool relayoutChildren) override;
59 60
60 void dirtyGrid(); 61 void dirtyGrid();
61 62
62 Vector<LayoutUnit> trackSizesForComputedStyle(GridTrackSizingDirection) cons t; 63 Vector<LayoutUnit> trackSizesForComputedStyle(GridTrackSizingDirection) cons t;
63 64
64 const Vector<LayoutUnit>& columnPositions() const 65 const Vector<LayoutUnit>& columnPositions() const
65 { 66 {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 245
245 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr }; 246 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyColumns { nullptr };
246 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr }; 247 std::unique_ptr<OrderedTrackIndexSet> m_autoRepeatEmptyRows { nullptr };
247 }; 248 };
248 249
249 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 250 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
250 251
251 } // namespace blink 252 } // namespace blink
252 253
253 #endif // LayoutGrid_h 254 #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