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

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

Issue 2612103004: [ng_layout] Rename NGFragmentBase,NGFragment,NGPhysicalFragment (Closed)
Patch Set: CR: rename ifdef guards Created 3 years, 11 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 NGLegacyBlockLayoutAlgorithm_h 5 #ifndef NGLegacyBlockLayoutAlgorithm_h
6 #define NGLegacyBlockLayoutAlgorithm_h 6 #define NGLegacyBlockLayoutAlgorithm_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_block_node.h" 9 #include "core/layout/ng/ng_block_node.h"
10 #include "core/layout/ng/ng_constraint_space.h" 10 #include "core/layout/ng/ng_constraint_space.h"
11 #include "core/layout/ng/ng_layout_algorithm.h" 11 #include "core/layout/ng/ng_layout_algorithm.h"
12 #include "wtf/RefPtr.h" 12 #include "wtf/RefPtr.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 // A class for legacy block layout (blocks that can't be handled by NG yet). 16 // A class for legacy block layout (blocks that can't be handled by NG yet).
17 // Defers to the old layout method of the block 17 // Defers to the old layout method of the block
18 class CORE_EXPORT NGLegacyBlockLayoutAlgorithm : public NGLayoutAlgorithm { 18 class CORE_EXPORT NGLegacyBlockLayoutAlgorithm : public NGLayoutAlgorithm {
19 public: 19 public:
20 NGLegacyBlockLayoutAlgorithm(NGBlockNode*, const NGConstraintSpace*); 20 NGLegacyBlockLayoutAlgorithm(NGBlockNode*, const NGConstraintSpace*);
21 21
22 NGLayoutStatus Layout(NGPhysicalFragmentBase*, 22 NGLayoutStatus Layout(NGPhysicalFragment*,
23 NGPhysicalFragmentBase**, 23 NGPhysicalFragment**,
24 NGLayoutAlgorithm**) override; 24 NGLayoutAlgorithm**) override;
25 25
26 DECLARE_VIRTUAL_TRACE(); 26 DECLARE_VIRTUAL_TRACE();
27 27
28 private: 28 private:
29 Member<NGBlockNode> block_; 29 Member<NGBlockNode> block_;
30 Member<const NGConstraintSpace> constraint_space_; 30 Member<const NGConstraintSpace> constraint_space_;
31 }; 31 };
32 } 32 }
33 33
34 #endif // NGLegacyBlockLayoutAlgorithm_h 34 #endif // NGLegacyBlockLayoutAlgorithm_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698