In my original reply, I stated that the oil companies are passing on more to the consumer than just the added price in oil. They are protecting their gross margins as well! Not that there's anything wrong with that. Just calling a spade a spade.
Most people, even businesspeople and some accountants, tend to think in terms of profit on what is sold. However, that is not the only source of bookkeeping profits and losses. There is also gains and losses on the balance sheet that must be considered.
Exxon-Mobil always had a large inventory of oil and oil products on hand. Much of this is "baseline" -- it is tied up in their entire supply chain. Right this second, they have oil in tankers, oil in storage tanks, oil in refineries, oil products in storage, gasoline, etc.
As the price of crude rises, the value of all of this baseline inventory rises. The other side of the entry is an increase in shareholders' equity -- which is reported as a gain in the quarterly reports. This affects all companies with inventory, but particularly affects any commodity-based companies with large inventories (such as chemicals).
When the price falls, these companies will take hits. Of course, at that point the general public isn't paying attention.
The oil companies are reluctant to invest in drilling and refining because they fear the current high price will not last. They have been burned before on production investment that came on stream after prices fell.
Still, adjusting for inflation, gas is still much cheaper than Jimmy Carter Days.