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

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

Issue 2772503004: [LayoutNG] Add NGInlineBreakToken and back of NGInlineLayoutAlgorithm (Closed)
Patch Set: Resolved merge conflicts 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_inline_break_token.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_break_token.cc b/third_party/WebKit/Source/core/layout/ng/ng_inline_break_token.cc
new file mode 100644
index 0000000000000000000000000000000000000000..92e40a9ec489756bc816d77d4d3585336da7abf3
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_break_token.cc
@@ -0,0 +1,23 @@
+// 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_inline_break_token.h"
+
+#include "core/layout/ng/ng_inline_node.h"
+
+namespace blink {
+
+NGInlineBreakToken::NGInlineBreakToken(NGInlineNode* node,
+ unsigned item_index,
+ unsigned text_offset)
+ : NGBreakToken(kInlineBreakToken, kUnfinished, node),
+ item_index_(item_index),
+ text_offset_(text_offset) {}
+
+NGInlineBreakToken::NGInlineBreakToken(NGLayoutInputNode* node)
+ : NGBreakToken(kInlineBreakToken, kFinished, node),
+ item_index_(0),
+ text_offset_(0) {}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698