Fixed performance issue, avoid recalculating style

Issue: http://www.reddit.com/r/RESissues/comments/29u4oc/bug_new_res_version_causing_major_performance/