Migrate layout ascents and descents to LayoutUnit instead of ints
Created attachment 231645 [details] Patch
Comment on attachment 231645 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=231645&action=review > Source/WebCore/rendering/InlineFlowBox.cpp:872 > + LayoutUnit strokeOverflow = static_cast<int>(ceilf(lineStyle.textStrokeWidth() / 2.0f)); missing FIXME here. In general, I transition to LayoutUntits from int/float when I change the functionality as well. int type is a straightforward indication that a particular function/class has not been converted yet to subpixel. Functions with integral LayoutUnits tricked me a few times.
Split out into https://bugs.webkit.org/show_bug.cgi?id=133501
Created attachment 425084 [details] Patch
Created attachment 425188 [details] Patch
Comment on attachment 425188 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=425188&action=review > Source/WebCore/rendering/RootInlineBox.cpp:819 > + LayoutUnit usedFontAscent = fontMetrics.ascent(baselineType()); It's up to you but as I mentioned in the previous patch I'd prefer uniform initialization (and mention in the changelog that ascent/descent values are still integral).
Created attachment 425252 [details] Patch
Committed r275502: <https://commits.webkit.org/r275502> All reviewed patches have been landed. Closing bug and clearing flags on attachment 425252 [details].
<rdar://problem/76261027>
Comment on attachment 425188 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=425188&action=review >> Source/WebCore/rendering/RootInlineBox.cpp:819 >> + LayoutUnit usedFontAscent = fontMetrics.ascent(baselineType()); > > It's up to you but as I mentioned in the previous patch I'd prefer uniform initialization (and mention in the changelog that ascent/descent values are still integral). Sure, done.
(In reply to Rob Buis from comment #10) > Comment on attachment 425188 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=425188&action=review > > >> Source/WebCore/rendering/RootInlineBox.cpp:819 > >> + LayoutUnit usedFontAscent = fontMetrics.ascent(baselineType()); > > > > It's up to you but as I mentioned in the previous patch I'd prefer uniform initialization (and mention in the changelog that ascent/descent values are still integral). > > Sure, done. Thanks!
Reopening to attach new patch.
Created attachment 425281 [details] Patch