[webkit-changes] [WebKit/WebKit] 93f952: [IFC][Partial layout] Add support for text content...

Alan Baradlay noreply at github.com
Sun Feb 26 20:37:35 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 93f952448f9e3c1e2a4c70026fe6df7a7e3a65c3
      https://github.com/WebKit/WebKit/commit/93f952448f9e3c1e2a4c70026fe6df7a7e3a65c3
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-02-26 (Sun, 26 Feb 2023)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.cpp
    M Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.h
    M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
    M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.h
    M Source/WebCore/rendering/RenderText.cpp

  Log Message:
  -----------
  [IFC][Partial layout] Add support for text content deletion
https://bugs.webkit.org/show_bug.cgi?id=252951

Reviewed by Antti Koivisto.

Content deletion is very similar to insertion when it comes to figuring out the damage extent with
one major difference: when deletion takes places at the very beginning of a line, we need to start damaging from the previous line (if applicable).

* Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.cpp:
(WebCore::Layout::damagedLineIndex): The very first display box is always a root inline box (not content)
(WebCore::Layout::InlineInvalidation::textInserted):
(WebCore::Layout::InlineInvalidation::textWillBeRemoved):
* Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.h:
(WebCore::Layout::InlineInvalidation::textInserted):
(WebCore::Layout::InlineInvalidation::textWillBeRemoved):
(): Deleted.
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::updateTextContent):
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.h:
* Source/WebCore/rendering/RenderText.cpp:
(WebCore::invalidateLineLayoutPathOnContentChangeIfNeeded):
(WebCore::RenderText::setTextWithOffset):

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




More information about the webkit-changes mailing list