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:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@164320
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-02-18 Ryosuke Niwa <rniwa@webkit.org>
+
+ 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:
+
2014-02-18 Ryosuke Niwa <rniwa@webkit.org>
FrameSelection::textWasReplaced and setSelectedRange shouldn't trigger synchronous layout
void Editor::notifyComponentsOnChangedSelection(const VisibleSelection& oldSelection, FrameSelection::SetSelectionOptions options)
{
#if PLATFORM(IOS)
- // FIXME: Merge this to open source https://bugs.webkit.org/show_bug.cgi?id=38830
+ // FIXME: Should suppress selection change notifications during a composition change <https://webkit.org/b/38830>
if (m_ignoreCompositionSelectionChange)
return;
#endif
// does not call EditorClient::respondToChangedSelection(), which, on the Mac, sends selection change notifications and
// starts a new kill ring sequence, but we want to do these things (matches AppKit).
#if PLATFORM(IOS)
- // FIXME: Merge this to open source https://bugs.webkit.org/show_bug.cgi?id=38830
+ // FIXME: Should suppress selection change notifications during a composition change <https://webkit.org/b/38830>
if (m_ignoreCompositionSelectionChange)
return;
#endif