[text-box-trim] Make it work on floats / OOFs.
Just use LayoutInputNode's IsFloatingOrOutOfFlowPositioned(), rather
than that of the node's LayoutObject / LayoutBox.
The LayoutBox of an InlineNode is the container, and the container's
out-of-flowness doesn't matter for the lines inside. Lines are always
considered to be in-flow.
Bug: 40254880
Change-Id: Id0f7965963ad17098e7bdbb5ba777c1d885f1829
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5961784
Commit-Queue: Morten Stenshorne mstensho@chromium.org
Reviewed-by: Koji Ishii kojii@chromium.org
Cr-Commit-Position: refs/heads/main@{#1374568}