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

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

Issue 2562703003: Make AlgorithmForInputNode use original constraint space (Closed)
Patch Set: Make AlgorithmForInputNode use container constraint space Created 4 years 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 NGLayoutCoordinator_h 5 #ifndef NGLayoutCoordinator_h
6 #define NGLayoutCoordinator_h 6 #define NGLayoutCoordinator_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_layout_algorithm.h" 9 #include "core/layout/ng/ng_layout_algorithm.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "wtf/Vector.h" 11 #include "wtf/Vector.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class NGLayoutInputNode; 15 class NGLayoutInputNode;
16 class NGConstraintSpace; 16 class NGConstraintSpace;
17 17
18 class CORE_EXPORT NGLayoutCoordinator final 18 class CORE_EXPORT NGLayoutCoordinator final
19 : public GarbageCollectedFinalized<NGLayoutCoordinator> { 19 : public GarbageCollectedFinalized<NGLayoutCoordinator> {
20 public: 20 public:
21 NGLayoutCoordinator(NGLayoutInputNode*, const NGConstraintSpace*); 21 NGLayoutCoordinator(NGLayoutInputNode*, NGConstraintSpace*);
22 22
23 bool Tick(NGPhysicalFragmentBase**); 23 bool Tick(NGPhysicalFragmentBase**);
24 24
25 DECLARE_TRACE() 25 DECLARE_TRACE()
26 26
27 const HeapVector<Member<NGLayoutAlgorithm>>& GetAlgorithmStackForTesting() 27 const HeapVector<Member<NGLayoutAlgorithm>>& GetAlgorithmStackForTesting()
28 const { 28 const {
29 return layout_algorithms_; 29 return layout_algorithms_;
30 }; 30 };
31 31
32 private: 32 private:
33 HeapVector<Member<NGLayoutAlgorithm>> layout_algorithms_; 33 HeapVector<Member<NGLayoutAlgorithm>> layout_algorithms_;
34 Member<NGPhysicalFragmentBase> fragment_; 34 Member<NGPhysicalFragmentBase> fragment_;
35 }; 35 };
36 } 36 }
37 37
38 #endif 38 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698