Summary: | Add pixelSnapped methods to FractionalLayoutRect | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Emil A Eklund <eae> | ||||
Component: | Layout and Rendering | Assignee: | 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
Emil A Eklund
2012-02-22 18:10:13 PST
Created attachment 128357 [details]
Patch
Comment on attachment 128357 [details]
Patch
Odd. Why not just use rect.pixelSnapped().width(), etc?
(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. These were added in http://trac.webkit.org/changeset/109835. Comment on attachment 128357 [details]
Patch
Clearing flags.
|