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+

Simon Fraser (smfr)
Reported 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.
Attachments
Patch (4.19 KB, patch)
2011-05-23 15:20 PDT, Matthew Delaney
simon.fraser: review+
Matthew Delaney
Comment 1 2011-05-23 15:20:31 PDT
Matthew Delaney
Comment 2 2011-05-23 15:34:01 PDT
Note You need to log in before you can comment on or make changes to this bug.