Less Firefox-specific stuff: use the same box model as Chrome does

There are still left some browser-specific calculations that I wager do damage than help.