|Summary:||Floor y coordinate in Chromium's GraphicsContext::drawLineForText to avoid anti-aliasing|
|Product:||WebKit||Reporter:||Levi Weintraub <leviw>|
|Component:||Layout and Rendering||Assignee:||Levi Weintraub <leviw>|
|Version:||528+ (Nightly build)|
|Bug Depends on:|
Description Levi Weintraub 2012-05-17 14:19:36 PDT
Currently we take floats but always paint at whole y coordinates. This patch will preserve that behavior with the sub-pixel conversion. Otherwise, some underlines and strike-throughs end up midway between two pixels.
Comment 2 Eric Seidel (no email) 2012-05-17 14:28:18 PDT
Comment on attachment 142556 [details] Patch Does Skia floor the X for us? I'm confused?
Comment 3 Levi Weintraub 2012-05-17 18:54:14 PDT
(In reply to comment #2) > (From update of attachment 142556 [details]) > Does Skia floor the X for us? I'm confused? I'm going to add a comment. We always draw these lines horizontally. Sub-pixel x values are normal and acceptable.