Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Unified Diff: Source/core/editing/InputMethodController.cpp

Issue 23526038: Merge 157345 "Fixing the bounds check in cancelCompositionIfSele..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1599/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/InputMethodController.cpp
===================================================================
--- Source/core/editing/InputMethodController.cpp (revision 157550)
+++ Source/core/editing/InputMethodController.cpp (working copy)
@@ -173,8 +173,8 @@
Position end = m_frame->selection()->end();
if (start.containerNode() == m_compositionNode
&& end.containerNode() == m_compositionNode
- && static_cast<unsigned>(start.computeOffsetInContainerNode()) > m_compositionStart
- && static_cast<unsigned>(end.computeOffsetInContainerNode()) < m_compositionEnd)
+ && static_cast<unsigned>(start.computeOffsetInContainerNode()) >= m_compositionStart
+ && static_cast<unsigned>(end.computeOffsetInContainerNode()) <= m_compositionEnd)
return;
cancelComposition();
« no previous file with comments | « no previous file | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698