Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f0aebf8c2fd418e7908926e126bea60bf4fe39a4
      
https://github.com/WebKit/WebKit/commit/f0aebf8c2fd418e7908926e126bea60bf4fe39a4
  Author: Yusuke Suzuki <[email protected]>
  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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to