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

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

Issue 2563403002: [LayoutNG] Add Bidi reordering and fill in NGPhysicalTextFragment (Closed)
Patch Set: ikilpatrick review Created 4 years 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_text_layout_algorithm.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h
index c286ffb3031c9bfeb02be543049fb2bc637e774c..3b3e317110168f8c4def7a32c4058ab8e9db96ad 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_text_layout_algorithm.h
@@ -12,7 +12,10 @@ namespace blink {
class NGBreakToken;
class NGConstraintSpace;
+class NGFragmentBase;
class NGInlineNode;
+class NGLayoutInlineItemRange;
+struct NGLogicalOffset;
// A class for text layout. This takes a NGInlineNode which consists only
// non-atomic inlines and produces NGTextFragments.
@@ -37,9 +40,20 @@ class CORE_EXPORT NGTextLayoutAlgorithm : public NGLayoutAlgorithm {
DECLARE_VIRTUAL_TRACE();
private:
+ unsigned CreateLine(unsigned start_index,
+ const NGConstraintSpace&,
+ HeapVector<Member<NGFragmentBase>>*,
+ Vector<NGLogicalOffset>*);
+ void CreateLine(const NGLayoutInlineItemRange&,
+ const NGConstraintSpace&,
+ HeapVector<Member<NGFragmentBase>>*,
+ Vector<NGLogicalOffset>*);
+
Member<NGInlineNode> inline_box_;
Member<NGConstraintSpace> constraint_space_;
Member<NGBreakToken> break_token_;
+
+ friend class NGInlineNodeTest;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698