Use the inheritence cache in all getElementStyle methods.

Reduces unnecessary object allocation.