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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_physical_line_box_fragment.cc

Issue 2764753007: [LayoutNG] Add NGLineBoxFragment (Closed)
Patch Set: Rebase again as other CLs landed faster Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/ng/ng_physical_line_box_fragment.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_physical_line_box_fragment.cc b/third_party/WebKit/Source/core/layout/ng/ng_physical_line_box_fragment.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f0c014423930523cb4c0d42c96f602387e9efd6b
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/ng_physical_line_box_fragment.cc
@@ -0,0 +1,24 @@
+// 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 "core/layout/ng/ng_physical_line_box_fragment.h"
+
+#include "core/layout/ng/ng_floating_object.h"
+
+namespace blink {
+
+NGPhysicalLineBoxFragment::NGPhysicalLineBoxFragment(
+ NGPhysicalSize size,
+ Vector<RefPtr<NGPhysicalFragment>>& children,
+ const NGLineHeightMetrics& metrics,
+ RefPtr<NGBreakToken> break_token)
+ : NGPhysicalFragment(nullptr,
+ size,
+ kFragmentLineBox,
+ std::move(break_token)),
+ metrics_(metrics) {
+ children_.swap(children);
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698