[webkit-changes] [WebKit/WebKit] a104b1: [FFC] ASSERTION FAILED: formattingContextRoot.hasC...

Alan Baradlay noreply at github.com
Wed Jun 7 09:58:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a104b168ce9f0aee8436f8e60f5cf80cdf20c30e
      https://github.com/WebKit/WebKit/commit/a104b168ce9f0aee8436f8e60f5cf80cdf20c30e
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-06-07 (Wed, 07 Jun 2023)

  Changed paths:
    M Source/WebCore/rendering/RenderFlexibleBox.cpp
    M Source/WebCore/rendering/RenderFlexibleBox.h

  Log Message:
  -----------
  [FFC] ASSERTION FAILED: formattingContextRoot.hasChild() when flex item has inline content
https://bugs.webkit.org/show_bug.cgi?id=257802

Reviewed by Antti Koivisto.

With the (relatively) recent change of sharing Layout::Boxes across integration type of formatting contexts (e.g. for an inline-block box which is both a root of an IFC and a
leaf box in the parent IFC we only construct a single Layout::Box), we have to keep the integration object alive in order to not get the flex subtree destroyed including the flex items
which act as root boxes for the associated IFCs.

* Source/WebCore/rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::layoutUsingFlexFormattingContext):
* Source/WebCore/rendering/RenderFlexibleBox.h:

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




More information about the webkit-changes mailing list