document.hasFocus() now returns proper value when tab doesn't have focus

https://code.google.com/p/chromium/issues/detail?id=64846
HTMLDocument::hasFocus() now actually checks whether the document has
focus.
FocusIsInactive test changed to expect false from hasFocus when view
is active but doesn't have focus.

Duplicate of https://codereview.chromium.org/22421002 issue with
proper base URL

BUG=64846
TEST=provided by the link above

Review URL: https://chromiumcodereview.appspot.com/22597003

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