Summary: | Clean up multiple RenderedPosition::absoluteRect definitions and correct LayoutUnit usage | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Levi Weintraub <leviw> | ||||
Component: | Layout and Rendering | Assignee: | Levi Weintraub <leviw> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | eae, eric, jchaffraix, rniwa, 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-10 12:21:30 PDT
Created attachment 136508 [details]
Patch
Comment on attachment 136508 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=136508&action=review > Source/WebCore/editing/RenderedPosition.cpp:232 > + IntRect localRect = pixelSnappedIntRect(m_renderer->localCaretRect(m_inlineBox, m_offset, extraWidthToEndOfLine)); For people watching at home, the pixelSnappedIntRect confused me a lot and I pinged leviw@ about that. Currently we want to snap our rectangles before calling localToAbsoluteQuad to be consistent across all the painting code. We may lose some precision by doing so (if we have a transform that is not pixel aligned for example), but coherency is better for now. We may relax this requirement later. Comment on attachment 136508 [details]
Patch
Thanks Julien!
Comment on attachment 136508 [details] Patch Clearing flags on attachment: 136508 Committed r113792: <http://trac.webkit.org/changeset/113792> All reviewed patches have been landed. Closing bug. |