Bug 204986 - [LFC][IFC] Introduce InlineLayoutUnit
Summary: [LFC][IFC] Introduce InlineLayoutUnit
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-12-07 07:48 PST by zalan
Modified: 2019-12-07 10:18 PST (History)
6 users (show)

See Also:


Attachments
Patch (58.98 KB, patch)
2019-12-07 09:23 PST, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2019-12-07 07:48:26 PST
While IFC uses LayoutUnit only, CLL has a mixture of different types like float, int and LayoutUnit. In order to match CLL's output, IFC needs to use similar types (or at least types with similar precision). Using LayoutUnit exclusively (and by that lowering the precision compared to what CLL ends up having) could cause significant difference in the final inline layout.
Let's introduce these 2 new types and map them to float, FloatRect 
1. to be able to match CLL's output
2. ensure that we use one type and one type only for geometry computation (can't really force it though).
3. be able to swap out the mapped type to something else when needed (like when we move over to a higher precision LayoutUnit)
Comment 1 Radar WebKit Bug Importer 2019-12-07 08:42:31 PST
<rdar://problem/57728333>
Comment 2 Radar WebKit Bug Importer 2019-12-07 08:51:41 PST
<rdar://problem/57728377>
Comment 3 zalan 2019-12-07 09:23:17 PST
Created attachment 385100 [details]
Patch
Comment 4 WebKit Commit Bot 2019-12-07 10:18:24 PST
Comment on attachment 385100 [details]
Patch

Clearing flags on attachment: 385100

Committed r253255: <https://trac.webkit.org/changeset/253255>
Comment 5 WebKit Commit Bot 2019-12-07 10:18:26 PST
All reviewed patches have been landed.  Closing bug.