Research shows that two key physical traits significantly influence how long dogs live.