Changeset 164320 in webkit


Ignore:
Timestamp:
Feb 18, 2014 2:37:58 PM (10 years ago)
Author:
rniwa@webkit.org
Message:

Merge notifyComponentsOnChangedSelection into respondToSelectionChange
https://bugs.webkit.org/show_bug.cgi?id=128993

Reviewed by Andreas Kling.

Merged notifyComponentsOnChangedSelection into respondToSelectionChange since notifyComponentsOnChangedSelection
was only added in iOS codebase in response to the code added for continuous spellchecking and alternative text controller
in respondToChangedSelection but they should have been called inside setIgnoreCompositionSelectionChange.

So merge these two functions and make respondToChangedSelection behave like setIgnoreCompositionSelectionChange.

  • editing/Editor.cpp:

(WebCore::Editor::setIgnoreCompositionSelectionChange):
(WebCore::Editor::respondToChangedSelection):

  • editing/Editor.h:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r164319 r164320  
     12014-02-18 Ryosuke Niwa <rniwa@webkit.org>
     2
     3        Merge notifyComponentsOnChangedSelection into respondToSelectionChange
     4        https://bugs.webkit.org/show_bug.cgi?id=128993
     5
     6        Reviewed by Andreas Kling.
     7
     8        Merged notifyComponentsOnChangedSelection into respondToSelectionChange since notifyComponentsOnChangedSelection
     9        was only added in iOS codebase in response to the code added for continuous spellchecking and alternative text controller
     10        in respondToChangedSelection but they should have been called inside setIgnoreCompositionSelectionChange.
     11
     12        So merge these two functions and make respondToChangedSelection behave like setIgnoreCompositionSelectionChange.
     13
     14        * editing/Editor.cpp:
     15        (WebCore::Editor::setIgnoreCompositionSelectionChange):
     16        (WebCore::Editor::respondToChangedSelection):
     17        * editing/Editor.h:
     18
    1192014-02-18  Ryosuke Niwa  <rniwa@webkit.org>
    220
  • trunk/Source/WebCore/editing/Editor.cpp

    r164183 r164320  
    757757{
    758758#if PLATFORM(IOS)
    759     // FIXME: Merge this to open source https://bugs.webkit.org/show_bug.cgi?id=38830
     759    // FIXME: Should suppress selection change notifications during a composition change <https://webkit.org/b/38830>
    760760    if (m_ignoreCompositionSelectionChange)
    761761        return;
     
    29502950    // starts a new kill ring sequence, but we want to do these things (matches AppKit).
    29512951#if PLATFORM(IOS)
    2952     // FIXME: Merge this to open source https://bugs.webkit.org/show_bug.cgi?id=38830
     2952    // FIXME: Should suppress selection change notifications during a composition change <https://webkit.org/b/38830>
    29532953    if (m_ignoreCompositionSelectionChange)
    29542954        return;
Note: See TracChangeset for help on using the changeset viewer.