DescriptionFix selectionDirection after setting value of TEXTAREA/INPUT.
slectionDirection wrongly returned "none" on non-Mac platforms in such
case. This CL
- makes sure that selection operations are done by setSelectionRange().
- moves direction normalization code from setSelectionRangeForBinding() to
setSelectionRange().
Also, this makes cacheSelection() private. Only HTMLTextFormControlElement calls
it.
BUG=640861
Committed: https://crrev.com/e31411764112e03a39ff3683a4aa8367e950e8d9
Cr-Commit-Position: refs/heads/master@{#414451}
Patch Set 1 #
Total comments: 3
Patch Set 2 : Add DCHECK_LE, update a cooment #Patch Set 3 : Revert DCHECK_LE #
Messages
Total messages: 24 (15 generated)
|