Performance enhancement.  Don't process non-visible lines for layout.

Change-Id: Ie2b594afb4f5244e18719e4feea51966ad4745cd