Implement NGInlineCursor member functions for painitng selection with NGInlineCursor
This patch introduces |NGInlineCursor| member functions for painitng selection: - MoveToContainingLine() - MoveToFirstChild() - MoveToLastChild)( - MoveToLastLogicalLeaf() - Replacement for NGPaintFragment::InlineFragmentsFor() * MoveTo(const LayoutObject&) * MoveToNextForSameLayoutObject() - MoveToNextSibling() - TryToMoveToFirstChild() - TryToMoveToLastChild() - Property getters for detecting line break * Current{Base,Resolved}Direction() * CurrentSize() * CurrentStyle() * CurrentText{Start,End}Offset() * IsAtomicInline() * IsBeforeSoftLineBreak() * IsHiddenForPaint() * IsEllipsis() * IsLineBreak() * Rename |NGInlineCursor::IsAtEnd()| to |IsNull()| because |MoveTo{First,Last}Child()| set cursor to null if current position has no children. * Rename |NGFragmentItem::ChildrenCount()| to |DescendantsCount()| to avoid confusion with immidieate children count and descendants count. This patch is a preparation of the patch[1]. [1] http://crrev.com/c/1832843 Paint selection with NGFragmentItem Bug: 982194 Change-Id: Icc09d380371f08477fcc9a45ae0c03c50968a3f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1851885 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#704547}
Showing
This diff is collapsed.
Please register or sign in to comment