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

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

Issue 1980473002: Move collapseAnonymousBlockChild() to LayoutBlockFlow, and make it non-static. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h ('k') | no next file » | 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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 class LayoutGrid final : public LayoutBlock { 50 class LayoutGrid final : public LayoutBlock {
51 public: 51 public:
52 explicit LayoutGrid(Element*); 52 explicit LayoutGrid(Element*);
53 ~LayoutGrid() override; 53 ~LayoutGrid() override;
54 54
55 const char* name() const override { return "LayoutGrid"; } 55 const char* name() const override { return "LayoutGrid"; }
56 56
57 void layoutBlock(bool relayoutChildren) override; 57 void layoutBlock(bool relayoutChildren) override;
58 58
59 bool canCollapseAnonymousBlockChild() const override { return false; }
60
61 void dirtyGrid(); 59 void dirtyGrid();
62 60
63 const Vector<LayoutUnit>& columnPositions() const 61 const Vector<LayoutUnit>& columnPositions() const
64 { 62 {
65 ASSERT(!m_gridIsDirty); 63 ASSERT(!m_gridIsDirty);
66 return m_columnPositions; 64 return m_columnPositions;
67 } 65 }
68 66
69 const Vector<LayoutUnit>& rowPositions() const 67 const Vector<LayoutUnit>& rowPositions() const
70 { 68 {
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 235
238 size_t m_autoRepeatColumns { 0 }; 236 size_t m_autoRepeatColumns { 0 };
239 size_t m_autoRepeatRows { 0 }; 237 size_t m_autoRepeatRows { 0 };
240 }; 238 };
241 239
242 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid()); 240 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutGrid, isLayoutGrid());
243 241
244 } // namespace blink 242 } // namespace blink
245 243
246 #endif // LayoutGrid_h 244 #endif // LayoutGrid_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFlexibleBox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698