jquery/jquery — pull request #807 by mikesherov (2012-06-02 18:51:21+00:00)
Title: fixes #11293, getting dimensions of zero width/height table elements shouldn't alter dimensions

```
Running "compare_size:files" (compare_size) task
Sizes - compared to master
251249 (+86) dist/jquery.js
92022 (+40) dist/jquery.min.js
33109 (+24) dist/jquery.min.js.gz
```

A few notes:
- I broke the "one var per function" rule here because I needed a cached var to save bytes in a guard clause, and to fully instantiate the variables before the guard clause would've made this very slow. I hope it's no big deal.
- I really dislike that for elements that have offsetWidth 0, we attempt to make them visible by swapping out some css properties. Users really shouldn't be asking for measurements on hidden elements. I suppose we need it for back-compat, but I just really dislike it.