Minor optimization in FrameSelection::setNonDirectionalSelectionIfNeeded().

We can avoid a second call to newSelection.visibleExtent() by maintaining a local
variable for the same.

A call to visibleExtent() further entails computing of VisiblePosition which can
be avoided the second time round.
This change also makes it similar to the handling of newSelection.visibleBase().

Review URL: https://codereview.chromium.org/64323002

git-svn-id: svn://svn.chromium.org/blink/trunk@161602 bbb929c8-8fbe-4397-9dbb-9b2b20218538
1 file changed