Congestive heart failure, where poor heart function causes fluid and blood to back up in the large veins of the body can cause liver swelling and inflammation.
Bile flows from the liver into the gallbladder and ultimately into the intestine to help with the digestion of food.