Index: content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java b/content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java |
index 1eafc6afdaf7464861ff5d3891e1be27fbc9e2b7..19bcb89d1ecde85d5ac9d5fce66f463b7e10e045 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java |
@@ -75,8 +75,8 @@ public class AdapterInputConnection extends BaseInputConnection { |
if ((inputFlags & imeAdapter.sTextInputFlagAutocorrectOff) == 0) { |
outAttrs.inputType |= EditorInfo.TYPE_TEXT_FLAG_AUTO_CORRECT; |
} |
- } else if (inputType == ImeAdapter.sTextInputTypeTextArea || |
- inputType == ImeAdapter.sTextInputTypeContentEditable) { |
+ } else if (inputType == ImeAdapter.sTextInputTypeTextArea |
+ || inputType == ImeAdapter.sTextInputTypeContentEditable) { |
// TextArea or contenteditable. |
outAttrs.inputType |= EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE |
| EditorInfo.TYPE_TEXT_FLAG_CAP_SENTENCES; |
@@ -197,10 +197,10 @@ public class AdapterInputConnection extends BaseInputConnection { |
int compositionStart = getComposingSpanStart(mEditable); |
int compositionEnd = getComposingSpanEnd(mEditable); |
// Avoid sending update if we sent an exact update already previously. |
- if (mLastUpdateSelectionStart == selectionStart && |
- mLastUpdateSelectionEnd == selectionEnd && |
- mLastUpdateCompositionStart == compositionStart && |
- mLastUpdateCompositionEnd == compositionEnd) { |
+ if (mLastUpdateSelectionStart == selectionStart |
+ && mLastUpdateSelectionEnd == selectionEnd |
+ && mLastUpdateCompositionStart == compositionStart |
+ && mLastUpdateCompositionEnd == compositionEnd) { |
return; |
} |
if (DEBUG) { |