Don't take the roundabout way through frame->document->ownerElement which just checks that the document->frame is non-null.
Created attachment 84069 [details] Proposed patch
Comment on attachment 84069 [details] Proposed patch Ideally we’d remove redundant functions like these. It’s annoying to have the same function in both Document and Frame. We have many cases of this. Obviously we don’t want to go from Frame to Document and then have it just call back to Frame so this change is great given the current state of things.
Comment on attachment 84069 [details] Proposed patch Clearing flags on attachment: 84069 Committed r79875: <http://trac.webkit.org/changeset/79875>
All reviewed patches have been landed. Closing bug.