[webkit-changes] [WebKit/WebKit] ae3c13: [editing] Use appropriate startOfParagraph in merg...

ziransun noreply at github.com
Fri Aug 30 06:37:09 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ae3c1353c1444e3ed9b14450b5099997f7f4730c
      https://github.com/WebKit/WebKit/commit/ae3c1353c1444e3ed9b14450b5099997f7f4730c
  Author: Ziran Sun <zsun at igalia.com>
  Date:   2024-08-30 (Fri, 30 Aug 2024)

  Changed paths:
    M LayoutTests/platform/glib/TestExpectations
    M LayoutTests/platform/glib/imported/w3c/web-platform-tests/editing/run/delete_6001-7000-expected.txt
    M Source/WebCore/editing/DeleteSelectionCommand.cpp

  Log Message:
  -----------
  [editing] Use appropriate startOfParagraph in mergeParagraphs.
https://bugs.webkit.org/show_bug.cgi?id=266465

Reviewed by Ryosuke Niwa.

startOfParagraphToMove in mergeParagraphs is a VisiblePosition coming
from m_downstreamEnd, which can't guarantee to be a start of paragrph.
This patch makes sure that the appropriate startOfParagraph is used and
it fixes a related assert complain.

* LayoutTests/platform/glib/TestExpectations:
* LayoutTests/platform/glib/imported/w3c/web-platform-tests/editing/run/delete_6001-7000-expected.txt:
* Source/WebCore/editing/DeleteSelectionCommand.cpp:
(WebCore::DeleteSelectionCommand::mergeParagraphs):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list