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

Changeset 275994 in webkit


Ignore:
Timestamp:
Apr 14, 2021, 8:27:10 PM (6 years ago)
Author:
rniwa@webkit.org
Message:

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:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r275988 r275994  
     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  Wenson Hsieh  <wenson_hsieh@apple.com>
    212
  • trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp

    r275972 r275994  
    995995    if (endOfParagraph(startOfParagraphToMove) == destination) {
    996996        auto placeholder = HTMLBRElement::create(document());
    997         insertNodeBefore(placeholder.copyRef(), *startOfParagraphToMove.deepEquivalent().deprecatedNode());
     997        insertNodeBefore(placeholder, *startOfParagraphToMove.deepEquivalent().deprecatedNode());
    998998        destination = VisiblePosition(positionBeforeNode(placeholder.ptr()));
    999999    }
Note: See TracChangeset for help on using the changeset viewer.