[webkit-changes] [WebKit/WebKit] bd47b1: [IFC][Performance] Do not run inline layout on emp...

Alan Baradlay noreply at github.com
Fri Nov 24 05:28:59 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bd47b12d76ba946d0951c2713e436fe8bfa28c4f
      https://github.com/WebKit/WebKit/commit/bd47b12d76ba946d0951c2713e436fe8bfa28c4f
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-11-24 (Fri, 24 Nov 2023)

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

  Log Message:
  -----------
  [IFC][Performance] Do not run inline layout on empty (pseudo) inline content
https://bugs.webkit.org/show_bug.cgi?id=264286

Reviewed by Antti Koivisto.

Before/after pseudo elements often generate completely empty inline content with a single (empty) RenderText.
Let's not run intrinsic width/layout on such subtrees.

* Source/WebCore/layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::isEmptyInlineContent):
(WebCore::Layout::InlineFormattingContext::computedIntrinsicSizes):
(WebCore::Layout::InlineFormattingContext::lineLayout):

Canonical link: https://commits.webkit.org/271096@main




More information about the webkit-changes mailing list