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

Unified Diff: third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.h

Issue 2871733003: [LayoutNG] Refactor NGLineBreaker for ShapingLineBreaker (Closed)
Patch Set: WIP Created 3 years, 7 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/inline/ng_inline_item_result.h
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.h
new file mode 100644
index 0000000000000000000000000000000000000000..32a6c239eb6eacedc9a97f17040ed6156ca9136e
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.h
@@ -0,0 +1,33 @@
+// 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.
+
+#ifndef NGInlineItemResult_h
+#define NGInlineItemResult_h
+
+#include "core/layout/ng/ng_layout_result.h"
+#include "platform/LayoutUnit.h"
+#include "platform/fonts/shaping/ShapeResult.h"
+
+namespace blink {
+
+// The result of measuring NGInlineItem.
+// Produced while determining the line break points. Data needed to create
+// line boxes are stored in NGInlineItemResults.
eae 2017/05/10 21:31:38 Add a comment explaining that this is a transient
kojii 2017/05/11 16:17:36 Made DISALLOW_NEW_EXCEPT_PLACEMENT_NEW() to allow
+struct CORE_EXPORT NGInlineItemResult {
+ unsigned item_index;
+ unsigned start_offset;
+ unsigned end_offset;
+ LayoutUnit inline_size;
+ RefPtr<ShapeResult> shape_result;
+ RefPtr<NGLayoutResult> layout_result;
+
+ NGInlineItemResult();
+ NGInlineItemResult(unsigned index, unsigned start, unsigned end);
+};
+
+using NGInlineItemResults = Vector<NGInlineItemResult, 32>;
+
+} // namespace blink
+
+#endif // NGInlineItemResult_h

Powered by Google App Engine
This is Rietveld 408576698