Bug 1043426: Avoid doing work for empty visible regions. r=mattwoodrow