Bug 90083

Summary: LayoutUnit::epsilon() is wrong
Product: WebKit Reporter: Behdad Esfahbod <behdad>
Component: PlatformAssignee: Behdad Esfahbod <behdad>
Status: RESOLVED FIXED    
Severity: Normal CC: eae, eric, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Behdad Esfahbod 2012-06-27 10:45:19 PDT
In platform/FractionalLayoutUnit.h:

    static float epsilon() { return 1 / kFixedPointDenominator; } 

That division is done as integers.  So, if SUBPIXEL_LAYOUT is enabled, epsilon() always returns zero.
Comment 1 Behdad Esfahbod 2012-06-27 13:16:09 PDT
Created attachment 149788 [details]
Patch
Comment 2 Emil A Eklund 2012-06-27 13:49:07 PDT
Looks good to me. While I'd like to see a test for this I realize it isn't really feasible to add one given that the method isn't actually used anywhere yet.

Eric, could you use your magic reviewing powers on this one?
Comment 3 Eric Seidel (no email) 2012-07-02 14:50:09 PDT
Comment on attachment 149788 [details]
Patch

Happy to.
Comment 4 WebKit Review Bot 2012-07-02 15:41:49 PDT
Comment on attachment 149788 [details]
Patch

Clearing flags on attachment: 149788

Committed r121709: <http://trac.webkit.org/changeset/121709>
Comment 5 WebKit Review Bot 2012-07-02 15:41:55 PDT
All reviewed patches have been landed.  Closing bug.