Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 47c1275d2bcdbedf8e22c643390ee73180892b58
https://github.com/WebKit/WebKit/commit/47c1275d2bcdbedf8e22c643390ee73180892b58
Author: Alan Baradlay <[email protected]>
Date: 2025-09-17 (Wed, 17 Sep 2025)
Changed paths:
M Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.h
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp
M Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h
M Source/WebCore/platform/graphics/ComplexTextController.cpp
M Source/WebCore/platform/graphics/ComplexTextController.h
Log Message:
-----------
[text shaping] Line breaking needs to know the shaped content width
https://bugs.webkit.org/show_bug.cgi?id=298953
Reviewed by Antti Koivisto.
In order to figure out whether current content fits the available space, we have
to set the shaped content width on LineCandidate.
(While this patch implements the logic of applying shaped content width, glyphs
sizes
are not yet available. See ComplexTextController::glyphBoundsForTextRun)
* Source/WebCore/layout/formattingContexts/inline/InlineContentBreaker.h:
(WebCore::Layout::InlineContentBreaker::ContinuousContent::adjustLogicalWidth):
(WebCore::Layout::InlineContentBreaker::ContinuousContent::Run::adjustContentWidth):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.cpp:
(WebCore::Layout::LineBuilder::applyShapingOnRunRange const):
(WebCore::Layout::LineBuilder::applyShapingIfNeeded):
* Source/WebCore/layout/formattingContexts/inline/InlineLineBuilder.h:
* Source/WebCore/platform/graphics/ComplexTextController.cpp:
(WebCore::ComplexTextController::enclosingGlyphBoundsForTextRun):
* Source/WebCore/platform/graphics/ComplexTextController.h:
Canonical link: https://commits.webkit.org/300079@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes