Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 45cb47a1fb4cc926b588791461bf8977415559d1
      
https://github.com/WebKit/WebKit/commit/45cb47a1fb4cc926b588791461bf8977415559d1
  Author: Alan Baradlay <[email protected]>
  Date:   2025-02-25 (Tue, 25 Feb 2025)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/InlineLine.h
    M 
Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.cpp
    M 
Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.h

  Log Message:
  -----------
  [IFC] Single character line layout should use a fast path
https://bugs.webkit.org/show_bug.cgi?id=288431

Reviewed by Antti Koivisto.

When all we have is a single character in an IFC, line building/breaking 
becomes very straightforward. We can skip many steps and get away with not 
constructing a Line object.

* Source/WebCore/layout/formattingContexts/inline/InlineLine.h:
* Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.cpp:
(WebCore::Layout::TextOnlySimpleLineBuilder::layoutInlineContent):
(WebCore::Layout::TextOnlySimpleLineBuilder::placeSingleCharacterContentIfApplicable):
* Source/WebCore/layout/formattingContexts/inline/TextOnlySimpleLineBuilder.h:

Canonical link: https://commits.webkit.org/291021@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