Remove excessive calls to updateLineMargin()