[webkit-changes] [WebKit/WebKit] 2dbdc0: [IFC][Partial layout] Editing constructs individua...

Alan Baradlay noreply at github.com
Sat Mar 18 19:29:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2dbdc010d549d61416188be62fb372f61cbf9708
      https://github.com/WebKit/WebKit/commit/2dbdc010d549d61416188be62fb372f61cbf9708
  Author: Alan Baradlay <zalan at apple.com>
  Date:   2023-03-18 (Sat, 18 Mar 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/LayoutIntegrationBoxTree.cpp
    M Source/WebCore/layout/integration/LayoutIntegrationBoxTree.h
    M Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp
    M Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp
    M Source/WebCore/layout/layouttree/LayoutElementBox.cpp
    M Source/WebCore/layout/layouttree/LayoutElementBox.h

  Log Message:
  -----------
  [IFC][Partial layout] Editing constructs individual renderers for "new line" when typing in textarea
https://bugs.webkit.org/show_bug.cgi?id=253775

Reviewed by Antti Koivisto.

Inserting soft line-breaks as individual renderers while editing is a surprisingly common operation.
(Add support for insertion -BoxTree, Invalidation)

* Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.cpp:
(WebCore::Layout::InlineInvalidation::textInserted):
* Source/WebCore/layout/formattingContexts/inline/invalidation/InlineInvalidation.h:
(WebCore::Layout::InlineInvalidation::textInserted):
* Source/WebCore/layout/integration/LayoutIntegrationBoxTree.cpp:
(WebCore::LayoutIntegration::BoxTree::buildTreeForInlineContent):
(WebCore::LayoutIntegration::BoxTree::buildTreeForFlexContent):
(WebCore::LayoutIntegration::BoxTree::insertChild):
(WebCore::LayoutIntegration::BoxTree::insert):
(WebCore::LayoutIntegration::BoxTree::appendChild): Deleted.
* Source/WebCore/layout/integration/LayoutIntegrationBoxTree.h:
* Source/WebCore/layout/integration/LayoutIntegrationCoverage.cpp:
(WebCore::LayoutIntegration::shouldInvalidateLineLayoutPathAfterChangeFor):
* Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp:
(WebCore::LayoutIntegration::LineLayout::insertedIntoTree):
(WebCore::LayoutIntegration::LineLayout::updateTextContent):
* Source/WebCore/layout/layouttree/LayoutElementBox.cpp:
(WebCore::Layout::ElementBox::appendChild):
(WebCore::Layout::ElementBox::insertChild):
* Source/WebCore/layout/layouttree/LayoutElementBox.h:

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




More information about the webkit-changes mailing list