RESOLVED FIXED 99767
Change baselinePosition and maxAscent/maxDescent to int
https://bugs.webkit.org/show_bug.cgi?id=99767
Summary Change baselinePosition and maxAscent/maxDescent to int
Emil A Eklund
Reported 2012-10-18 15:38:54 PDT
Currently baselinePostion, maxAscent and maxDescent are LayoutUnits while ascent, descent and m_lineHeight are ints. This can lead to subtle alignment and rounding problems. Change baselinePosition and maxAscent/maxDescent to int to avoid these issues.
Attachments
Patch (462.30 KB, patch)
2012-10-18 15:49 PDT, Emil A Eklund
no flags
Patch (466.07 KB, patch)
2012-10-18 16:03 PDT, Emil A Eklund
no flags
Emil A Eklund
Comment 1 2012-10-18 15:49:48 PDT
Emil A Eklund
Comment 2 2012-10-18 15:50:59 PDT
EWS might complain about indentation in InlineFlowBox. This is expected as I'm leaving the indentation as is.
WebKit Review Bot
Comment 3 2012-10-18 15:54:53 PDT
Attachment 169492 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1 Source/WebCore/rendering/InlineFlowBox.cpp:506: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/rendering/InlineFlowBox.h:178: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/rendering/InlineFlowBox.h:181: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 3 in 65 files If any of these errors are false positives, please file a bug against check-webkit-style.
Early Warning System Bot
Comment 4 2012-10-18 15:58:33 PDT
Early Warning System Bot
Comment 5 2012-10-18 15:59:18 PDT
Emil A Eklund
Comment 6 2012-10-18 16:03:40 PDT
WebKit Review Bot
Comment 7 2012-10-18 16:11:55 PDT
Attachment 169498 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1 Source/WebCore/rendering/InlineFlowBox.cpp:506: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/rendering/InlineFlowBox.h:178: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebCore/rendering/InlineFlowBox.h:181: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 3 in 71 files If any of these errors are false positives, please file a bug against check-webkit-style.
Emil A Eklund
Comment 8 2012-10-19 09:33:03 PDT
Levi Weintraub
Comment 9 2012-10-22 10:21:45 PDT
Comment on attachment 169498 [details] Patch LGTM, but keep the Mac bots green :)
Emil A Eklund
Comment 10 2012-10-22 12:05:20 PDT
Note You need to log in before you can comment on or make changes to this bug.