Merge "Early exit if there are no spans affecting display"