RESOLVED FIXED 79315
Add pixelSnapped methods to FractionalLayoutRect
https://bugs.webkit.org/show_bug.cgi?id=79315
Summary Add pixelSnapped methods to FractionalLayoutRect
Emil A Eklund
Reported 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.
Attachments
Patch (2.20 KB, patch)
2012-02-22 18:14 PST, Emil A Eklund
no flags
Emil A Eklund
Comment 1 2012-02-22 18:14:32 PST
Eric Seidel (no email)
Comment 2 2012-02-22 19:08:46 PST
Comment on attachment 128357 [details] Patch Odd. Why not just use rect.pixelSnapped().width(), etc?
Emil A Eklund
Comment 3 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.
Levi Weintraub
Comment 4 2012-03-06 11:13:14 PST
Levi Weintraub
Comment 5 2012-03-06 11:13:42 PST
Comment on attachment 128357 [details] Patch Clearing flags.
Note You need to log in before you can comment on or make changes to this bug.