Bug 1038178 - [GaiaGrid] Use document scroll frame for calculation

https://bugzilla.mozilla.org/show_bug.cgi?id=1038178