Revision c360ca023dc5c341065de0f2814914b3c6004e4f authored by Koji Ishii on 29 June 2018, 21:50:07 UTC, committed by Blink WPT Bot on 29 June 2018, 21:59:50 UTC
When NGLineBreaker tries to fit items into a line, rounding
errors are hard to avoid. One case is to fit `monospace` font
into a container whose `width` is set by `ch` unit.

Blink computes `ch` units in float, then round to LayoutUnit.
This rounding often prevents the specified number of
characters to fit into the line. All 4 impls pass this test
for `3ch` to `100ch`.

Bug: 636993
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
Change-Id: I9fe68a8bb44820aa15c7eb8c564776688c8320ee
Reviewed-on: https://chromium-review.googlesource.com/1116409
Commit-Queue: Emil A Eklund <eae@chromium.org>
Reviewed-by: Emil A Eklund <eae@chromium.org>
Cr-Commit-Position: refs/heads/master@{#571642}
1 parent 8b8082f
History
File Mode Size
Document-open.html -rw-r--r-- 2.0 KB
META.yml -rw-r--r-- 29 bytes
addRange-00.html -rw-r--r-- 384 bytes
addRange-04.html -rw-r--r-- 384 bytes
addRange-08.html -rw-r--r-- 385 bytes
addRange-12.html -rw-r--r-- 386 bytes
addRange-16.html -rw-r--r-- 386 bytes
addRange-20.html -rw-r--r-- 386 bytes
addRange-24.html -rw-r--r-- 386 bytes
addRange-28.html -rw-r--r-- 386 bytes
addRange-32.html -rw-r--r-- 386 bytes
addRange-36.html -rw-r--r-- 386 bytes
addRange-40.html -rw-r--r-- 386 bytes
addRange-44.html -rw-r--r-- 386 bytes
addRange-48.html -rw-r--r-- 386 bytes
addRange-52.html -rw-r--r-- 386 bytes
addRange-56.html -rw-r--r-- 382 bytes
addRange.htm -rw-r--r-- 953 bytes
addRange.js -rw-r--r-- 10.6 KB
collapse-00.html -rw-r--r-- 385 bytes
collapse-15.html -rw-r--r-- 386 bytes
collapse-30.html -rw-r--r-- 382 bytes
collapse-45.html -rw-r--r-- 386 bytes
collapse.htm -rw-r--r-- 899 bytes
collapse.js -rw-r--r-- 4.1 KB
collapseToStartEnd.html -rw-r--r-- 5.4 KB
common.js -rw-r--r-- 38.1 KB
deleteFromDocument.html -rw-r--r-- 4.3 KB
dir-manual.html -rw-r--r-- 4.4 KB
extend-00.html -rw-r--r-- 393 bytes
extend-20.html -rw-r--r-- 394 bytes
extend-40.html -rw-r--r-- 390 bytes
extend.js -rw-r--r-- 7.1 KB
getRangeAt.html -rw-r--r-- 443 bytes
getSelection.html -rw-r--r-- 6.6 KB
interfaces.html -rw-r--r-- 1.2 KB
isCollapsed.html -rw-r--r-- 1.1 KB
removeAllRanges.html -rw-r--r-- 2.3 KB
removeRange.html -rw-r--r-- 1.8 KB
selectAllChildren.html -rw-r--r-- 2.6 KB
setBaseAndExtent.html -rw-r--r-- 5.3 KB
test-iframe.html -rw-r--r-- 1.1 KB
type.html -rw-r--r-- 918 bytes

back to top