Bug 314095 - Eliminate nsIContent::GetDocument, r=jst

--HG--
extra : rebase_source : dd8f690940825b298a478b65b68a57418a9962ff
Bug 1057339 - nsGlobalWindow::Focus compares innerwindow to outerwindow, r=bz