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

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

Issue 2679343002: Fragment that establishes new BFC knows it's BFC offset in parent space (Closed)
Patch Set: Created 3 years, 10 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 void SetNextSibling(NGBlockNode*); 53 void SetNextSibling(NGBlockNode*);
54 void SetFirstChild(NGLayoutInputNode*); 54 void SetFirstChild(NGLayoutInputNode*);
55 55
56 void SetFragment(NGPhysicalBoxFragment* fragment) { fragment_ = fragment; } 56 void SetFragment(NGPhysicalBoxFragment* fragment) { fragment_ = fragment; }
57 NGBreakToken* CurrentBreakToken() const; 57 NGBreakToken* CurrentBreakToken() const;
58 bool IsLayoutFinished() const { 58 bool IsLayoutFinished() const {
59 return fragment_ && !fragment_->BreakToken(); 59 return fragment_ && !fragment_->BreakToken();
60 } 60 }
61 61
62 // Used for debugging purposes only.
63 const LayoutBox* LegacyLayoutBox() const { return layout_box_; }
64
65 DECLARE_VIRTUAL_TRACE(); 62 DECLARE_VIRTUAL_TRACE();
66 63
67 // Runs layout on layout_box_ and creates a fragment for the resulting 64 // Runs layout on layout_box_ and creates a fragment for the resulting
68 // geometry. 65 // geometry.
69 RefPtr<NGPhysicalBoxFragment> RunOldLayout(const NGConstraintSpace&); 66 RefPtr<NGPhysicalBoxFragment> RunOldLayout(const NGConstraintSpace&);
70 67
71 // Called if this is an out-of-flow block which needs to be 68 // Called if this is an out-of-flow block which needs to be
72 // positioned with legacy layout. 69 // positioned with legacy layout.
73 void UseOldOutOfFlowPositioning(); 70 void UseOldOutOfFlowPositioning();
74 71
(...skipping 22 matching lines...) Expand all
97 94
98 DEFINE_TYPE_CASTS(NGBlockNode, 95 DEFINE_TYPE_CASTS(NGBlockNode,
99 NGLayoutInputNode, 96 NGLayoutInputNode,
100 node, 97 node,
101 node->Type() == NGLayoutInputNode::kLegacyBlock, 98 node->Type() == NGLayoutInputNode::kLegacyBlock,
102 node.Type() == NGLayoutInputNode::kLegacyBlock); 99 node.Type() == NGLayoutInputNode::kLegacyBlock);
103 100
104 } // namespace blink 101 } // namespace blink
105 102
106 #endif // NGBlockNode 103 #endif // NGBlockNode
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698