Rename Document::body() to Document::bodyOrFrameset() for clarity. This method does not necessarily return an HTMLBodyElement, it can also return a frameset as per the specification: http://www.w3.org/TR/html5/dom.html#dom-tree-accessors This method is often misused internally (the caller is only interested in the <body> element). I will fix these instances in a follow-up patch.
Created attachment 245377 [details] Patch
Created attachment 245380 [details] Patch
Comment on attachment 245380 [details] Patch r=me
Comment on attachment 245380 [details] Patch Clearing flags on attachment: 245380 Committed r179157: <http://trac.webkit.org/changeset/179157>
All reviewed patches have been landed. Closing bug.