Fix 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 Review-Url: https://codereview.chromium.org/2277903003 Cr-Commit-Position: refs/heads/master@{#414451}
Showing
Please register or sign in to comment