Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 38d7b8d0fd7853a0c9d9dacd77c7ca31496e693d
      
https://github.com/WebKit/WebKit/commit/38d7b8d0fd7853a0c9d9dacd77c7ca31496e693d
  Author: Alan Baradlay <[email protected]>
  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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to