[webkit-changes] [WebKit/WebKit] a248d8: [Cleanup] Refactor InlineItemsBuilder::handleTextC...

yulunwu2 noreply at github.com
Tue Jan 14 11:49:25 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a248d8c947a113dbed82853b5c7b87b5034e0c94
      https://github.com/WebKit/WebKit/commit/a248d8c947a113dbed82853b5c7b87b5034e0c94
  Author: Yulun Wu <yulun_wu at apple.com>
  Date:   2025-01-14 (Tue, 14 Jan 2025)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/InlineItemsBuilder.cpp

  Log Message:
  -----------
  [Cleanup] Refactor InlineItemsBuilder::handleTextContent.
https://bugs.webkit.org/show_bug.cgi?id=285861
<rdar://142759226>

Reviewed by Alan Baradlay.

This PR moves lambda functions outside of the while loop and into a new block.
This should make it easier to understand what is going on in the loop while
limiting the scope of these lambdas. Additionally, defining each lambda once
instead of O(n) times should be marginally faster.

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