[LayoutNG] Avoid creating empty LineBoxData in NGLineBuilder
Empty LineBoxData produces empty BidiRunList, which confuses LayoutBlockFlow::constructLine() in CopyFragmentDataToLayoutBlockFlow(). There are cases where we need empty line boxes, such as when the caret is set while editing. Such cases need to be revisited in future. This is part of the effort to layout Wikipedia main page[1] with LayoutNGInline runtime flag enabled. [1] https://en.wikipedia.org/wiki/Main_Page BUG=636993 Review-Url: https://codereview.chromium.org/2676883002 Cr-Commit-Position: refs/heads/master@{#448099}
Showing
Please register or sign in to comment