Trans fats are created when vegetable oil has been partially hydrogenated , solidifying it and increasing the shelf life of certain products .