burg/timelapse — pull request #40 by rjbailey (2012-09-13 03:51:08+00:00)
Title: Memoize window.screen{X,Y,Left,Top}

I'm not sure if I took the right approach with some things here, so code review will be welcome :)

I named the memoization class `GetIntAttribute` because there are other attributes returning integers that should be memoized. For example, the window size attributes (outerHeight, innerWidth, etc.) should be memoized because we cannot always resize the window to the size we want (e.g. if there isn't enough screen space).

I'm not sure that the assertions in `JSDOMWindowCustom.cpp` are the right way to handle getting the wrong attribute type. I know this can come up if the user tries to check these properties using the console during replay.

Fixes #21.