Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c26a73dec4046e3f00075473c6e0350f023eb417
https://github.com/WebKit/WebKit/commit/c26a73dec4046e3f00075473c6e0350f023eb417
Author: Alan Baradlay <[email protected]>
Date: 2025-12-06 (Sat, 06 Dec 2025)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.h
M Source/WebCore/layout/formattingContexts/inline/InlineLevelBox.h
M Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp
M
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp
M Source/WebCore/layout/integration/LayoutIntegrationBoxGeometryUpdater.cpp
Log Message:
-----------
[subpixel-inline-layout] Add InlineFormattingUtils::snapToInt
https://bugs.webkit.org/show_bug.cgi?id=303656#
<rdar://problem/165937292>
Reviewed by Antti Koivisto.
Move explicit floor/ceil/round to a central place (well one for IFC and one for
integration layer). This is in preparation for removing integral snapping of
vertical pixel values.
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.cpp:
(WebCore::Layout::InlineFormattingUtils::snapToInt):
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingUtils.h:
* Source/WebCore/layout/formattingContexts/inline/InlineLevelBox.h:
(WebCore::Layout::InlineLevelBox::AscentAndDescent::round): Deleted.
* Source/WebCore/layout/formattingContexts/inline/InlineLineBoxBuilder.cpp:
(WebCore::Layout::layoutBoundstWithEdgeAdjustmentForInlineBox):
(WebCore::Layout::textBoxAdjustedInlineBoxHeight):
(WebCore::Layout::LineBoxBuilder::enclosingAscentDescentWithFallbackFonts
const):
(WebCore::Layout::LineBoxBuilder::setLayoutBoundsForInlineBox const):
(WebCore::Layout::LineBoxBuilder::setVerticalPropertiesForInlineLevelBox const):
(WebCore::Layout::LineBoxBuilder::adjustInlineBoxHeightsForLineBoxContainIfApplicable):
(WebCore::Layout::LineBoxBuilder::applyTextBoxTrimOnLineBoxIfNeeded const):
*
Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContentBuilder.cpp:
(WebCore::Layout::InlineDisplayContentBuilder::appendTextDisplayBox):
* Source/WebCore/layout/integration/LayoutIntegrationBoxGeometryUpdater.cpp:
(WebCore::LayoutIntegration::snapToInt):
(WebCore::LayoutIntegration::lastInflowBoxBaseline):
(WebCore::LayoutIntegration::baselineForBox):
(WebCore::LayoutIntegration::setIntegrationBaseline):
Canonical link: https://commits.webkit.org/304045@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications