⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 282504 in webkit


Ignore:
Timestamp:
Sep 16, 2021, 1:14:51 AM (5 years ago)
Author:
Adrian Perez de Castro
Message:

Merge r275994 - Crash in in ReplaceSelectionCommand::mergeEndIfNeeded()
​https://bugs.webkit.org/show_bug.cgi?id=222941

Unreviewed. Address Darin's post-commit comment that we don't need to explicitly call copyRef here.

  • editing/ReplaceSelectionCommand.cpp:

(WebCore::ReplaceSelectionCommand::mergeEndIfNeeded):

Location:
releases/WebKitGTK/webkit-2.32/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.32/Source/WebCore/ChangeLog

    r282503 r282504  
     12021-04-14  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Crash in in ReplaceSelectionCommand::mergeEndIfNeeded()
     4        https://bugs.webkit.org/show_bug.cgi?id=222941
     5
     6        Unreviewed. Address Darin's post-commit comment that we don't need to explicitly call copyRef here.
     7
     8        * editing/ReplaceSelectionCommand.cpp:
     9        (WebCore::ReplaceSelectionCommand::mergeEndIfNeeded):
     10
    1112021-04-14  Julian Gonzalez  <julian_a_gonzalez@apple.com>
    212
  • releases/WebKitGTK/webkit-2.32/Source/WebCore/editing/ReplaceSelectionCommand.cpp

    r282503 r282504  
    968968    if (endOfParagraph(startOfParagraphToMove) == destination) {
    969969        auto placeholder = HTMLBRElement::create(document());
    970         insertNodeBefore(placeholder.copyRef(), *startOfParagraphToMove.deepEquivalent().deprecatedNode());
     970        insertNodeBefore(placeholder, *startOfParagraphToMove.deepEquivalent().deprecatedNode());
    971971        destination = VisiblePosition(positionBeforeNode(placeholder.ptr()));
    972972    }
Note: See TracChangeset for help on using the changeset viewer.