D.Core.Compile: better version of onStyle