Remove document as a parameter from a few internals methods
https://bugs.webkit.org/show_bug.cgi?id=107757

Reviewed by Hajime Morita.

Remove document as a parameter since there's already one associated with internals.

Source/WebCore:

No new tests, this refactors some testing code and is covered by
exisiting tests.

* testing/Internals.cpp:
(WebCore::Internals::isPreloaded):
(WebCore::Internals::createContentElement):
(WebCore::Internals::absoluteCaretBounds):
* testing/Internals.h:
(Internals):
* testing/Internals.idl:

LayoutTests:

* editing/input/editable-container-with-word-wrap-normal.html:
* editing/selection/caret-alignment-for-vertical-text.html:
* editing/selection/caret-at-end-of-text-line-followed-by-block-in-vertical-mode.html:
* editing/selection/caret-in-div-containing-br-in-vertical-mode.html:
* editing/selection/caret-in-empty-inline-1.html:
* editing/selection/caret-in-empty-inline-2.html:
* editing/selection/internal-caret-rect.html:
* fast/dom/resources/shadow-test-driver.js:
(createContentWithSelect):
(createContentWithText):
(appendShadow):
(appendShadowDeep):
* fast/dom/shadow/content-element-includer.html:
* fast/dom/shadow/content-element-renderers.html:
* fast/dom/shadow/content-selector-query.html:
* fast/dom/shadow/create-content-element.html:
* fast/dom/shadow/shadow-contents-fallback-dynamic.html:
* fast/dom/shadow/shadow-contents-fallback.html:
* fast/dom/shadow/shadow-contents-select.html:
* fast/preloader/scan-body-from-head-import.html:
* http/tests/loading/preload-append-scan.php:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@140710 268f45cc-cd09-0410-ab3c-d52691b4dbfc
23 files changed