Refactor Document.h to reduce build times
<rdar://problem/104465840>
Pull request: https://github.com/WebKit/WebKit/pull/8867
Committed 259231@main (a4a0ae0d7576): <https://commits.webkit.org/259231@main> Reviewed commits have been landed. Closing PR #8867 and removing active labels.