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

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

Issue 2870413005: [LayoutNG] Add "Control" NGInlineItemType for newlines and tabs (Closed)
Patch Set: 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_items_builder.h
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h
index 9d3757b3a246f31b19b69a72c08497ea89182c43..9f295706ea0b3e1cdb2b3afe22068a496810b9bc 100644
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h
@@ -92,6 +92,20 @@ class CORE_EXPORT NGInlineItemsBuilder {
bool is_svgtext_ = false;
bool has_bidi_controls_ = false;
+ void AppendWithWhiteSpaceCollapsing(const String&,
+ unsigned start,
+ unsigned end,
+ const ComputedStyle*,
+ LayoutObject*);
+ void AppendWithoutWhiteSpaceCollapsing(const String&,
+ const ComputedStyle*,
+ LayoutObject*);
+ void AppendWithPreservingNewlines(const String&,
+ const ComputedStyle*,
+ LayoutObject*);
+
+ void AppendForcedBreak(const ComputedStyle*, LayoutObject*);
+
// Because newlines may be removed depends on following characters, newlines
// at the end of input string is not added to |text_| but instead
// |has_pending_newline_| flag is set.

Powered by Google App Engine
This is Rietveld 408576698