refactor isTainted logic in WebCore.