Bug 997406 - Take into account padding when deciding whether to show Share icon. r=liuche, a=lsblakk