Summary: | Implement proper sub-pixel support in RenderFileUploadControl | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Levi Weintraub <leviw> | ||||||
Component: | Layout and Rendering | Assignee: | Levi Weintraub <leviw> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | darin, eae, eric, jchaffraix, simon.fraser, tkent, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 60318 | ||||||||
Attachments: |
|
Description
Levi Weintraub
2012-03-12 13:49:47 PDT
Created attachment 131406 [details]
Patch
Comment on attachment 131406 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=131406&action=review > Source/WebCore/rendering/RenderFileUploadControl.cpp:107 > + IntRect clipRect = pixelSnappedIntRect(LayoutRect(paintOffset.x() + borderLeft(), paintOffset.y() + borderTop(), Isn't there a pixelSnappedIntRect implementation that takes x, y, w, h? Seems better than creating a LayoutRect and then immediately snapping it. > Source/WebCore/rendering/RenderFileUploadControl.cpp:157 > + input->icon()->paint(paintInfo.context, IntRect(roundedIntPoint(LayoutPoint(iconX, iconY)), IntSize(iconWidth, iconHeight))); IntRect(iconX.round(), iconY.round(), iconWidth, iconHeight) seems easier. Created attachment 131413 [details]
Patch
Looks good, thanks! Any takers on a review? Comment on attachment 131413 [details]
Patch
ok
Comment on attachment 131413 [details]
Patch
Thanks for the review, Mr. Glazkov :)
Comment on attachment 131413 [details] Patch Clearing flags on attachment: 131413 Committed r110761: <http://trac.webkit.org/changeset/110761> All reviewed patches have been landed. Closing bug. |