Changeset 245980 in webkit


Ignore:
Timestamp:
May 31, 2019 1:23:31 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Inserting a newline in contenteditable causes two characters to be added instead of one
https://bugs.webkit.org/show_bug.cgi?id=197894
<rdar://problems/49700998>

Patch by Andres Gonzalez <Andres Gonzalez> on 2019-05-31
Reviewed by Chris Fleizach.

No new test is necessary since this is a comment change.

Removed radar reference from code.

  • editing/Editing.cpp:

(WebCore::visiblePositionForIndexUsingCharacterIterator):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r245979 r245980  
     12019-05-31  Andres Gonzalez  <andresg_22@apple.com>
     2
     3        Inserting a newline in contenteditable causes two characters to be added instead of one
     4        https://bugs.webkit.org/show_bug.cgi?id=197894
     5        <rdar://problems/49700998>
     6
     7        Reviewed by Chris Fleizach.
     8
     9        No new test is necessary since this is a comment change.
     10
     11        Removed radar reference from code.
     12
     13        * editing/Editing.cpp:
     14        (WebCore::visiblePositionForIndexUsingCharacterIterator):
     15
    1162019-05-31  Tim Horton  <timothy_horton@apple.com>
    217
  • trunk/Source/WebCore/editing/Editing.cpp

    r245912 r245980  
    11241124
    11251125    if (!it.atEnd() && it.text()[0] == '\n') {
    1126         // FIXME: workaround for collapsed range (where only start position is correct) emitted for some emitted newlines (see rdar://5192593)
     1126        // FIXME: workaround for collapsed range (where only start position is correct) emitted for some emitted newlines.
    11271127        auto range = it.range();
    11281128        if (range->startPosition() == range->endPosition()) {
Note: See TracChangeset for help on using the changeset viewer.