Bug 941220 - Avoid calling GetVisualOverflowRectRelativeToSelf() multiple times to improve performance.  r=roc