RESOLVED FIXED 82549
Change WebKit/WebKit2 platform code to use pixel snapped values
https://bugs.webkit.org/show_bug.cgi?id=82549
Summary Change WebKit/WebKit2 platform code to use pixel snapped values
Emil A Eklund
Reported 2012-03-28 16:34:20 PDT
Change WebKit and WebKit2 platform code to use rounded locations and pixel snapped rects and sizes. This avoids having to expose the fractional layout types to the platform code.
Attachments
Patch (13.41 KB, patch)
2012-03-28 16:48 PDT, Emil A Eklund
no flags
Emil A Eklund
Comment 1 2012-03-28 16:48:06 PDT
Eric Seidel (no email)
Comment 2 2012-03-28 17:06:55 PDT
Comment on attachment 134444 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=134444&action=review > Source/WebCore/dom/Node.h:380 > LayoutRect renderRect(bool* isReplaced); > + IntRect pixelSnappedRenderRect(bool* isReplaced) { return pixelSnappedIntRect(renderRect(isReplaced)); } Wouldn't this be easier to call renderRect().pixelSnapped() in the caller instead?
Emil A Eklund
Comment 3 2012-03-28 17:10:13 PDT
(In reply to comment #2) > (From update of attachment 134444 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=134444&action=review > > > Source/WebCore/dom/Node.h:380 > > LayoutRect renderRect(bool* isReplaced); > > + IntRect pixelSnappedRenderRect(bool* isReplaced) { return pixelSnappedIntRect(renderRect(isReplaced)); } > > Wouldn't this be easier to call renderRect().pixelSnapped() in the caller instead? It would but that would break the encapsulation and expose LayoutRects to the WebKit platform code, something we have been trying to avoid.
Emil A Eklund
Comment 4 2012-03-30 16:48:08 PDT
Ping?
Eric Seidel (no email)
Comment 5 2012-03-30 16:51:21 PDT
Comment on attachment 134444 [details] Patch Thank you for the ping.
Emil A Eklund
Comment 6 2012-03-30 16:54:41 PDT
Comment on attachment 134444 [details] Patch Thanks for the review!
WebKit Review Bot
Comment 7 2012-03-30 17:58:05 PDT
Comment on attachment 134444 [details] Patch Clearing flags on attachment: 134444 Committed r112758: <http://trac.webkit.org/changeset/112758>
WebKit Review Bot
Comment 8 2012-03-30 17:58:10 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.