Editing - Code refactoring to avoid redundant function calls

Minor cleanup that I came across while working on other issues, to knock off redundant fucntion calls.
Also got rid of an unused variable.

TEST=No tests added since this is a refactoring.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163556 bbb929c8-8fbe-4397-9dbb-9b2b20218538