Changeset 45075 in webkit


Ignore:
Timestamp:
Jun 24, 2009 1:12:12 AM (15 years ago)
Author:
eric@webkit.org
Message:

2009-06-24 Siddhartha Chattopadhyay <sidchat@google.com>

Reviewed by Eric Seidel.

Fix for https://bugs.webkit.org/show_bug.cgi?id=26200 which I introduced earlier. I had
the smartReplace set TRUE initially, which was wrong since the purpose of this call is
to just replace the selection, and place the caret at the end of the selection it replaced.

  • editing/Editor.cpp: (WebCore::Editor::markMisspellingsAfterTypingToPosition):
  • manual-tests/textarea-caret-position-after-auto-spell-correct.html: Added.
Location:
trunk/WebCore
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r45070 r45075  
     12009-06-24  Siddhartha Chattopadhyay  <sidchat@google.com>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Fix for https://bugs.webkit.org/show_bug.cgi?id=26200 which I introduced earlier. I had
     6        the smartReplace set TRUE initially, which was wrong since the purpose of this call is
     7        to just replace the selection, and place the caret at the end of the selection it replaced.
     8
     9        * editing/Editor.cpp:
     10        (WebCore::Editor::markMisspellingsAfterTypingToPosition):
     11        * manual-tests/textarea-caret-position-after-auto-spell-correct.html: Added.
     12
    1132009-06-24  Kevin Watters  <kevinwatters@gmail.com>
    214
  • trunk/WebCore/editing/Editor.cpp

    r44750 r45075  
    22072207        if (!frame()->editor()->shouldInsertText(autocorrectedString, misspellingRange.get(), EditorInsertActionTyped))
    22082208            return;
    2209         frame()->editor()->replaceSelectionWithText(autocorrectedString, false, true);
     2209        frame()->editor()->replaceSelectionWithText(autocorrectedString, false, false);
    22102210
    22112211        // Reset the charet one character further.
Note: See TracChangeset for help on using the changeset viewer.