Index: content/public/android/java/src/org/chromium/content/browser/input/CursorAnchorInfoController.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/CursorAnchorInfoController.java b/content/public/android/java/src/org/chromium/content/browser/input/CursorAnchorInfoController.java |
index 443e7d25a4c660083b3906c8b44f6f471bfc4050..da91d0f0d75aed8f535dbfb2a5f67273af5f61c1 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/input/CursorAnchorInfoController.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/input/CursorAnchorInfoController.java |
@@ -129,14 +129,16 @@ final class CursorAnchorInfoController { |
/** |
* Sets positional information of composing text as an array of character bounds. |
* @param compositionCharacterBounds Array of character bounds in local coordinates. |
+ * @param view The attached view. |
*/ |
- public void setCompositionCharacterBounds(float[] compositionCharacterBounds) { |
+ public void setCompositionCharacterBounds(float[] compositionCharacterBounds, View view) { |
if (!mIsEditable) return; |
if (!Arrays.equals(compositionCharacterBounds, mCompositionCharacterBounds)) { |
mLastCursorAnchorInfo = null; |
mCompositionCharacterBounds = compositionCharacterBounds; |
} |
+ updateCursorAnchorInfo(view); |
} |
/** |
@@ -198,14 +200,6 @@ final class CursorAnchorInfoController { |
} |
} |
- /** |
- * Resets the current state on update monitoring mode to the default (= do nothing.) |
- */ |
- public void resetMonitoringState() { |
- mMonitorModeEnabled = false; |
- mHasPendingImmediateRequest = false; |
- } |
- |
public void focusedNodeChanged(boolean isEditable) { |
mIsEditable = isEditable; |
mCompositionCharacterBounds = null; |