support setContext in ShadowView