Make FrameCaret to retrieve caret position from SelectionEditor
This patch makes |FrameCaret| to use caret position from |SelectionEditor|
instead of holding caret position in |FrameCaret| to get rid of code of
maintaining caret position between |FrameCaret| and |SelectionEditor|
synchronize for improving code health.
The root cause of crbug.com/628520 is missing synchronization code in
|FrameSelection::updateIfNeeded()|. This patch is simpler than adding
synchronization code in |FrameSelection::updateIfNeeded()|.
BUG=628520
TEST=run_webkit_unit_tests --gtest_filter=FrameSelectionTest.updateIfNeededAndFrameCaret
Review-Url: https://codereview.chromium.org/2161373002
Cr-Commit-Position: refs/heads/master@{#406792}
4 files changed