the collapsed cursor case is handled in StyleHelper.getAppliedStyles i believe. Correct me if i'm wrong.