Bug 1047390 - Performance regression while panning. r=cwiiis