Capital gains taxes (paid by shareholders) are completely separate from corporate income taxes (paid by corporations). You're also forgetting (or ignoring) that the legal incidence of a tax and the economic incidence are completely separate. For example, employers and employees are both legally responsible for paying a portion of payroll taxes, but economically speaking that tends to lead to lower wages, making the employer's portion fall at least partially on the employee.