// WebKit build 40837 included support for getBoundingClientRect and getClientRects, which
// gives you the (hopefully) exact position and size of an element relative to the viewport.
// Which is cool, but unfortunately didn't come with Obj-C bindings to it.
// So this extension to DOMNode will retrieve a dictionary of the bounds inforation
// for the node given a JavaScript Context.
//
// http://trac.webkit.org/changeset/40837
#import <WebKit/WebKit.h>
#import <JavaScriptCore/JavaScriptCore.h>
@interface DOMNode (ClientRectsAdditions)
-(NSDictionary *)getBoundingClientRectForContext:(JSContextRef)jsCtx;
@end