Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9337e8d94ce13926d3dcf1cf7daa6fdf4179fda0
      
https://github.com/WebKit/WebKit/commit/9337e8d94ce13926d3dcf1cf7daa6fdf4179fda0
  Author: Ahmad Saleem <[email protected]>
  Date:   2026-07-17 (Fri, 17 Jul 2026)

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

  Log Message:
  -----------
  LineLayoutResult::inflowContentType() is computed twice in 
hasContentfulInlineContent()/isBlockContent()
https://bugs.webkit.org/show_bug.cgi?id=319659
rdar://182489990

Reviewed by Alan Baradlay.

hasContentfulInlineContent() and isBlockContent() each called
hasContentfulInFlowContent() (which calls inflowContentType()) and
then dereferenced inflowContentType() again. Compute it once and
compare against the optional directly.

* Source/WebCore/layout/formattingContexts/inline/LineLayoutResult.h:
(WebCore::Layout::LineLayoutResult::hasContentfulInlineContent const):
(WebCore::Layout::LineLayoutResult::isBlockContent const):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to