summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/ng/table/layout_ng_table_cell_legacy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/ng/table/layout_ng_table_cell_legacy.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/ng/table/layout_ng_table_cell_legacy.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/ng/table/layout_ng_table_cell_legacy.cc b/chromium/third_party/blink/renderer/core/layout/ng/table/layout_ng_table_cell_legacy.cc
new file mode 100644
index 00000000000..4e5d2eb6456
--- /dev/null
+++ b/chromium/third_party/blink/renderer/core/layout/ng/table/layout_ng_table_cell_legacy.cc
@@ -0,0 +1,28 @@
+// Copyright 2017 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 "third_party/blink/renderer/core/layout/ng/table/layout_ng_table_cell_legacy.h"
+
+#include "third_party/blink/renderer/core/layout/layout_analyzer.h"
+#include "third_party/blink/renderer/core/layout/layout_view.h"
+#include "third_party/blink/renderer/core/layout/ng/ng_block_node.h"
+#include "third_party/blink/renderer/core/layout/ng/ng_constraint_space.h"
+#include "third_party/blink/renderer/core/layout/ng/ng_layout_result.h"
+#include "third_party/blink/renderer/core/layout/ng/ng_length_utils.h"
+#include "third_party/blink/renderer/core/layout/ng/ng_out_of_flow_positioned_node.h"
+#include "third_party/blink/renderer/core/layout/ng/ng_physical_box_fragment.h"
+
+namespace blink {
+
+LayoutNGTableCellLegacy::LayoutNGTableCellLegacy(Element* element)
+ : LayoutNGBlockFlowMixin<LayoutTableCell>(element) {}
+
+void LayoutNGTableCellLegacy::UpdateBlockLayout(bool relayout_children) {
+ LayoutAnalyzer::BlockScope analyzer(*this);
+
+ SetOverrideLogicalWidth(LogicalWidth());
+ UpdateInFlowBlockLayout();
+}
+
+} // namespace blink