[webkit-reviews] review granted: [Bug 204885] [LFC][IFC] Many render tree dump tests show 1px too narrow runs : [Attachment 384899] patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Dec 5 06:43:29 PST 2019
zalan <zalan at apple.com> has granted Antti Koivisto <koivisto at iki.fi>'s request
for review:
Bug 204885: [LFC][IFC] Many render tree dump tests show 1px too narrow runs
https://bugs.webkit.org/show_bug.cgi?id=204885
Attachment 384899: patch
https://bugs.webkit.org/attachment.cgi?id=384899&action=review
--- Comment #2 from zalan <zalan at apple.com> ---
Comment on attachment 384899
--> https://bugs.webkit.org/attachment.cgi?id=384899
patch
View in context: https://bugs.webkit.org/attachment.cgi?id=384899&action=review
> Source/WebCore/layout/inlineformatting/text/TextUtil.cpp:74
> + return std::max(0_lu, LayoutUnit::fromFloatRound(width));
Please add a some words here so that it's clear why we do this random (and
presumably temporary) rounding. So I guess the reason why SLL uses float
everywhere is to match ComplexLineLayout results. This is very unfortunate and
probably fails over time with accumulated rounding. I wish we could
essentiallyEqual the layout tests the same way
LayoutContext::verifyAndOutputMismatchingLayoutTree does. :(
More information about the webkit-reviews
mailing list