Yahoo to lay off 20% of workforce, and News Corp. to cut 1,250 positions this year