Index: third_party/WebKit/Source/core/layout/ng/ng_layout_coordinator.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_layout_coordinator.cc b/third_party/WebKit/Source/core/layout/ng/ng_layout_coordinator.cc |
deleted file mode 100644 |
index 6efda393e37f3c923ee5cb4fd00ecfc598c5af0e..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_layout_coordinator.cc |
+++ /dev/null |
@@ -1,53 +0,0 @@ |
-// Copyright 2016 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#include "core/layout/ng/ng_layout_coordinator.h" |
- |
-#include "core/layout/ng/ng_layout_input_node.h" |
-#include "core/layout/ng/ng_physical_fragment.h" |
- |
-namespace blink { |
- |
-NGLayoutCoordinator::NGLayoutCoordinator(NGLayoutInputNode* input_node, |
- NGConstraintSpace* constraint_space) { |
- layout_algorithms_.push_back( |
- NGLayoutInputNode::AlgorithmForInputNode(input_node, constraint_space)); |
-} |
- |
-bool NGLayoutCoordinator::Tick(NGPhysicalFragment** out_fragment) { |
- NGLayoutAlgorithm* child_algorithm; |
- |
- // Tick should never be called without a layout algorithm on the stack. |
- DCHECK(layout_algorithms_.size()); |
- |
- NGPhysicalFragment* fragment; |
- NGPhysicalFragment* in_fragment = fragment_; |
- fragment_ = nullptr; |
- |
- switch (layout_algorithms_.back()->Layout(in_fragment, &fragment, |
- &child_algorithm)) { |
- case kNotFinished: |
- return false; |
- case kNewFragment: |
- layout_algorithms_.pop_back(); |
- if (layout_algorithms_.size() == 0) { |
- *out_fragment = fragment; |
- return true; |
- } |
- fragment_ = fragment; |
- return false; |
- case kChildAlgorithmRequired: |
- layout_algorithms_.push_back(child_algorithm); |
- return false; |
- } |
- |
- NOTREACHED(); |
- return false; |
-} |
- |
-DEFINE_TRACE(NGLayoutCoordinator) { |
- visitor->trace(layout_algorithms_); |
- visitor->trace(fragment_); |
-} |
-} |