[LayoutNG] Round marker offset when painting documentmarker.

This is a quick fix for the issue that DocumentMarkerContoller often returns over offset
for a text node. That causes DCHECK hit in creating NGOffsetMapping.
This patch rounds such offset before offsetmapping creation.
Generally, we should sanitize DMC offset management.

Bug: 865267
TEST: By hand with the example in the crbug. We might find a root issue by DCHECKing inside DMC.
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng;luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I0c90f14d08df4eee4de0e23d37b4a2be86308f1e
Reviewed-on: https://chromium-review.googlesource.com/1148160
Reviewed-by: Koji Ishii <kojii@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577778}
1 file changed