Bug 79315

Summary: Add pixelSnapped methods to FractionalLayoutRect
Product: WebKit Reporter: Emil A Eklund <eae>
Component: Layout and RenderingAssignee: Emil A Eklund <eae>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, eric, leviw, rniwa, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 60318    
Attachments:
Description Flags
Patch none

Description Emil A Eklund 2012-02-22 18:10:13 PST
This will make it easier to get the pixel snapped bottom/right edges as well as the size.
Comment 1 Emil A Eklund 2012-02-22 18:14:32 PST
Created attachment 128357 [details]
Patch
Comment 2 Eric Seidel (no email) 2012-02-22 19:08:46 PST
Comment on attachment 128357 [details]
Patch

Odd.  Why not just use rect.pixelSnapped().width(), etc?
Comment 3 Emil A Eklund 2012-02-22 19:13:10 PST
(In reply to comment #2)
> (From update of attachment 128357 [details])
> Odd.  Why not just use rect.pixelSnapped().width(), etc?

That would be pixelSnappedIntRect(rect).width(). The advantage of these methods is that it only computed the values that are needed. Might not be worth worrying about though.
Comment 4 Levi Weintraub 2012-03-06 11:13:14 PST
These were added in http://trac.webkit.org/changeset/109835.
Comment 5 Levi Weintraub 2012-03-06 11:13:42 PST
Comment on attachment 128357 [details]
Patch

Clearing flags.