[webkit-changes] [WebKit/WebKit] f0aebf: Use FixedPitch width computation for partial selec...
Yusuke Suzuki
noreply at github.com
Mon May 27 21:15:56 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f0aebf8c2fd418e7908926e126bea60bf4fe39a4
https://github.com/WebKit/WebKit/commit/f0aebf8c2fd418e7908926e126bea60bf4fe39a4
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2024-05-27 (Mon, 27 May 2024)
Changed paths:
M Source/WebCore/platform/graphics/FontCascade.cpp
M Source/WebCore/platform/graphics/FontCascade.h
M Source/WebCore/rendering/CaretRectComputation.cpp
M Source/WebCore/rendering/EllipsisBoxPainter.cpp
M Source/WebCore/rendering/LegacyInlineTextBox.cpp
M Source/WebCore/rendering/RenderText.cpp
M Source/WebCore/rendering/TextBoxPainter.cpp
M Source/WebCore/rendering/svg/SVGInlineTextBox.cpp
Log Message:
-----------
Use FixedPitch width computation for partial selection rect computation
https://bugs.webkit.org/show_bug.cgi?id=274742
rdar://128778864
Reviewed by Alan Baradlay.
If the content is SimpleText and FontCascade is fixed-pitch, we do not need to use ComplexTextController
for partial selection width adjustment since characters are fixed-pitch.
* Source/WebCore/platform/graphics/FontCascade.cpp:
(WebCore::FontCascade::adjustSelectionRectForText const):
(WebCore::FontCascade::adjustSelectionRectForSimpleTextWithFixedPitch const):
* Source/WebCore/platform/graphics/FontCascade.h:
Canonical link: https://commits.webkit.org/279363@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list