Skip invalid styles before checking if inherited.

For certain pseudo styles there are only a subset of applicable properties.
Currently we check for those and early out of StyleResolver::applyProperties
after we've checked if the value of the property is inherited.

We don't need to do the inherit check if we're going to be early returning
anyway due to the fact that the property isn't valid. This CL moves the early
return to happen before the check for inherited values.

BUG=424914

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

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