Changeset 141545 in webkit
- Timestamp:
- Jan 31, 2013 11:43:13 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r141542 r141545 1 2013-01-31 Aurimas Liutikas <aurimas@chromium.org> 2 3 Editor::m_compositionNode not updated on HTMLInputElement::setValue() 4 https://bugs.webkit.org/show_bug.cgi?id=107737 5 6 Reviewed by Ryosuke Niwa. 7 8 * platform/chromium/TestExpectations: Removed fail expectation for the editing/input/setting-input-value-cancel-ime-composition.html since this patch fixes the bug https://bugs.webkit.org/show_bug.cgi?id=55560 9 1 10 2013-01-31 Lamarque V. Souza <Lamarque.Souza@basyskom.com> 2 11 -
trunk/LayoutTests/platform/chromium/TestExpectations
r141529 r141545 1101 1101 crbug.com/64938 editing/selection/5354455-1.html [ Failure ] 1102 1102 1103 webkit.org/b/55560 editing/input/setting-input-value-cancel-ime-composition.html [ Failure ]1104 1105 1103 # New test added in r82159 1106 1104 crbug.com/77706 editing/spelling/grammar.html [ Failure ] -
trunk/Source/WebCore/ChangeLog
r141543 r141545 1 2013-01-31 Aurimas Liutikas <aurimas@chromium.org> 2 3 Editor::m_compositionNode not updated on HTMLInputElement::setValue() 4 https://bugs.webkit.org/show_bug.cgi?id=107737 5 6 Reviewed by Ryosuke Niwa. 7 8 Chromium has a bug where the IME composition did not get cancelled on JavaScript changes 9 to the focused editing field. Most of other WebKit ports were already doing this check 10 in their EditorClient::respondToChangedSelection. I took that logic and moved it to the 11 Editor so every port and use the same code. 12 13 An existing test editing/input/setting-input-value-cancel-ime-composition.html covers this change. 14 This test used to have an expectation to fail on Chromium and after this patch it will start passing. 15 16 * editing/Editor.cpp: 17 (WebCore::Editor::cancelCompositionIfSelectionIsInvalid): 18 Adding a call that can be used by any the port to cancel the composition if it's no longer valid. 19 (WebCore): 20 * editing/Editor.h: 21 (Editor): 22 1 23 2013-01-31 Jae Hyun Park <jae.park@company100.net> 2 24 -
trunk/Source/WebCore/editing/Editor.cpp
r141525 r141545 1344 1344 } 1345 1345 1346 bool Editor::cancelCompositionIfSelectionIsInvalid() 1347 { 1348 unsigned start; 1349 unsigned end; 1350 if (!hasComposition() || ignoreCompositionSelectionChange() || getCompositionSelection(start, end)) 1351 return false; 1352 1353 cancelComposition(); 1354 return true; 1355 } 1356 1346 1357 void Editor::confirmComposition(const String& text) 1347 1358 { -
trunk/Source/WebCore/editing/Editor.h
r141525 r141545 297 297 void confirmComposition(const String&); // if no existing composition, replaces selection 298 298 void cancelComposition(); 299 bool cancelCompositionIfSelectionIsInvalid(); 299 300 PassRefPtr<Range> compositionRange() const; 300 301 bool getCompositionSelection(unsigned& selectionStart, unsigned& selectionEnd) const; -
trunk/Source/WebKit/chromium/ChangeLog
r141540 r141545 1 2013-01-31 Aurimas Liutikas <aurimas@chromium.org> 2 3 Editor::m_compositionNode not updated on HTMLInputElement::setValue() 4 https://bugs.webkit.org/show_bug.cgi?id=107737 5 6 Reviewed by Ryosuke Niwa. 7 8 * public/WebViewClient.h: 9 (WebKit::WebViewClient::didCancelCompositionOnSelectionChange): 10 Adding a callback to let the WebViewClient know that the composition has been cancelled. 11 * src/EditorClientImpl.cpp: 12 (WebKit::EditorClientImpl::respondToChangedSelection): 13 Adding a call composition if it is no longer valid. 14 1 15 2013-01-31 Aurimas Liutikas <aurimas@chromium.org> 2 16 -
trunk/Source/WebKit/chromium/public/WebViewClient.h
r141525 r141545 191 191 192 192 virtual void didBeginEditing() { } 193 virtual void didCancelCompositionOnSelectionChange() { } 193 194 virtual void didChangeSelection(bool isSelectionEmpty) { } 194 195 virtual void didChangeContents() { } -
trunk/Source/WebKit/chromium/src/EditorClientImpl.cpp
r141525 r141545 269 269 { 270 270 if (m_webView->client()) { 271 if (frame) 271 if (frame) { 272 272 m_webView->client()->didChangeSelection(!frame->selection()->isRange()); 273 if (frame->editor()->cancelCompositionIfSelectionIsInvalid()) 274 m_webView->client()->didCancelCompositionOnSelectionChange(); 275 } 273 276 } 274 277 } -
trunk/Source/WebKit/efl/ChangeLog
r141525 r141545 1 2013-01-31 Aurimas Liutikas <aurimas@chromium.org> 2 3 Editor::m_compositionNode not updated on HTMLInputElement::setValue() 4 https://bugs.webkit.org/show_bug.cgi?id=107737 5 6 Reviewed by Ryosuke Niwa. 7 8 * WebCoreSupport/EditorClientEfl.cpp: 9 (WebCore::EditorClientEfl::respondToChangedSelection): 10 Adding a call to the newly refactored method. 11 1 12 2013-01-31 Sheriff Bot <webkit.review.bot@gmail.com> 2 13 -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp
r141525 r141545 153 153 ewk_frame_editor_client_selection_changed(webFrame); 154 154 155 if (!coreFrame->editor()->hasComposition() || coreFrame->editor()->ignoreCompositionSelectionChange()) 156 return; 157 158 unsigned start; 159 unsigned end; 160 161 if (!coreFrame->editor()->getCompositionSelection(start, end)) 162 coreFrame->editor()->cancelComposition(); 155 coreFrame->editor()->cancelCompositionIfSelectionIsInvalid(); 163 156 } 164 157 -
trunk/Source/WebKit/gtk/ChangeLog
r141525 r141545 1 2013-01-31 Aurimas Liutikas <aurimas@chromium.org> 2 3 Editor::m_compositionNode not updated on HTMLInputElement::setValue() 4 https://bugs.webkit.org/show_bug.cgi?id=107737 5 6 Reviewed by Ryosuke Niwa. 7 8 * WebCoreSupport/EditorClientGtk.cpp: 9 (WebKit::EditorClient::respondToChangedSelection): 10 Adding a call to the newly refactored Editor method. 11 1 12 2013-01-31 Sheriff Bot <webkit.review.bot@gmail.com> 2 13 -
trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp
r141525 r141545 263 263 #endif 264 264 265 if (!frame->editor()->hasComposition() || frame->editor()->ignoreCompositionSelectionChange()) 266 return; 267 268 unsigned start; 269 unsigned end; 270 if (!frame->editor()->getCompositionSelection(start, end)) 265 if (frame->editor()->cancelCompositionIfSelectionIsInvalid()) 271 266 m_webView->priv->imFilter.resetContext(); 272 267 } -
trunk/Source/WebKit/mac/ChangeLog
r141525 r141545 1 2013-01-31 Aurimas Liutikas <aurimas@chromium.org> 2 3 Editor::m_compositionNode not updated on HTMLInputElement::setValue() 4 https://bugs.webkit.org/show_bug.cgi?id=107737 5 6 Reviewed by Ryosuke Niwa. 7 8 * WebView/WebHTMLView.mm: 9 (-[WebHTMLView _updateSelectionForInputManager]): 10 1 11 2013-01-31 Sheriff Bot <webkit.review.bot@gmail.com> 2 12 -
trunk/Source/WebKit/mac/WebView/WebHTMLView.mm
r141525 r141545 6038 6038 [self _updateSecureInputState]; 6039 6039 6040 if (!coreFrame->editor()->hasComposition()) 6041 return; 6042 6043 if (coreFrame->editor()->ignoreCompositionSelectionChange()) 6040 if (!coreFrame->editor()->hasComposition() || coreFrame->editor()->ignoreCompositionSelectionChange()) 6044 6041 return; 6045 6042 -
trunk/Source/WebKit/win/ChangeLog
r141525 r141545 1 2013-01-31 Aurimas Liutikas <aurimas@chromium.org> 2 3 Editor::m_compositionNode not updated on HTMLInputElement::setValue() 4 https://bugs.webkit.org/show_bug.cgi?id=107737 5 6 Reviewed by Ryosuke Niwa. 7 8 * WebView.cpp: 9 (WebView::updateSelectionForIME): 10 Adding a call to the newly refactored method. 11 1 12 2013-01-31 Sheriff Bot <webkit.review.bot@gmail.com> 2 13 -
trunk/Source/WebKit/win/WebView.cpp
r141525 r141545 5482 5482 { 5483 5483 Frame* targetFrame = m_page->focusController()->focusedOrMainFrame(); 5484 if (!targetFrame || !targetFrame->editor()->hasComposition()) 5484 5485 if (!targetFrame) 5485 5486 return; 5486 5487 if (targetFrame->editor()->ignoreCompositionSelectionChange()) 5488 return; 5489 5490 unsigned start; 5491 unsigned end; 5492 if (!targetFrame->editor()->getCompositionSelection(start, end)) 5487 5488 if (!targetFrame->editor()->cancelCompositionIfSelectionIsInvalid()) 5493 5489 resetIME(targetFrame); 5494 5490 }
Note: See TracChangeset
for help on using the changeset viewer.