Clear StyleResolver state before returning from styleForElement().

A cached element pointer in the resolver state was causing confusion because
in some cases a subsequent call to styleForElement() would use a pointer to
a different object that is at the same memory address as the previous one.

Review URL:

Patch from Ken Buchanan <>.

git-svn-id: svn:// bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed