Bug 58216

Summary: Remove safeFloatToInt() in FloatRect.cpp and replace with working version of clampToInteger()
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Layout and RenderingAssignee: Matthew Delaney <mdelaney7>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, mdelaney7
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 61135    
Attachments:
Description Flags
Patch simon.fraser: review+

Description Simon Fraser (smfr) 2011-04-10 23:07:27 PDT
In r83422 I attempted to replace the safeFloatToInt() in FloatRect.app with a call to clampToInteger(float), but that gives the wrong result if the input is already INT_MAX.
Comment 1 Matthew Delaney 2011-05-23 15:20:31 PDT
Created attachment 94499 [details]
Patch
Comment 2 Matthew Delaney 2011-05-23 15:34:01 PDT
Committed r87103: <http://trac.webkit.org/changeset/87103>