WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 82182
Revert linesBoundingBox to integers
https://bugs.webkit.org/show_bug.cgi?id=82182
Summary
Revert linesBoundingBox to integers
Levi Weintraub
Reported
2012-03-26 03:12:33 PDT
Moving linesBoundingBox back to integers. We don't pixel snap values from the inline box tree, we enclose them. Keeping linesBoundingBox as integers doesn't change its accuracy, and prevents misuse.
Attachments
Patch
(6.06 KB, patch)
2012-03-26 03:22 PDT
,
Levi Weintraub
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Levi Weintraub
Comment 1
2012-03-26 03:22:56 PDT
Created
attachment 133763
[details]
Patch
Eric Seidel (no email)
Comment 2
2012-03-26 15:38:08 PDT
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. :(
Levi Weintraub
Comment 3
2012-03-27 02:40:30 PDT
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.
WebKit Review Bot
Comment 4
2012-03-27 03:07:07 PDT
Comment on
attachment 133763
[details]
Patch Clearing flags on attachment: 133763 Committed
r112237
: <
http://trac.webkit.org/changeset/112237
>
WebKit Review Bot
Comment 5
2012-03-27 03:07:12 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.
Top of Page
Format For Printing
XML
Clone This Bug