Introduce LayoutNGTextFragment to have NGInlineItem
This patch introduces |LayoutNGTextFragment| to make layout text objects in NG layout tree to have |NGInlineItem| for utilizing it in Element#innerText to handle |Text| nodes with ::first-letter. Before this patch |Text| node applied ::first-letter is represented with two |LayoutTextFragment| objects for first-letter part and remaining part. After this patch, they are represented to |LayoutNGTextFragment| with |NGInlineItem|. [1] http://crrev.com/c/1309562 Make Element#innterText to utilize NGInlineItem instead of NGPaintFragment Bug: 873957 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng Change-Id: I4cd6b43fdc4caf0d92b1030cfbb75f37d4fe67b8 Reviewed-on: https://chromium-review.googlesource.com/c/1309391Reviewed-by:Koji Ishii <kojii@chromium.org> Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#604861}
Showing
Please register or sign in to comment