Changeset 116726 in webkit


Ignore:
Timestamp:
May 10, 2012 9:16:04 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][DRT] Editor doesn't cancel composition as change of value
https://bugs.webkit.org/show_bug.cgi?id=85122

Patch by Kangil Han <kangil.han@samsung.com> on 2012-05-10
Reviewed by Martin Robinson.

IME composition should be cancelled when the value of input element is changed programmatically.
However, EFL port doesn't cancel as change of value.
Therefore, this patch will fix the bug.

Source/WebKit/efl:

  • WebCoreSupport/EditorClientEfl.cpp:

(WebCore::EditorClientEfl::respondToChangedSelection):

LayoutTests:

  • platform/efl/Skipped:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r116725 r116726  
     12012-05-10  Kangil Han  <kangil.han@samsung.com>
     2
     3        [EFL][DRT] Editor doesn't cancel composition as change of value
     4        https://bugs.webkit.org/show_bug.cgi?id=85122
     5
     6        Reviewed by Martin Robinson.
     7
     8        IME composition should be cancelled when the value of input element is changed programmatically.
     9        However, EFL port doesn't cancel as change of value.
     10        Therefore, this patch will fix the bug.
     11
     12        * platform/efl/Skipped:
     13
    1142012-05-10  Noel Gordon  <noel.gordon@gmail.com>
    215
  • trunk/LayoutTests/platform/efl/Skipped

    r116656 r116726  
    204204editing/input/password-echo-passnode.html
    205205editing/input/password-echo-passnode2.html
    206 
    207 # EFL's editor doesn't cancel composition as change of value
    208 # https://bugs.webkit.org/show_bug.cgi?id=85122
    209 editing/input/setting-input-value-cancel-ime-composition.html
    210206
    211207# EFL's textarea and textfield doesn't handle whitespace style
  • trunk/Source/WebKit/efl/ChangeLog

    r116656 r116726  
     12012-05-10  Kangil Han  <kangil.han@samsung.com>
     2
     3        [EFL][DRT] Editor doesn't cancel composition as change of value
     4        https://bugs.webkit.org/show_bug.cgi?id=85122
     5
     6        Reviewed by Martin Robinson.
     7
     8        IME composition should be cancelled when the value of input element is changed programmatically.
     9        However, EFL port doesn't cancel as change of value.
     10        Therefore, this patch will fix the bug.
     11
     12        * WebCoreSupport/EditorClientEfl.cpp:
     13        (WebCore::EditorClientEfl::respondToChangedSelection):
     14
    1152012-05-10  Dominik Röttsches  <dominik.rottsches@intel.com>
    216
  • trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp

    r111835 r116726  
    145145    Evas_Object* webFrame = EWKPrivate::kitFrame(coreFrame);
    146146    ewk_frame_editor_client_selection_changed(webFrame);
     147
     148    if (!coreFrame->editor()->hasComposition() || coreFrame->editor()->ignoreCompositionSelectionChange())
     149        return;
     150
     151    unsigned start;
     152    unsigned end;
     153
     154    if (!coreFrame->editor()->getCompositionSelection(start, end))
     155        coreFrame->editor()->cancelComposition();
    147156}
    148157
Note: See TracChangeset for help on using the changeset viewer.