Summary: | Revert linesBoundingBox to integers | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Levi Weintraub <leviw> | ||||
Component: | Layout and Rendering | Assignee: | Levi Weintraub <leviw> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ap, eae, eric, jchaffraix, vivekjkumar266, 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-26 03:12:33 PDT
Created attachment 133763 [details]
Patch
Comment on attachment 133763 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=133763&action=review > Source/WebCore/ChangeLog:12 > + LayoutRects are intended to be pixel snapped to determine the ultimate screen > + coordinates, but the Inline Box tree is laid out using floats, and pixel snapping > + the resulting box from linesBoundingBox would produce a potentially incorrect > + rectangle. Keeping this using enclosingIntRect retains the previous accuracy and > + prevents misuse. Clearly you've learned a lot as youv'e gone. I hope that we've documented this learning for others. To help make it obvious where LayoutPoint vs. IntPoitn vs. FloatPoint should be used. It's still not always 100% obvious to me. :( Comment on attachment 133763 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=133763&action=review >> Source/WebCore/ChangeLog:12 >> + prevents misuse. > > Clearly you've learned a lot as youv'e gone. I hope that we've documented this learning for others. To help make it obvious where LayoutPoint vs. IntPoitn vs. FloatPoint should be used. It's still not always 100% obvious to me. :( Looks like I've got a few things to clear up on the Wiki. I'll give it some more love today. I appreciate the feedback. Comment on attachment 133763 [details] Patch Clearing flags on attachment: 133763 Committed r112237: <http://trac.webkit.org/changeset/112237> All reviewed patches have been landed. Closing bug. |