[Webkit-unassigned] [Bug 92374] New: Inaccurate layoutMod

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 26 06:01:01 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=92374

           Summary: Inaccurate layoutMod
           Product: WebKit
           Version: 420+
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: allan.jensen at nokia.com
                CC: abarth at webkit.org, eae at chromium.org,
                    leviw at chromium.org


The layoutMod function performs the module in integer instead of FractionalLayoutUnit when subpixel units are enabled. This means the it for its main use; calculating remainer, returns an inaccurate result.

To solve this, modulo operators should be defined for FractionalLayoutUnit and used. 

I here use the common definition of modulo which solves the equation:  a = (a / b) * b + a % b.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list