[LayoutNG] Don't reused inline items for preserved line breaks in bidi context

When we encounter a preserved line break in relayout, we can't reuse its
items if:
- It was in a bidi context in a previous layout
- It's in a bidi context in the current (re)layout

In both cases, we need to go through the full pipeline, which is ensured
by this patch. For this purpose, we need to pass the previous
NGInlineNodeData to NGInlineItemsBuilder::AppendText(), which makes the
patch slightly bigger due to changes in plumbing and test code.

Bug: 966751
Change-Id: I0cc0a86fda004f130d294657cd9c41e11ca1bbd7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1626498
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#664088}
6 files changed