Issue 7079: Avoid performance penalty because of onEnterFrame