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

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

Issue 2714803002: [LayoutNG] Allow block-flow layout to be fragmented using new approach. (Closed)
Patch Set: rebase. Created 3 years, 9 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NGBlockNode_h 5 #ifndef NGBlockNode_h
6 #define NGBlockNode_h 6 #define NGBlockNode_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/LayoutBox.h" 9 #include "core/layout/LayoutBox.h"
10 #include "core/layout/ng/ng_layout_input_node.h" 10 #include "core/layout/ng/ng_layout_input_node.h"
(...skipping 16 matching lines...) Expand all
27 friend NGLayoutInputNode; 27 friend NGLayoutInputNode;
28 28
29 public: 29 public:
30 explicit NGBlockNode(LayoutObject*); 30 explicit NGBlockNode(LayoutObject*);
31 31
32 // TODO(layout-ng): make it private and declare a friend class to use in tests 32 // TODO(layout-ng): make it private and declare a friend class to use in tests
33 explicit NGBlockNode(ComputedStyle*); 33 explicit NGBlockNode(ComputedStyle*);
34 34
35 ~NGBlockNode() override; 35 ~NGBlockNode() override;
36 36
37 RefPtr<NGLayoutResult> Layout(NGConstraintSpace* constraint_space) override; 37 RefPtr<NGLayoutResult> Layout(NGConstraintSpace* constraint_space,
38 NGBreakToken* break_token) override;
Gleb Lanbin 2017/02/24 21:51:28 NGBreakToken* break_token = nullptr)
ikilpatrick 2017/02/25 00:57:22 Done. Yeah I flipped back and forth on this a litt
38 NGLayoutInputNode* NextSibling() override; 39 NGLayoutInputNode* NextSibling() override;
39 LayoutObject* GetLayoutObject() override; 40 LayoutObject* GetLayoutObject() override;
40 41
41 // Computes the value of min-content and max-content for this box. 42 // Computes the value of min-content and max-content for this box.
42 // If the underlying layout algorithm's ComputeMinAndMaxContentSizes returns 43 // If the underlying layout algorithm's ComputeMinAndMaxContentSizes returns
43 // no value, this function will synthesize these sizes using Layout with 44 // no value, this function will synthesize these sizes using Layout with
44 // special constraint spaces -- infinite available size for max content, zero 45 // special constraint spaces -- infinite available size for max content, zero
45 // available size for min content, and percentage resolution size zero for 46 // available size for min content, and percentage resolution size zero for
46 // both. 47 // both.
47 MinAndMaxContentSizes ComputeMinAndMaxContentSizes(); 48 MinAndMaxContentSizes ComputeMinAndMaxContentSizes();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 94
94 DEFINE_TYPE_CASTS(NGBlockNode, 95 DEFINE_TYPE_CASTS(NGBlockNode,
95 NGLayoutInputNode, 96 NGLayoutInputNode,
96 node, 97 node,
97 node->Type() == NGLayoutInputNode::kLegacyBlock, 98 node->Type() == NGLayoutInputNode::kLegacyBlock,
98 node.Type() == NGLayoutInputNode::kLegacyBlock); 99 node.Type() == NGLayoutInputNode::kLegacyBlock);
99 100
100 } // namespace blink 101 } // namespace blink
101 102
102 #endif // NGBlockNode 103 #endif // NGBlockNode
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698