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

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

Issue 2668183003: [LayoutNG] Make NG algorithms non-oilpan. (Closed)
Patch Set: fix win compile 2? 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "core/layout/ng/ng_legacy_block_layout_algorithm.h"
6
7 #include "core/layout/ng/ng_physical_box_fragment.h"
8
9 namespace blink {
10
11 NGLegacyBlockLayoutAlgorithm::NGLegacyBlockLayoutAlgorithm(
12 NGBlockNode* block,
13 const NGConstraintSpace* constraint_space)
14 : NGLayoutAlgorithm(kLegacyBlockLayoutAlgorithm),
15 block_(block),
16 constraint_space_(constraint_space) {}
17
18 NGPhysicalFragment* NGLegacyBlockLayoutAlgorithm::Layout() {
19 return block_->RunOldLayout(*constraint_space_);
20 }
21
22 DEFINE_TRACE(NGLegacyBlockLayoutAlgorithm) {
23 NGLayoutAlgorithm::trace(visitor);
24 visitor->trace(block_);
25 visitor->trace(constraint_space_);
26 }
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698