Summary: | GraphicsContextCG's roundToDevicePixels should round even when there's no transform | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Levi Weintraub <leviw> | ||||||
Component: | Layout and Rendering | Assignee: | Levi Weintraub <leviw> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | darin, eae, eric, jchaffraix, mitz, simon.fraser, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 60318 | ||||||||
Attachments: |
|
Description
Levi Weintraub
2012-04-17 13:54:10 PDT
Created attachment 137601 [details]
Patch
Comment on attachment 137601 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=137601&action=review Wouldn't rect.round() do the same thing? Or do we call it roundedIntRect(rect)? In either case, I would be surprised if the float -> int -> float conversion would matter, and would save adding a couple lines of code. > Source/WebCore/ChangeLog:11 > + end up being more than on3e pixel wide. This adds a static inline rounding method and uses it for on3e Created attachment 137728 [details]
Patch
Comment on attachment 137728 [details]
Patch
LGTM.
Comment on attachment 137728 [details]
Patch
Thanks Eric :)
Comment on attachment 137728 [details] Patch Clearing flags on attachment: 137728 Committed r114548: <http://trac.webkit.org/changeset/114548> All reviewed patches have been landed. Closing bug. |