[webkit-changes] [WebKit/WebKit] 38d7b8: [IFC][Partial layout] Replace a range of damaged l...

Alan Baradlay noreply at github.com
Thu Mar 16 16:26:32 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 38d7b8d0fd7853a0c9d9dacd77c7ca31496e693d
      https://github.com/WebKit/WebKit/commit/38d7b8d0fd7853a0c9d9dacd77c7ca31496e693d
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContent.cpp
    M Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContent.h
    M Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContentBuilder.cpp

  Log Message:
  -----------
  [IFC][Partial layout] Replace a range of damaged line when the new content is PartialFromDamage
https://bugs.webkit.org/show_bug.cgi?id=253651

Reviewed by Antti Koivisto.

When layout produces a subrange of new lines, we need to swap out the old content with this newly constructed one.
Use the existing logic to compute first/last damaged line/box index and swap out the content accordingly.
We also need to update the cached indexes to make sure they all point to the correct boxes.

* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContent.cpp:
(WebCore::InlineDisplay::Content::insert):
* Source/WebCore/layout/formattingContexts/inline/display/InlineDisplayContent.h:
* Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContentBuilder.cpp:
(WebCore::LayoutIntegration::InlineContentBuilder::build const):

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




More information about the webkit-changes mailing list