Methods on window.internals shouldn't pass a document.
https://bugs.webkit.org/show_bug.cgi?id=107301
Patch by Afonso R. Costa Jr. <afonso.costa@samsung.com> on 2013-10-28
Reviewed by Alexey Proskuryakov.
Each 'Internals' instance is associated with a 'Document'. So, it
is not necessary to pass a document as argument. Only nodesFromRect and
layerTreeAsText methods were kept because, in some Layout Tests, the
'Document' object is not the same used by Internals::contextDocument.
Source/WebCore:
* testing/Internals.cpp: Removed 'document' parameter.
(WebCore::Internals::animationsAreSuspended):
(WebCore::Internals::suspendAnimations):
(WebCore::Internals::resumeAnimations):
(WebCore::Internals::inspectorHighlightRects):
(WebCore::Internals::inspectorHighlightObject):
(WebCore::Internals::setScrollViewPosition):
(WebCore::Internals::setPagination):
(WebCore::Internals::configurationForViewport):
(WebCore::Internals::paintControlTints):
(WebCore::Internals::setDelegatesScrolling):
(WebCore::Internals::touchPositionAdjustedToBestClickableNode):
(WebCore::Internals::touchNodeAdjustedToBestClickableNode):
(WebCore::Internals::touchPositionAdjustedToBestContextMenuNode):
(WebCore::Internals::touchNodeAdjustedToBestContextMenuNode):
(WebCore::Internals::bestZoomableAreaForTouchPoint):
(WebCore::Internals::lastSpellCheckRequestSequence):
(WebCore::Internals::lastSpellCheckProcessedSequence):
(WebCore::Internals::wheelEventHandlerCount):
(WebCore::Internals::touchEventHandlerCount):
(WebCore::Internals::setBatteryStatus):
(WebCore::Internals::setNetworkInformation):
(WebCore::Internals::setDeviceProximity):
(WebCore::Internals::hasSpellingMarker):
(WebCore::Internals::hasAutocorrectedMarker):
(WebCore::Internals::isOverwriteModeEnabled):
(WebCore::Internals::toggleOverwriteModeEnabled):
(WebCore::Internals::consoleMessageArgumentCounts):
(WebCore::Internals::hasGrammarMarker):
(WebCore::Internals::numberOfScrollableAreas):
(WebCore::Internals::isPageBoxVisible):
(WebCore::Internals::repaintRectsAsText):
(WebCore::Internals::scrollingStateTreeAsText):
(WebCore::Internals::mainThreadScrollingReasons):
(WebCore::Internals::nonFastScrollableRects):
(WebCore::Internals::garbageCollectDocumentResources):
(WebCore::Internals::insertAuthorCSS):
(WebCore::Internals::insertUserCSS):
(WebCore::Internals::shortcutIconURLs):
(WebCore::Internals::allIconURLs):
(WebCore::Internals::setHeaderHeight):
(WebCore::Internals::setFooterHeight):
(WebCore::Internals::webkitWillEnterFullScreenForElement):
(WebCore::Internals::webkitDidEnterFullScreenForElement):
(WebCore::Internals::webkitWillExitFullScreenForElement):
(WebCore::Internals::webkitDidExitFullScreenForElement):
(WebCore::Internals::startTrackingRepaints):
(WebCore::Internals::stopTrackingRepaints):
(WebCore::Internals::getCurrentCursorInfo):
* testing/Internals.h:
(WebCore::Internals::setPagination):
* testing/Internals.idl:
LayoutTests:
* animations/added-while-suspended.html: Removed 'document' parameter.
* animations/play-state-suspend.html:
* animations/stop-animation-on-suspend.html:
* animations/suspend-resume-animation-events.html:
* animations/suspend-resume-animation.html:
* animations/suspend-transform-animation.html:
* batterystatus/resources/event-after-navigation-new.html:
* batterystatus/script-tests/add-listener-from-callback.js:
(firstListener):
* batterystatus/script-tests/basic-all-types-of-events.js:
* batterystatus/script-tests/basic-operation.js:
* batterystatus/script-tests/multiple-frames.js:
* batterystatus/script-tests/updates.js:
(setBatteryStatus):
* compositing/columns/ancestor-clipped-in-paginated.html:
* compositing/columns/clipped-in-paginated.html:
* compositing/columns/composited-columns-vertical-rl.html:
* compositing/columns/composited-in-paginated-rl.html:
* compositing/columns/composited-in-paginated-writing-mode-rl.html:
* compositing/columns/composited-in-paginated.html:
* compositing/columns/composited-lr-paginated-repaint.html:
* compositing/columns/composited-rl-paginated-repaint.html:
* compositing/columns/geometry-map-paginated-assert.html:
* compositing/columns/hittest-composited-in-paginated.html:
* compositing/columns/rotated-in-paginated.html:
* compositing/columns/untransformed-composited-in-paginated.html:
* compositing/iframes/iframe-composited-scrolling.html:
* compositing/layer-creation/fixed-position-in-view-dynamic.html:
* compositing/layer-creation/fixed-position-no-content-scroll-reason.html:
* compositing/layer-creation/fixed-position-out-of-view-dynamic.html:
* compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html:
* compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html:
* compositing/overflow/dynamic-composited-scrolling-status.html:
* compositing/overflow/scrolling-without-painting.html:
* compositing/overflow/updating-scrolling-content.html:
* compositing/repaint/absolute-painted-into-composited-ancestor.html:
* compositing/repaint/fixed-background-scroll.html:
* compositing/repaint/invalidations-on-composited-layers.html:
* compositing/repaint/positioned-movement.html:
* compositing/repaint/repaint-on-layer-grouping-change.html:
* compositing/repaint/resize-repaint.html:
* compositing/repaint/scroll-fixed-layer-no-content.html:
* compositing/repaint/scroll-fixed-layer-out-of-view.html:
* editing/caret/selection-with-caret-type-progress.html:
* editing/execCommand/overtype.html:
* editing/selection/block-cursor-overtype-mode.html:
* editing/spelling/design-mode-spellcheck-off.html:
* editing/spelling/grammar-edit-word-expected.txt:
* editing/spelling/grammar-edit-word.html:
* editing/spelling/grammar-markers-hidpi.html:
* editing/spelling/grammar-markers.html:
* editing/spelling/grammar.html:
* editing/spelling/script-tests/spellcheck-paste.js:
(verifyMarker):
* editing/spelling/script-tests/spelling-attribute-at-child.js:
(childHasSpellingMarker):
* editing/spelling/script-tests/spelling-attribute-change.js:
(testSpellCheckingEnabled):
* editing/spelling/script-tests/spelling-backspace-between-lines.js:
(testWithDelete):
(testWithForwardDelete):
* editing/spelling/script-tests/spelling-hasspellingmarker.js:
(hasMarked):
* editing/spelling/spellcheck-async-mutation.html:
* editing/spelling/spellcheck-attribute-expected.txt:
* editing/spelling/spellcheck-attribute.html:
* editing/spelling/spellcheck-paste-continuous-disabled-expected.txt:
* editing/spelling/spellcheck-paste-continuous-disabled.html:
* editing/spelling/spellcheck-paste-disabled-expected.txt:
* editing/spelling/spellcheck-paste-disabled.html:
* editing/spelling/spellcheck-sequencenum.html:
* editing/spelling/spelling-attribute-change-expected.txt:
* editing/spelling/spelling-backspace-between-lines-expected.txt:
* editing/spelling/spelling-linebreak.html:
* fast/box-shadow/shadow-repaint.html:
* fast/css/webkit-mask-crash-fieldset-legend.html:
* fast/css/webkit-mask-crash-figure.html:
* fast/css/webkit-mask-crash-table.html:
* fast/css/webkit-mask-crash-td-2.html:
* fast/css/webkit-mask-crash-td.html:
* fast/dom/icon-url-change.html:
* fast/dom/icon-url-list-apple-touch.html:
* fast/dom/icon-url-list.html:
* fast/dom/icon-url-property.html:
* fast/events/mouse-cursor-change.html:
* fast/events/mouse-cursor-image-set.html:
* fast/events/mouse-cursor-multiframecur.html:
* fast/events/mouse-cursor-no-mousemove.html:
* fast/events/mouse-cursor.html:
* fast/events/touch/touch-handler-count-expected.txt:
* fast/events/touch/touch-handler-count.html:
* fast/events/touch/touch-input-element-change-documents-expected.txt:
* fast/events/touch/touch-input-element-change-documents.html:
* fast/multicol/hit-test-gap-between-pages-flipped.html:
* fast/multicol/hit-test-gap-between-pages.html:
* fast/multicol/pagination-h-horizontal-bt.html:
* fast/multicol/pagination-h-horizontal-tb.html:
* fast/multicol/pagination-h-vertical-lr.html:
* fast/multicol/pagination-h-vertical-rl.html:
* fast/multicol/pagination-v-horizontal-bt.html:
* fast/multicol/pagination-v-horizontal-tb.html:
* fast/multicol/pagination-v-vertical-lr.html:
* fast/multicol/pagination-v-vertical-rl.html:
* fast/multicol/pagination/BottomToTop-bt.html:
* fast/multicol/pagination/BottomToTop-lr.html:
* fast/multicol/pagination/BottomToTop-rl.html:
* fast/multicol/pagination/BottomToTop-tb.html:
* fast/multicol/pagination/LeftToRight-bt.html:
* fast/multicol/pagination/LeftToRight-lr.html:
* fast/multicol/pagination/LeftToRight-rl.html:
* fast/multicol/pagination/LeftToRight-tb.html:
* fast/multicol/pagination/RightToLeft-bt.html:
* fast/multicol/pagination/RightToLeft-lr.html:
* fast/multicol/pagination/RightToLeft-rl.html:
* fast/multicol/pagination/RightToLeft-tb.html:
* fast/multicol/pagination/TopToBottom-bt.html:
* fast/multicol/pagination/TopToBottom-lr.html:
* fast/multicol/pagination/TopToBottom-rl.html:
* fast/multicol/pagination/TopToBottom-tb.html:
* fast/multicol/shrink-to-column-height-for-pagination.html:
* fast/repaint/background-shorthand-with-gradient-and-height-changes.html:
* fast/repaint/obscured-background-no-repaint.html:
* fast/repaint/resources/text-based-repaint.js:
(runRepaintTest):
* fast/scrolling/resources/scrollable-area.js:
(end):
* fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts.html:
* fast/viewport/viewport-1.html:
* fast/viewport/viewport-10.html:
* fast/viewport/viewport-100.html:
* fast/viewport/viewport-101.html:
* fast/viewport/viewport-102.html:
* fast/viewport/viewport-103.html:
* fast/viewport/viewport-104.html:
* fast/viewport/viewport-105.html:
* fast/viewport/viewport-106.html:
* fast/viewport/viewport-107.html:
* fast/viewport/viewport-108.html:
* fast/viewport/viewport-109.html:
* fast/viewport/viewport-11.html:
* fast/viewport/viewport-110.html:
* fast/viewport/viewport-111.html:
* fast/viewport/viewport-112.html:
* fast/viewport/viewport-113.html:
* fast/viewport/viewport-114.html:
* fast/viewport/viewport-115.html:
* fast/viewport/viewport-116.html:
* fast/viewport/viewport-117.html:
* fast/viewport/viewport-118.html:
* fast/viewport/viewport-119.html:
* fast/viewport/viewport-12.html:
* fast/viewport/viewport-120.html:
* fast/viewport/viewport-121.html:
* fast/viewport/viewport-122.html:
* fast/viewport/viewport-123.html:
* fast/viewport/viewport-124.html:
* fast/viewport/viewport-125.html:
* fast/viewport/viewport-126.html:
* fast/viewport/viewport-127.html:
* fast/viewport/viewport-128.html:
* fast/viewport/viewport-129.html:
* fast/viewport/viewport-13.html:
* fast/viewport/viewport-130.html:
* fast/viewport/viewport-131.html:
* fast/viewport/viewport-132.html:
* fast/viewport/viewport-133.html:
* fast/viewport/viewport-134.html:
* fast/viewport/viewport-14.html:
* fast/viewport/viewport-15.html:
* fast/viewport/viewport-16.html:
* fast/viewport/viewport-17.html:
* fast/viewport/viewport-18.html:
* fast/viewport/viewport-19.html:
* fast/viewport/viewport-2.html:
* fast/viewport/viewport-20.html:
* fast/viewport/viewport-21.html:
* fast/viewport/viewport-22.html:
* fast/viewport/viewport-23.html:
* fast/viewport/viewport-24.html:
* fast/viewport/viewport-25.html:
* fast/viewport/viewport-26.html:
* fast/viewport/viewport-27.html:
* fast/viewport/viewport-28.html:
* fast/viewport/viewport-29.html:
* fast/viewport/viewport-3.html:
* fast/viewport/viewport-30.html:
* fast/viewport/viewport-31.html:
* fast/viewport/viewport-32.html:
* fast/viewport/viewport-33.html:
* fast/viewport/viewport-34.html:
* fast/viewport/viewport-35.html:
* fast/viewport/viewport-36.html:
* fast/viewport/viewport-37.html:
* fast/viewport/viewport-38.html:
* fast/viewport/viewport-39.html:
* fast/viewport/viewport-4.html:
* fast/viewport/viewport-40.html:
* fast/viewport/viewport-41.html:
* fast/viewport/viewport-42.html:
* fast/viewport/viewport-43.html:
* fast/viewport/viewport-44.html:
* fast/viewport/viewport-45.html:
* fast/viewport/viewport-46.html:
* fast/viewport/viewport-47.html:
* fast/viewport/viewport-48.html:
* fast/viewport/viewport-49.html:
* fast/viewport/viewport-5.html:
* fast/viewport/viewport-50.html:
* fast/viewport/viewport-51.html:
* fast/viewport/viewport-52.html:
* fast/viewport/viewport-53.html:
* fast/viewport/viewport-54.html:
* fast/viewport/viewport-55.html:
* fast/viewport/viewport-56.html:
* fast/viewport/viewport-57.html:
* fast/viewport/viewport-58.html:
* fast/viewport/viewport-59.html:
* fast/viewport/viewport-6.html:
* fast/viewport/viewport-60.html:
* fast/viewport/viewport-61.html:
* fast/viewport/viewport-62.html:
* fast/viewport/viewport-63.html:
* fast/viewport/viewport-64.html:
* fast/viewport/viewport-65.html:
* fast/viewport/viewport-66.html:
* fast/viewport/viewport-67.html:
* fast/viewport/viewport-68.html:
* fast/viewport/viewport-69.html:
* fast/viewport/viewport-7.html:
* fast/viewport/viewport-70.html:
* fast/viewport/viewport-71.html:
* fast/viewport/viewport-72.html:
* fast/viewport/viewport-73.html:
* fast/viewport/viewport-74.html:
* fast/viewport/viewport-75.html:
* fast/viewport/viewport-76.html:
* fast/viewport/viewport-77.html:
* fast/viewport/viewport-78.html:
* fast/viewport/viewport-79.html:
* fast/viewport/viewport-8.html:
* fast/viewport/viewport-80.html:
* fast/viewport/viewport-81.html:
* fast/viewport/viewport-82.html:
* fast/viewport/viewport-83.html:
* fast/viewport/viewport-84.html:
* fast/viewport/viewport-85.html:
* fast/viewport/viewport-86.html:
* fast/viewport/viewport-87.html:
* fast/viewport/viewport-88.html:
* fast/viewport/viewport-9.html:
* fast/viewport/viewport-90.html:
* fast/viewport/viewport-91.html:
* fast/viewport/viewport-legacy-handheldfriendly.html:
* fast/viewport/viewport-legacy-mobileoptimized-2.html:
* fast/viewport/viewport-legacy-mobileoptimized-3.html:
* fast/viewport/viewport-legacy-mobileoptimized.html:
* fast/viewport/viewport-legacy-ordering-1.html:
* fast/viewport/viewport-legacy-ordering-2.html:
* fast/viewport/viewport-legacy-ordering-3.html:
* fast/viewport/viewport-legacy-ordering-4.html:
* fast/viewport/viewport-legacy-ordering-5.html:
* fast/viewport/viewport-legacy-ordering-6.html:
* fast/viewport/viewport-legacy-ordering-7.html:
* fast/viewport/viewport-legacy-ordering-8.html:
* fast/viewport/viewport-legacy-ordering-9.html:
* fast/viewport/viewport-legacy-xhtmlmp-misplaced-doctype.html:
* fast/viewport/viewport-legacy-xhtmlmp-ordering.html:
* fast/viewport/viewport-legacy-xhtmlmp-remove-and-add.html:
* fast/viewport/viewport-legacy-xhtmlmp.html:
* fast/viewport/viewport-limits-adjusted-for-no-user-scale-control.html:
* fast/viewport/viewport-limits-adjusted-for-no-user-scale.html:
* fast/viewport/viewport-warnings-1.html:
* fast/viewport/viewport-warnings-2.html:
* fast/viewport/viewport-warnings-3.html:
* fast/viewport/viewport-warnings-4.html:
* fast/viewport/viewport-warnings-5.html:
* fast/viewport/viewport-warnings-6.html:
* fullscreen/video-cursor-auto-hide-expected.txt:
* fullscreen/video-cursor-auto-hide.html:
* http/tests/inspector-enabled/resources/console-clear-arguments-test.js:
(dumpConsoleMessageArgumentCounts):
* http/tests/inspector/elements-test.js:
* networkinformation/resources/event-after-navigation-new.html:
* networkinformation/script-tests/add-listener-from-callback.js:
(firstListener):
* networkinformation/script-tests/basic-all-types-of-events.js:
* networkinformation/script-tests/basic-operation.js:
* networkinformation/script-tests/multiple-frames.js:
* networkinformation/script-tests/updates.js:
(setNetworkInformation):
* platform/efl-wk2/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt:
* platform/mac-wk2/tiled-drawing/clamp-out-of-bounds-scrolls.html:
* platform/mac-wk2/tiled-drawing/fixed/absolute-inside-fixed.html:
* platform/mac-wk2/tiled-drawing/fixed/absolute-inside-out-of-view-fixed.html:
* platform/mac-wk2/tiled-drawing/fixed/fixed-in-overflow.html:
* platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view-negative-zindex.html:
* platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view.html:
* platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer.html:
* platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed.html:
* platform/mac-wk2/tiled-drawing/fixed/four-bars.html:
* platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-in-view.html:
* platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset.html:
* platform/mac-wk2/tiled-drawing/fixed/nested-fixed.html:
* platform/mac-wk2/tiled-drawing/fixed/percentage-inside-fixed.html:
* platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame.html:
* platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-with-page-scale.html:
* platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing.html:
* platform/mac-wk2/tiled-drawing/scrolling-tree-after-scroll.html:
* platform/mac-wk2/tiled-drawing/scrolling-tree-slow-scrolling.html:
* platform/mac-wk2/tiled-drawing/slow-scrolling-background-toggle.html:
* platform/mac-wk2/tiled-drawing/slow-scrolling-hidden-background-toggle.html:
* platform/mac-wk2/tiled-drawing/slow-scrolling.html:
* platform/mac-wk2/tiled-drawing/sticky/negative-scroll-offset.html:
* platform/mac-wk2/tiled-drawing/sticky/sticky-horizontal.html:
* platform/mac-wk2/tiled-drawing/sticky/sticky-vertical.html:
* platform/mac/editing/spelling/autocorrection-blockquote-crash-expected.txt:
* platform/mac/editing/spelling/autocorrection-blockquote-crash.html:
* platform/mac/editing/spelling/delete-into-misspelled-word.html:
* platform/mac/editing/spelling/editing-multiple-words-with-markers.html:
* platform/mac/editing/spelling/editing-word-with-marker-1.html:
* platform/mac/editing/spelling/editing-word-with-marker-2.html:
* platform/mac/editing/spelling/move-cursor-around-misspelled-word.html:
* platform/win/editing/spelling/spelling-backspace-between-lines-expected.txt:
* printing/page-format-data-expected.txt:
* printing/page-format-data.html:
* proximity/add-listener-from-callback.html:
* proximity/basic-operation.html:
* proximity/multiple-frames.html:
* proximity/resources/event-after-navigation-new.html:
* proximity/updates.html:
* scrollingcoordinator/resources/non-fast-scrollable-region-testing.js:
(runNonFastScrollableRegionTest):
* touchadjustment/big-div.html:
* touchadjustment/event-triggered-widgets.html:
* touchadjustment/iframe.html:
* touchadjustment/nested-shadow-node.html:
* touchadjustment/resources/touchadjustment.js:
(testTouchPoint):
(testTouchPointContextMenu):
(adjustTouchPoint):
(adjustTouchPointContextMenu):
* touchadjustment/scroll-delegation/iframe-with-mainframe-scroll-offset.html:
* touchadjustment/scroll-offset.html:
* touchadjustment/search-cancel.html:
* touchadjustment/zoom-basic.html:
* touchadjustment/zoom-fatfinger.html:
* transitions/created-while-suspended.html:
* transitions/started-while-suspended.html:
* transitions/suspend-transform-transition.html:
* userscripts/insert-stylesheets.html:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158113 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index c41bc5f..ad2358c 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,366 @@
+2013-10-28 Afonso R. Costa Jr. <afonso.costa@samsung.com>
+
+ Methods on window.internals shouldn't pass a document.
+ https://bugs.webkit.org/show_bug.cgi?id=107301
+
+ Reviewed by Alexey Proskuryakov.
+
+ Each 'Internals' instance is associated with a 'Document'. So, it
+ is not necessary to pass a document as argument. Only nodesFromRect and
+ layerTreeAsText methods were kept because, in some Layout Tests, the
+ 'Document' object is not the same used by Internals::contextDocument.
+
+ * animations/added-while-suspended.html: Removed 'document' parameter.
+ * animations/play-state-suspend.html:
+ * animations/stop-animation-on-suspend.html:
+ * animations/suspend-resume-animation-events.html:
+ * animations/suspend-resume-animation.html:
+ * animations/suspend-transform-animation.html:
+ * batterystatus/resources/event-after-navigation-new.html:
+ * batterystatus/script-tests/add-listener-from-callback.js:
+ (firstListener):
+ * batterystatus/script-tests/basic-all-types-of-events.js:
+ * batterystatus/script-tests/basic-operation.js:
+ * batterystatus/script-tests/multiple-frames.js:
+ * batterystatus/script-tests/updates.js:
+ (setBatteryStatus):
+ * compositing/columns/ancestor-clipped-in-paginated.html:
+ * compositing/columns/clipped-in-paginated.html:
+ * compositing/columns/composited-columns-vertical-rl.html:
+ * compositing/columns/composited-in-paginated-rl.html:
+ * compositing/columns/composited-in-paginated-writing-mode-rl.html:
+ * compositing/columns/composited-in-paginated.html:
+ * compositing/columns/composited-lr-paginated-repaint.html:
+ * compositing/columns/composited-rl-paginated-repaint.html:
+ * compositing/columns/geometry-map-paginated-assert.html:
+ * compositing/columns/hittest-composited-in-paginated.html:
+ * compositing/columns/rotated-in-paginated.html:
+ * compositing/columns/untransformed-composited-in-paginated.html:
+ * compositing/iframes/iframe-composited-scrolling.html:
+ * compositing/layer-creation/fixed-position-in-view-dynamic.html:
+ * compositing/layer-creation/fixed-position-no-content-scroll-reason.html:
+ * compositing/layer-creation/fixed-position-out-of-view-dynamic.html:
+ * compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html:
+ * compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html:
+ * compositing/overflow/dynamic-composited-scrolling-status.html:
+ * compositing/overflow/scrolling-without-painting.html:
+ * compositing/overflow/updating-scrolling-content.html:
+ * compositing/repaint/absolute-painted-into-composited-ancestor.html:
+ * compositing/repaint/fixed-background-scroll.html:
+ * compositing/repaint/invalidations-on-composited-layers.html:
+ * compositing/repaint/positioned-movement.html:
+ * compositing/repaint/repaint-on-layer-grouping-change.html:
+ * compositing/repaint/resize-repaint.html:
+ * compositing/repaint/scroll-fixed-layer-no-content.html:
+ * compositing/repaint/scroll-fixed-layer-out-of-view.html:
+ * editing/caret/selection-with-caret-type-progress.html:
+ * editing/execCommand/overtype.html:
+ * editing/selection/block-cursor-overtype-mode.html:
+ * editing/spelling/design-mode-spellcheck-off.html:
+ * editing/spelling/grammar-edit-word-expected.txt:
+ * editing/spelling/grammar-edit-word.html:
+ * editing/spelling/grammar-markers-hidpi.html:
+ * editing/spelling/grammar-markers.html:
+ * editing/spelling/grammar.html:
+ * editing/spelling/script-tests/spellcheck-paste.js:
+ (verifyMarker):
+ * editing/spelling/script-tests/spelling-attribute-at-child.js:
+ (childHasSpellingMarker):
+ * editing/spelling/script-tests/spelling-attribute-change.js:
+ (testSpellCheckingEnabled):
+ * editing/spelling/script-tests/spelling-backspace-between-lines.js:
+ (testWithDelete):
+ (testWithForwardDelete):
+ * editing/spelling/script-tests/spelling-hasspellingmarker.js:
+ (hasMarked):
+ * editing/spelling/spellcheck-async-mutation.html:
+ * editing/spelling/spellcheck-attribute-expected.txt:
+ * editing/spelling/spellcheck-attribute.html:
+ * editing/spelling/spellcheck-paste-continuous-disabled-expected.txt:
+ * editing/spelling/spellcheck-paste-continuous-disabled.html:
+ * editing/spelling/spellcheck-paste-disabled-expected.txt:
+ * editing/spelling/spellcheck-paste-disabled.html:
+ * editing/spelling/spellcheck-sequencenum.html:
+ * editing/spelling/spelling-attribute-change-expected.txt:
+ * editing/spelling/spelling-backspace-between-lines-expected.txt:
+ * editing/spelling/spelling-linebreak.html:
+ * fast/box-shadow/shadow-repaint.html:
+ * fast/css/webkit-mask-crash-fieldset-legend.html:
+ * fast/css/webkit-mask-crash-figure.html:
+ * fast/css/webkit-mask-crash-table.html:
+ * fast/css/webkit-mask-crash-td-2.html:
+ * fast/css/webkit-mask-crash-td.html:
+ * fast/dom/icon-url-change.html:
+ * fast/dom/icon-url-list-apple-touch.html:
+ * fast/dom/icon-url-list.html:
+ * fast/dom/icon-url-property.html:
+ * fast/events/mouse-cursor-change.html:
+ * fast/events/mouse-cursor-image-set.html:
+ * fast/events/mouse-cursor-multiframecur.html:
+ * fast/events/mouse-cursor-no-mousemove.html:
+ * fast/events/mouse-cursor.html:
+ * fast/events/touch/touch-handler-count-expected.txt:
+ * fast/events/touch/touch-handler-count.html:
+ * fast/events/touch/touch-input-element-change-documents-expected.txt:
+ * fast/events/touch/touch-input-element-change-documents.html:
+ * fast/multicol/hit-test-gap-between-pages-flipped.html:
+ * fast/multicol/hit-test-gap-between-pages.html:
+ * fast/multicol/pagination-h-horizontal-bt.html:
+ * fast/multicol/pagination-h-horizontal-tb.html:
+ * fast/multicol/pagination-h-vertical-lr.html:
+ * fast/multicol/pagination-h-vertical-rl.html:
+ * fast/multicol/pagination-v-horizontal-bt.html:
+ * fast/multicol/pagination-v-horizontal-tb.html:
+ * fast/multicol/pagination-v-vertical-lr.html:
+ * fast/multicol/pagination-v-vertical-rl.html:
+ * fast/multicol/pagination/BottomToTop-bt.html:
+ * fast/multicol/pagination/BottomToTop-lr.html:
+ * fast/multicol/pagination/BottomToTop-rl.html:
+ * fast/multicol/pagination/BottomToTop-tb.html:
+ * fast/multicol/pagination/LeftToRight-bt.html:
+ * fast/multicol/pagination/LeftToRight-lr.html:
+ * fast/multicol/pagination/LeftToRight-rl.html:
+ * fast/multicol/pagination/LeftToRight-tb.html:
+ * fast/multicol/pagination/RightToLeft-bt.html:
+ * fast/multicol/pagination/RightToLeft-lr.html:
+ * fast/multicol/pagination/RightToLeft-rl.html:
+ * fast/multicol/pagination/RightToLeft-tb.html:
+ * fast/multicol/pagination/TopToBottom-bt.html:
+ * fast/multicol/pagination/TopToBottom-lr.html:
+ * fast/multicol/pagination/TopToBottom-rl.html:
+ * fast/multicol/pagination/TopToBottom-tb.html:
+ * fast/multicol/shrink-to-column-height-for-pagination.html:
+ * fast/repaint/background-shorthand-with-gradient-and-height-changes.html:
+ * fast/repaint/obscured-background-no-repaint.html:
+ * fast/repaint/resources/text-based-repaint.js:
+ (runRepaintTest):
+ * fast/scrolling/resources/scrollable-area.js:
+ (end):
+ * fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts.html:
+ * fast/viewport/viewport-1.html:
+ * fast/viewport/viewport-10.html:
+ * fast/viewport/viewport-100.html:
+ * fast/viewport/viewport-101.html:
+ * fast/viewport/viewport-102.html:
+ * fast/viewport/viewport-103.html:
+ * fast/viewport/viewport-104.html:
+ * fast/viewport/viewport-105.html:
+ * fast/viewport/viewport-106.html:
+ * fast/viewport/viewport-107.html:
+ * fast/viewport/viewport-108.html:
+ * fast/viewport/viewport-109.html:
+ * fast/viewport/viewport-11.html:
+ * fast/viewport/viewport-110.html:
+ * fast/viewport/viewport-111.html:
+ * fast/viewport/viewport-112.html:
+ * fast/viewport/viewport-113.html:
+ * fast/viewport/viewport-114.html:
+ * fast/viewport/viewport-115.html:
+ * fast/viewport/viewport-116.html:
+ * fast/viewport/viewport-117.html:
+ * fast/viewport/viewport-118.html:
+ * fast/viewport/viewport-119.html:
+ * fast/viewport/viewport-12.html:
+ * fast/viewport/viewport-120.html:
+ * fast/viewport/viewport-121.html:
+ * fast/viewport/viewport-122.html:
+ * fast/viewport/viewport-123.html:
+ * fast/viewport/viewport-124.html:
+ * fast/viewport/viewport-125.html:
+ * fast/viewport/viewport-126.html:
+ * fast/viewport/viewport-127.html:
+ * fast/viewport/viewport-128.html:
+ * fast/viewport/viewport-129.html:
+ * fast/viewport/viewport-13.html:
+ * fast/viewport/viewport-130.html:
+ * fast/viewport/viewport-131.html:
+ * fast/viewport/viewport-132.html:
+ * fast/viewport/viewport-133.html:
+ * fast/viewport/viewport-134.html:
+ * fast/viewport/viewport-14.html:
+ * fast/viewport/viewport-15.html:
+ * fast/viewport/viewport-16.html:
+ * fast/viewport/viewport-17.html:
+ * fast/viewport/viewport-18.html:
+ * fast/viewport/viewport-19.html:
+ * fast/viewport/viewport-2.html:
+ * fast/viewport/viewport-20.html:
+ * fast/viewport/viewport-21.html:
+ * fast/viewport/viewport-22.html:
+ * fast/viewport/viewport-23.html:
+ * fast/viewport/viewport-24.html:
+ * fast/viewport/viewport-25.html:
+ * fast/viewport/viewport-26.html:
+ * fast/viewport/viewport-27.html:
+ * fast/viewport/viewport-28.html:
+ * fast/viewport/viewport-29.html:
+ * fast/viewport/viewport-3.html:
+ * fast/viewport/viewport-30.html:
+ * fast/viewport/viewport-31.html:
+ * fast/viewport/viewport-32.html:
+ * fast/viewport/viewport-33.html:
+ * fast/viewport/viewport-34.html:
+ * fast/viewport/viewport-35.html:
+ * fast/viewport/viewport-36.html:
+ * fast/viewport/viewport-37.html:
+ * fast/viewport/viewport-38.html:
+ * fast/viewport/viewport-39.html:
+ * fast/viewport/viewport-4.html:
+ * fast/viewport/viewport-40.html:
+ * fast/viewport/viewport-41.html:
+ * fast/viewport/viewport-42.html:
+ * fast/viewport/viewport-43.html:
+ * fast/viewport/viewport-44.html:
+ * fast/viewport/viewport-45.html:
+ * fast/viewport/viewport-46.html:
+ * fast/viewport/viewport-47.html:
+ * fast/viewport/viewport-48.html:
+ * fast/viewport/viewport-49.html:
+ * fast/viewport/viewport-5.html:
+ * fast/viewport/viewport-50.html:
+ * fast/viewport/viewport-51.html:
+ * fast/viewport/viewport-52.html:
+ * fast/viewport/viewport-53.html:
+ * fast/viewport/viewport-54.html:
+ * fast/viewport/viewport-55.html:
+ * fast/viewport/viewport-56.html:
+ * fast/viewport/viewport-57.html:
+ * fast/viewport/viewport-58.html:
+ * fast/viewport/viewport-59.html:
+ * fast/viewport/viewport-6.html:
+ * fast/viewport/viewport-60.html:
+ * fast/viewport/viewport-61.html:
+ * fast/viewport/viewport-62.html:
+ * fast/viewport/viewport-63.html:
+ * fast/viewport/viewport-64.html:
+ * fast/viewport/viewport-65.html:
+ * fast/viewport/viewport-66.html:
+ * fast/viewport/viewport-67.html:
+ * fast/viewport/viewport-68.html:
+ * fast/viewport/viewport-69.html:
+ * fast/viewport/viewport-7.html:
+ * fast/viewport/viewport-70.html:
+ * fast/viewport/viewport-71.html:
+ * fast/viewport/viewport-72.html:
+ * fast/viewport/viewport-73.html:
+ * fast/viewport/viewport-74.html:
+ * fast/viewport/viewport-75.html:
+ * fast/viewport/viewport-76.html:
+ * fast/viewport/viewport-77.html:
+ * fast/viewport/viewport-78.html:
+ * fast/viewport/viewport-79.html:
+ * fast/viewport/viewport-8.html:
+ * fast/viewport/viewport-80.html:
+ * fast/viewport/viewport-81.html:
+ * fast/viewport/viewport-82.html:
+ * fast/viewport/viewport-83.html:
+ * fast/viewport/viewport-84.html:
+ * fast/viewport/viewport-85.html:
+ * fast/viewport/viewport-86.html:
+ * fast/viewport/viewport-87.html:
+ * fast/viewport/viewport-88.html:
+ * fast/viewport/viewport-9.html:
+ * fast/viewport/viewport-90.html:
+ * fast/viewport/viewport-91.html:
+ * fast/viewport/viewport-legacy-handheldfriendly.html:
+ * fast/viewport/viewport-legacy-mobileoptimized-2.html:
+ * fast/viewport/viewport-legacy-mobileoptimized-3.html:
+ * fast/viewport/viewport-legacy-mobileoptimized.html:
+ * fast/viewport/viewport-legacy-ordering-1.html:
+ * fast/viewport/viewport-legacy-ordering-2.html:
+ * fast/viewport/viewport-legacy-ordering-3.html:
+ * fast/viewport/viewport-legacy-ordering-4.html:
+ * fast/viewport/viewport-legacy-ordering-5.html:
+ * fast/viewport/viewport-legacy-ordering-6.html:
+ * fast/viewport/viewport-legacy-ordering-7.html:
+ * fast/viewport/viewport-legacy-ordering-8.html:
+ * fast/viewport/viewport-legacy-ordering-9.html:
+ * fast/viewport/viewport-legacy-xhtmlmp-misplaced-doctype.html:
+ * fast/viewport/viewport-legacy-xhtmlmp-ordering.html:
+ * fast/viewport/viewport-legacy-xhtmlmp-remove-and-add.html:
+ * fast/viewport/viewport-legacy-xhtmlmp.html:
+ * fast/viewport/viewport-limits-adjusted-for-no-user-scale-control.html:
+ * fast/viewport/viewport-limits-adjusted-for-no-user-scale.html:
+ * fast/viewport/viewport-warnings-1.html:
+ * fast/viewport/viewport-warnings-2.html:
+ * fast/viewport/viewport-warnings-3.html:
+ * fast/viewport/viewport-warnings-4.html:
+ * fast/viewport/viewport-warnings-5.html:
+ * fast/viewport/viewport-warnings-6.html:
+ * fullscreen/video-cursor-auto-hide-expected.txt:
+ * fullscreen/video-cursor-auto-hide.html:
+ * http/tests/inspector-enabled/resources/console-clear-arguments-test.js:
+ (dumpConsoleMessageArgumentCounts):
+ * http/tests/inspector/elements-test.js:
+ * networkinformation/resources/event-after-navigation-new.html:
+ * networkinformation/script-tests/add-listener-from-callback.js:
+ (firstListener):
+ * networkinformation/script-tests/basic-all-types-of-events.js:
+ * networkinformation/script-tests/basic-operation.js:
+ * networkinformation/script-tests/multiple-frames.js:
+ * networkinformation/script-tests/updates.js:
+ (setNetworkInformation):
+ * platform/efl-wk2/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt:
+ * platform/mac-wk2/tiled-drawing/clamp-out-of-bounds-scrolls.html:
+ * platform/mac-wk2/tiled-drawing/fixed/absolute-inside-fixed.html:
+ * platform/mac-wk2/tiled-drawing/fixed/absolute-inside-out-of-view-fixed.html:
+ * platform/mac-wk2/tiled-drawing/fixed/fixed-in-overflow.html:
+ * platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view-negative-zindex.html:
+ * platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view.html:
+ * platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer.html:
+ * platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed.html:
+ * platform/mac-wk2/tiled-drawing/fixed/four-bars.html:
+ * platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-in-view.html:
+ * platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset.html:
+ * platform/mac-wk2/tiled-drawing/fixed/nested-fixed.html:
+ * platform/mac-wk2/tiled-drawing/fixed/percentage-inside-fixed.html:
+ * platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame.html:
+ * platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-with-page-scale.html:
+ * platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing.html:
+ * platform/mac-wk2/tiled-drawing/scrolling-tree-after-scroll.html:
+ * platform/mac-wk2/tiled-drawing/scrolling-tree-slow-scrolling.html:
+ * platform/mac-wk2/tiled-drawing/slow-scrolling-background-toggle.html:
+ * platform/mac-wk2/tiled-drawing/slow-scrolling-hidden-background-toggle.html:
+ * platform/mac-wk2/tiled-drawing/slow-scrolling.html:
+ * platform/mac-wk2/tiled-drawing/sticky/negative-scroll-offset.html:
+ * platform/mac-wk2/tiled-drawing/sticky/sticky-horizontal.html:
+ * platform/mac-wk2/tiled-drawing/sticky/sticky-vertical.html:
+ * platform/mac/editing/spelling/autocorrection-blockquote-crash-expected.txt:
+ * platform/mac/editing/spelling/autocorrection-blockquote-crash.html:
+ * platform/mac/editing/spelling/delete-into-misspelled-word.html:
+ * platform/mac/editing/spelling/editing-multiple-words-with-markers.html:
+ * platform/mac/editing/spelling/editing-word-with-marker-1.html:
+ * platform/mac/editing/spelling/editing-word-with-marker-2.html:
+ * platform/mac/editing/spelling/move-cursor-around-misspelled-word.html:
+ * platform/win/editing/spelling/spelling-backspace-between-lines-expected.txt:
+ * printing/page-format-data-expected.txt:
+ * printing/page-format-data.html:
+ * proximity/add-listener-from-callback.html:
+ * proximity/basic-operation.html:
+ * proximity/multiple-frames.html:
+ * proximity/resources/event-after-navigation-new.html:
+ * proximity/updates.html:
+ * scrollingcoordinator/resources/non-fast-scrollable-region-testing.js:
+ (runNonFastScrollableRegionTest):
+ * touchadjustment/big-div.html:
+ * touchadjustment/event-triggered-widgets.html:
+ * touchadjustment/iframe.html:
+ * touchadjustment/nested-shadow-node.html:
+ * touchadjustment/resources/touchadjustment.js:
+ (testTouchPoint):
+ (testTouchPointContextMenu):
+ (adjustTouchPoint):
+ (adjustTouchPointContextMenu):
+ * touchadjustment/scroll-delegation/iframe-with-mainframe-scroll-offset.html:
+ * touchadjustment/scroll-offset.html:
+ * touchadjustment/search-cancel.html:
+ * touchadjustment/zoom-basic.html:
+ * touchadjustment/zoom-fatfinger.html:
+ * transitions/created-while-suspended.html:
+ * transitions/started-while-suspended.html:
+ * transitions/suspend-transform-transition.html:
+ * userscripts/insert-stylesheets.html:
+
2013-10-28 Xabier Rodriguez Calvar <calvaris@igalia.com>
Remove HTMLMediaElement.startTime
diff --git a/LayoutTests/animations/added-while-suspended.html b/LayoutTests/animations/added-while-suspended.html
index de1c189..3e71f51 100644
--- a/LayoutTests/animations/added-while-suspended.html
+++ b/LayoutTests/animations/added-while-suspended.html
@@ -31,13 +31,13 @@
function suspend()
{
if (window.internals)
- internals.suspendAnimations(document);
+ internals.suspendAnimations();
}
function resume()
{
if (window.internals)
- internals.resumeAnimations(document);
+ internals.resumeAnimations();
}
function animationStarted(event)
@@ -63,7 +63,7 @@
function addFirstBox()
{
if (window.internals)
- log("Animations should be suspended: " + (window.internals.animationsAreSuspended(document) ? "PASS" : "FAIL"));
+ log("Animations should be suspended: " + (window.internals.animationsAreSuspended() ? "PASS" : "FAIL"));
log("*** Adding first box with animation");
addDivWithId("box");
@@ -86,7 +86,7 @@
function endTest()
{
if (window.internals)
- log("Animations should not be suspended: " + (window.internals.animationsAreSuspended(document) ? "FAIL" : "PASS"));
+ log("Animations should not be suspended: " + (window.internals.animationsAreSuspended() ? "FAIL" : "PASS"));
log("*** Animations finished");
resume(); // Just in case.
if (window.testRunner)
@@ -99,7 +99,7 @@
document.addEventListener("webkitAnimationEnd", animationEnded, false);
if (window.internals)
- log("Animations should not be suspended: " + (window.internals.animationsAreSuspended(document) ? "FAIL" : "PASS"));
+ log("Animations should not be suspended: " + (window.internals.animationsAreSuspended() ? "FAIL" : "PASS"));
setTimeout(function() {
log("*** Suspending Animations");
diff --git a/LayoutTests/animations/play-state-suspend.html b/LayoutTests/animations/play-state-suspend.html
index e25f91f..70dbf32 100644
--- a/LayoutTests/animations/play-state-suspend.html
+++ b/LayoutTests/animations/play-state-suspend.html
@@ -57,7 +57,7 @@
function suspend()
{
if (window.internals)
- internals.suspendAnimations(document);
+ internals.suspendAnimations();
}
function unpause()
@@ -69,7 +69,7 @@
function resume()
{
if (window.internals)
- internals.resumeAnimations(document);
+ internals.resumeAnimations();
}
function setTimers()
diff --git a/LayoutTests/animations/stop-animation-on-suspend.html b/LayoutTests/animations/stop-animation-on-suspend.html
index 478cdb4..f787384 100644
--- a/LayoutTests/animations/stop-animation-on-suspend.html
+++ b/LayoutTests/animations/stop-animation-on-suspend.html
@@ -41,13 +41,13 @@
function suspend()
{
if (window.internals)
- internals.suspendAnimations(document);
+ internals.suspendAnimations();
}
function resume()
{
if (window.internals)
- internals.resumeAnimations(document);
+ internals.resumeAnimations();
}
function setTimers()
diff --git a/LayoutTests/animations/suspend-resume-animation-events.html b/LayoutTests/animations/suspend-resume-animation-events.html
index 9fe864b..6ce62e9 100644
--- a/LayoutTests/animations/suspend-resume-animation-events.html
+++ b/LayoutTests/animations/suspend-resume-animation-events.html
@@ -31,13 +31,13 @@
function suspend()
{
if (window.internals)
- internals.suspendAnimations(document);
+ internals.suspendAnimations();
}
function resume()
{
if (window.internals)
- internals.resumeAnimations(document);
+ internals.resumeAnimations();
}
function startTest()
diff --git a/LayoutTests/animations/suspend-resume-animation.html b/LayoutTests/animations/suspend-resume-animation.html
index 56ca960..cc29b40 100644
--- a/LayoutTests/animations/suspend-resume-animation.html
+++ b/LayoutTests/animations/suspend-resume-animation.html
@@ -30,13 +30,13 @@
function suspend()
{
if (window.internals)
- internals.suspendAnimations(document);
+ internals.suspendAnimations();
}
function resume()
{
if (window.internals)
- internals.resumeAnimations(document);
+ internals.resumeAnimations();
}
function setTimers()
diff --git a/LayoutTests/animations/suspend-transform-animation.html b/LayoutTests/animations/suspend-transform-animation.html
index 46c6f71..f84144b 100644
--- a/LayoutTests/animations/suspend-transform-animation.html
+++ b/LayoutTests/animations/suspend-transform-animation.html
@@ -39,11 +39,11 @@
function suspendAndWaitForCompletion()
{
if (window.internals)
- internals.suspendAnimations(document);
+ internals.suspendAnimations();
window.setTimeout(function() {
if (window.testRunner) {
- internals.resumeAnimations(document);
+ internals.resumeAnimations();
testRunner.notifyDone();
}
}, 250);
diff --git a/LayoutTests/batterystatus/resources/event-after-navigation-new.html b/LayoutTests/batterystatus/resources/event-after-navigation-new.html
index 1ef2197..09c5f09 100644
--- a/LayoutTests/batterystatus/resources/event-after-navigation-new.html
+++ b/LayoutTests/batterystatus/resources/event-after-navigation-new.html
@@ -6,7 +6,7 @@
away when the original page is in the page cache.<br><br>
SUCCESS
<script>
- internals.setBatteryStatus(document, 'chargingchange', true, 3000, Number.POSITIVE_INFINITY, 0.5);
+ internals.setBatteryStatus('chargingchange', true, 3000, Number.POSITIVE_INFINITY, 0.5);
testRunner.notifyDone();
</script>
</body>
diff --git a/LayoutTests/batterystatus/script-tests/add-listener-from-callback.js b/LayoutTests/batterystatus/script-tests/add-listener-from-callback.js
index 2bd5cda..ffb1656 100644
--- a/LayoutTests/batterystatus/script-tests/add-listener-from-callback.js
+++ b/LayoutTests/batterystatus/script-tests/add-listener-from-callback.js
@@ -19,7 +19,7 @@
checkBatteryStatus();
if (++firstListenerEvents == 1) {
battery.addEventListener('chargingchange', secondListener);
- internals.setBatteryStatus(document, 'chargingchange', charging, chargingTime, dischargingTime, level);
+ internals.setBatteryStatus('chargingchange', charging, chargingTime, dischargingTime, level);
}
else if (firstListenerEvents > 2)
testFailed('Too many events for first listener.');
@@ -40,5 +40,5 @@
}
battery.addEventListener('chargingchange', firstListener);
-internals.setBatteryStatus(document, 'chargingchange', charging, chargingTime, dischargingTime, level);
+internals.setBatteryStatus('chargingchange', charging, chargingTime, dischargingTime, level);
window.jsTestIsAsync = true;
diff --git a/LayoutTests/batterystatus/script-tests/basic-all-types-of-events.js b/LayoutTests/batterystatus/script-tests/basic-all-types-of-events.js
index bef0d42..6e099d7 100644
--- a/LayoutTests/batterystatus/script-tests/basic-all-types-of-events.js
+++ b/LayoutTests/batterystatus/script-tests/basic-all-types-of-events.js
@@ -35,8 +35,8 @@
finishJSTest();
});
-internals.setBatteryStatus(document, 'chargingchange', charging, chargingTime, dischargingTime, level);
-internals.setBatteryStatus(document, 'chargingtimechange', charging, chargingTime, dischargingTime, level);
-internals.setBatteryStatus(document, 'dischargingtimechange', charging, chargingTime, dischargingTime, level);
-internals.setBatteryStatus(document, 'levelchange', charging, chargingTime, dischargingTime, level);
+internals.setBatteryStatus('chargingchange', charging, chargingTime, dischargingTime, level);
+internals.setBatteryStatus('chargingtimechange', charging, chargingTime, dischargingTime, level);
+internals.setBatteryStatus('dischargingtimechange', charging, chargingTime, dischargingTime, level);
+internals.setBatteryStatus('levelchange', charging, chargingTime, dischargingTime, level);
window.jsTestIsAsync = true;
diff --git a/LayoutTests/batterystatus/script-tests/basic-operation.js b/LayoutTests/batterystatus/script-tests/basic-operation.js
index 615f854..93bf1aa 100644
--- a/LayoutTests/batterystatus/script-tests/basic-operation.js
+++ b/LayoutTests/batterystatus/script-tests/basic-operation.js
@@ -15,5 +15,5 @@
finishJSTest();
});
-internals.setBatteryStatus(document, 'chargingchange', charging, chargingTime, dischargingTime, level);
+internals.setBatteryStatus('chargingchange', charging, chargingTime, dischargingTime, level);
window.jsTestIsAsync = true;
diff --git a/LayoutTests/batterystatus/script-tests/multiple-frames.js b/LayoutTests/batterystatus/script-tests/multiple-frames.js
index 10d6233..b287308 100644
--- a/LayoutTests/batterystatus/script-tests/multiple-frames.js
+++ b/LayoutTests/batterystatus/script-tests/multiple-frames.js
@@ -47,5 +47,5 @@
childBattery.addEventListener('chargingchange', childFrameListener);
battery.addEventListener('chargingchange', mainFrameListener);
-internals.setBatteryStatus(document, 'chargingchange', charging, chargingTime, dischargingTime, level);
+internals.setBatteryStatus('chargingchange', charging, chargingTime, dischargingTime, level);
window.jsTestIsAsync = true;
diff --git a/LayoutTests/batterystatus/script-tests/updates.js b/LayoutTests/batterystatus/script-tests/updates.js
index fe840ff..72b23fa 100644
--- a/LayoutTests/batterystatus/script-tests/updates.js
+++ b/LayoutTests/batterystatus/script-tests/updates.js
@@ -15,7 +15,7 @@
}
function setBatteryStatus() {
- internals.setBatteryStatus(document, 'chargingchange', charging, chargingTime, dischargingTime, level);
+ internals.setBatteryStatus('chargingchange', charging, chargingTime, dischargingTime, level);
}
function firstListener() {
diff --git a/LayoutTests/compositing/columns/ancestor-clipped-in-paginated.html b/LayoutTests/compositing/columns/ancestor-clipped-in-paginated.html
index 1863713..8b1a0ffe 100644
--- a/LayoutTests/compositing/columns/ancestor-clipped-in-paginated.html
+++ b/LayoutTests/compositing/columns/ancestor-clipped-in-paginated.html
@@ -5,8 +5,8 @@
testRunner.dumpAsText();
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
-
+ internals.setPagination("LeftToRightPaginated", 0);
+
function dumpLayers()
{
if (window.testRunner)
diff --git a/LayoutTests/compositing/columns/clipped-in-paginated.html b/LayoutTests/compositing/columns/clipped-in-paginated.html
index ca83ac9..f7d31ab 100644
--- a/LayoutTests/compositing/columns/clipped-in-paginated.html
+++ b/LayoutTests/compositing/columns/clipped-in-paginated.html
@@ -5,8 +5,8 @@
testRunner.dumpAsText();
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
-
+ internals.setPagination("LeftToRightPaginated", 0);
+
function dumpLayers()
{
if (window.testRunner)
diff --git a/LayoutTests/compositing/columns/composited-columns-vertical-rl.html b/LayoutTests/compositing/columns/composited-columns-vertical-rl.html
index b03e321..2bd000d 100644
--- a/LayoutTests/compositing/columns/composited-columns-vertical-rl.html
+++ b/LayoutTests/compositing/columns/composited-columns-vertical-rl.html
@@ -28,8 +28,8 @@
testRunner.dumpAsText();
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
-
+ internals.setPagination("LeftToRightPaginated", 0);
+
function dumpLayers()
{
if (window.testRunner)
diff --git a/LayoutTests/compositing/columns/composited-in-paginated-rl.html b/LayoutTests/compositing/columns/composited-in-paginated-rl.html
index a9b5747..92eec5f 100644
--- a/LayoutTests/compositing/columns/composited-in-paginated-rl.html
+++ b/LayoutTests/compositing/columns/composited-in-paginated-rl.html
@@ -5,8 +5,8 @@
testRunner.dumpAsText();
if (window.internals)
- internals.setPagination(document, "RightToLeftPaginated", 0);
-
+ internals.setPagination("RightToLeftPaginated", 0);
+
function dumpLayers()
{
if (window.testRunner)
diff --git a/LayoutTests/compositing/columns/composited-in-paginated-writing-mode-rl.html b/LayoutTests/compositing/columns/composited-in-paginated-writing-mode-rl.html
index f5e3150..0d1da8d 100644
--- a/LayoutTests/compositing/columns/composited-in-paginated-writing-mode-rl.html
+++ b/LayoutTests/compositing/columns/composited-in-paginated-writing-mode-rl.html
@@ -5,8 +5,8 @@
testRunner.dumpAsText();
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
-
+ internals.setPagination("LeftToRightPaginated", 0);
+
function dumpLayers()
{
if (window.testRunner)
diff --git a/LayoutTests/compositing/columns/composited-in-paginated.html b/LayoutTests/compositing/columns/composited-in-paginated.html
index 85ab720..202f9fd 100644
--- a/LayoutTests/compositing/columns/composited-in-paginated.html
+++ b/LayoutTests/compositing/columns/composited-in-paginated.html
@@ -5,8 +5,8 @@
testRunner.dumpAsText();
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
-
+ internals.setPagination("LeftToRightPaginated", 0);
+
function dumpLayers()
{
if (window.testRunner)
diff --git a/LayoutTests/compositing/columns/composited-lr-paginated-repaint.html b/LayoutTests/compositing/columns/composited-lr-paginated-repaint.html
index db37052..ee928d6 100644
--- a/LayoutTests/compositing/columns/composited-lr-paginated-repaint.html
+++ b/LayoutTests/compositing/columns/composited-lr-paginated-repaint.html
@@ -38,13 +38,13 @@
}
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
-
+ internals.setPagination("LeftToRightPaginated", 0);
+
function dumpLayers()
{
window.setTimeout(function() {
if (window.internals)
- internals.startTrackingRepaints(document);
+ internals.startTrackingRepaints();
document.getElementById('inner').classList.add('changed');
if (window.testRunner) {
document.getElementById('layers').innerText = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
diff --git a/LayoutTests/compositing/columns/composited-rl-paginated-repaint.html b/LayoutTests/compositing/columns/composited-rl-paginated-repaint.html
index afbc0563..b735cfd 100644
--- a/LayoutTests/compositing/columns/composited-rl-paginated-repaint.html
+++ b/LayoutTests/compositing/columns/composited-rl-paginated-repaint.html
@@ -38,13 +38,13 @@
}
if (window.internals)
- internals.setPagination(document, "RightToLeftPaginated", 0);
-
+ internals.setPagination("RightToLeftPaginated", 0);
+
function dumpLayers()
{
window.setTimeout(function() {
if (window.internals)
- internals.startTrackingRepaints(document);
+ internals.startTrackingRepaints();
document.getElementById('inner').classList.add('changed');
if (window.testRunner) {
diff --git a/LayoutTests/compositing/columns/geometry-map-paginated-assert.html b/LayoutTests/compositing/columns/geometry-map-paginated-assert.html
index 30ac50c..39983d6 100644
--- a/LayoutTests/compositing/columns/geometry-map-paginated-assert.html
+++ b/LayoutTests/compositing/columns/geometry-map-paginated-assert.html
@@ -5,7 +5,7 @@
testRunner.dumpAsText();
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
+ internals.setPagination("LeftToRightPaginated", 0);
</script>
<style>
.spacer {
diff --git a/LayoutTests/compositing/columns/hittest-composited-in-paginated.html b/LayoutTests/compositing/columns/hittest-composited-in-paginated.html
index a8c9cb2..5baa587 100644
--- a/LayoutTests/compositing/columns/hittest-composited-in-paginated.html
+++ b/LayoutTests/compositing/columns/hittest-composited-in-paginated.html
@@ -5,15 +5,15 @@
testRunner.dumpAsText();
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 10, 400);
-
+ internals.setPagination("LeftToRightPaginated", 10, 400);
+
function dumpLayers()
{
var result = "Element at 500, 200: " + document.elementFromPoint(500, 200).classList + "\n";
if (window.testRunner)
result += window.internals.layerTreeAsText(document);
-
+
document.getElementById('layers').innerText = result;
}
diff --git a/LayoutTests/compositing/columns/rotated-in-paginated.html b/LayoutTests/compositing/columns/rotated-in-paginated.html
index 16b94f2..684962d 100644
--- a/LayoutTests/compositing/columns/rotated-in-paginated.html
+++ b/LayoutTests/compositing/columns/rotated-in-paginated.html
@@ -5,8 +5,8 @@
testRunner.dumpAsText();
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
-
+ internals.setPagination("LeftToRightPaginated", 0);
+
function dumpLayers()
{
if (window.testRunner)
diff --git a/LayoutTests/compositing/columns/untransformed-composited-in-paginated.html b/LayoutTests/compositing/columns/untransformed-composited-in-paginated.html
index d609db4..bd324d3 100644
--- a/LayoutTests/compositing/columns/untransformed-composited-in-paginated.html
+++ b/LayoutTests/compositing/columns/untransformed-composited-in-paginated.html
@@ -5,8 +5,8 @@
testRunner.dumpAsText();
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
-
+ internals.setPagination("LeftToRightPaginated", 0);
+
function dumpLayers()
{
if (window.testRunner)
diff --git a/LayoutTests/compositing/iframes/iframe-composited-scrolling.html b/LayoutTests/compositing/iframes/iframe-composited-scrolling.html
index a5c7d80..124d9e4 100644
--- a/LayoutTests/compositing/iframes/iframe-composited-scrolling.html
+++ b/LayoutTests/compositing/iframes/iframe-composited-scrolling.html
@@ -18,7 +18,7 @@
if (window.testRunner) {
testRunner.dumpAsText(false);
if (window.internals)
- document.getElementById("result").innerText = window.internals.nonFastScrollableRects(document).length ? "FAIL" : "PASS";
+ document.getElementById("result").innerText = window.internals.nonFastScrollableRects().length ? "FAIL" : "PASS";
}
}
window.addEventListener("load", doTest, false);
diff --git a/LayoutTests/compositing/layer-creation/fixed-position-in-view-dynamic.html b/LayoutTests/compositing/layer-creation/fixed-position-in-view-dynamic.html
index 9c4b68b..15b68e4 100644
--- a/LayoutTests/compositing/layer-creation/fixed-position-in-view-dynamic.html
+++ b/LayoutTests/compositing/layer-creation/fixed-position-in-view-dynamic.html
@@ -23,7 +23,7 @@
document.body.appendChild(fixed);
document.body.offsetHeight;
fixed.className = "fixed";
- var mainThreadScrollingReasons = internals.mainThreadScrollingReasons(document);
+ var mainThreadScrollingReasons = internals.mainThreadScrollingReasons();
document.getElementById("result").innerText = !mainThreadScrollingReasons ? "PASS" : "FAIL: " + mainThreadScrollingReasons;
}, false);
}
diff --git a/LayoutTests/compositing/layer-creation/fixed-position-no-content-scroll-reason.html b/LayoutTests/compositing/layer-creation/fixed-position-no-content-scroll-reason.html
index 67c0c00..4ff4ffa 100644
--- a/LayoutTests/compositing/layer-creation/fixed-position-no-content-scroll-reason.html
+++ b/LayoutTests/compositing/layer-creation/fixed-position-no-content-scroll-reason.html
@@ -21,7 +21,7 @@
testRunner.dumpAsText();
window.addEventListener("load", function() {
- document.getElementById("mainThreadScrollingReasons").innerText = window.internals.mainThreadScrollingReasons(document);
+ document.getElementById("mainThreadScrollingReasons").innerText = window.internals.mainThreadScrollingReasons();
}, false);
}
</script>
diff --git a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-dynamic.html b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-dynamic.html
index 73785c0..3fbb904 100644
--- a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-dynamic.html
+++ b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-dynamic.html
@@ -23,7 +23,7 @@
document.body.appendChild(fixed);
document.body.offsetHeight;
fixed.className = "fixed";
- var mainThreadScrollingReasons = internals.mainThreadScrollingReasons(document);
+ var mainThreadScrollingReasons = internals.mainThreadScrollingReasons();
document.getElementById("result").innerText = !mainThreadScrollingReasons ? "PASS" : "FAIL: " + mainThreadScrollingReasons;
testRunner.notifyDone();
}, false);
diff --git a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html
index 60cb1a5..ff878f2 100644
--- a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html
+++ b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scroll-reason.html
@@ -20,7 +20,7 @@
testRunner.dumpAsText();
window.addEventListener("load", function() {
- document.getElementById("mainThreadScrollingReasons").innerText = window.internals.mainThreadScrollingReasons(document);
+ document.getElementById("mainThreadScrollingReasons").innerText = window.internals.mainThreadScrollingReasons();
}, false);
}
</script>
diff --git a/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html b/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html
index 25c3072..3256cd3 100644
--- a/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html
+++ b/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html
@@ -25,7 +25,7 @@
window.addEventListener("load", function() {
document.getElementById("layerTree").innerText = window.internals.layerTreeAsText(document);
- document.getElementById("mainThreadScrollingReasons").innerText = window.internals.mainThreadScrollingReasons(document);
+ document.getElementById("mainThreadScrollingReasons").innerText = window.internals.mainThreadScrollingReasons();
}, false);
}
</script>
diff --git a/LayoutTests/compositing/overflow/dynamic-composited-scrolling-status.html b/LayoutTests/compositing/overflow/dynamic-composited-scrolling-status.html
index 40eea5f..4724160 100644
--- a/LayoutTests/compositing/overflow/dynamic-composited-scrolling-status.html
+++ b/LayoutTests/compositing/overflow/dynamic-composited-scrolling-status.html
@@ -27,7 +27,7 @@
document.body.offsetHeight;
document.getElementById('content').style.height = '1000px';
if (window.internals)
- document.getElementById('result').innerText = window.internals.nonFastScrollableRects(document).length ? "FAIL" : "PASS";
+ document.getElementById('result').innerText = window.internals.nonFastScrollableRects().length ? "FAIL" : "PASS";
}
window.addEventListener('load', doTest, false);
diff --git a/LayoutTests/compositing/overflow/scrolling-without-painting.html b/LayoutTests/compositing/overflow/scrolling-without-painting.html
index fbe855d..f8016fa 100644
--- a/LayoutTests/compositing/overflow/scrolling-without-painting.html
+++ b/LayoutTests/compositing/overflow/scrolling-without-painting.html
@@ -38,13 +38,13 @@
// Scroll down. This should not cause any more repaints to the
// scrolling contents.
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
scroller.scrollTop = 25;
var layerTree = document.getElementById('layerTree');
layerTree.innerText =
window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
- window.internals.stopTrackingRepaints(document);
+ window.internals.stopTrackingRepaints();
});
</script>
</head>
diff --git a/LayoutTests/compositing/overflow/updating-scrolling-content.html b/LayoutTests/compositing/overflow/updating-scrolling-content.html
index 1b9189f..e9e3bdb 100644
--- a/LayoutTests/compositing/overflow/updating-scrolling-content.html
+++ b/LayoutTests/compositing/overflow/updating-scrolling-content.html
@@ -45,7 +45,7 @@
// Scroll all the way to the bottom and change the color of the
// indicator (which is now outside the overflow clip).
scroller.scrollTop = 1000;
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
indicator.style.background = 'green';
// Scroll back up so that the updated (green) indicator is visible.
@@ -53,7 +53,7 @@
scroller.scrollTop = 0;
layerTree.innerText =
window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
- window.internals.stopTrackingRepaints(document);
+ window.internals.stopTrackingRepaints();
});
</script>
</head>
diff --git a/LayoutTests/compositing/repaint/absolute-painted-into-composited-ancestor.html b/LayoutTests/compositing/repaint/absolute-painted-into-composited-ancestor.html
index 2862fbc..fec6169 100644
--- a/LayoutTests/compositing/repaint/absolute-painted-into-composited-ancestor.html
+++ b/LayoutTests/compositing/repaint/absolute-painted-into-composited-ancestor.html
@@ -26,13 +26,13 @@
function doTest() {
if (window.internals)
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
document.getElementById("target").style.left = '300px';
if (window.internals) {
document.getElementById('layers').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
- window.internals.stopTrackingRepaints(document);
+ window.internals.stopTrackingRepaints();
}
}
diff --git a/LayoutTests/compositing/repaint/fixed-background-scroll.html b/LayoutTests/compositing/repaint/fixed-background-scroll.html
index 91eb1d5..cd9f105 100644
--- a/LayoutTests/compositing/repaint/fixed-background-scroll.html
+++ b/LayoutTests/compositing/repaint/fixed-background-scroll.html
@@ -33,7 +33,7 @@
window.setTimeout(function() {
document.body.offsetTop;
if (window.internals)
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
window.scrollTo(0, 100);
diff --git a/LayoutTests/compositing/repaint/invalidations-on-composited-layers.html b/LayoutTests/compositing/repaint/invalidations-on-composited-layers.html
index 9d91d0b9..0440fc3 100644
--- a/LayoutTests/compositing/repaint/invalidations-on-composited-layers.html
+++ b/LayoutTests/compositing/repaint/invalidations-on-composited-layers.html
@@ -46,7 +46,7 @@
// tracking (we don't want our lists of invalidated rects to be
// polluted).
document.body.offsetTop;
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
child.style.background = 'blue';
parent.style.background = 'green';
@@ -59,7 +59,7 @@
var layerTreeText = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
- window.internals.stopTrackingRepaints(document);
+ window.internals.stopTrackingRepaints();
text.innerHTML = layerTreeText;
});
diff --git a/LayoutTests/compositing/repaint/positioned-movement.html b/LayoutTests/compositing/repaint/positioned-movement.html
index 53349bc..95255f5 100644
--- a/LayoutTests/compositing/repaint/positioned-movement.html
+++ b/LayoutTests/compositing/repaint/positioned-movement.html
@@ -34,7 +34,7 @@
window.setTimeout(function() {
document.body.offsetTop;
if (window.internals)
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
document.getElementById('box').classList.add('moved');
diff --git a/LayoutTests/compositing/repaint/repaint-on-layer-grouping-change.html b/LayoutTests/compositing/repaint/repaint-on-layer-grouping-change.html
index f4c52a3..fc0176a 100644
--- a/LayoutTests/compositing/repaint/repaint-on-layer-grouping-change.html
+++ b/LayoutTests/compositing/repaint/repaint-on-layer-grouping-change.html
@@ -44,7 +44,7 @@
document.body.offsetWidth;
window.setTimeout(function() {
if (window.internals)
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
document.body.classList.toggle('changed');
if (window.testRunner) {
document.getElementById('layers').innerText = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
diff --git a/LayoutTests/compositing/repaint/resize-repaint.html b/LayoutTests/compositing/repaint/resize-repaint.html
index bce51d6..93c2408 100644
--- a/LayoutTests/compositing/repaint/resize-repaint.html
+++ b/LayoutTests/compositing/repaint/resize-repaint.html
@@ -33,17 +33,17 @@
}
if (window.internals)
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
for (var i = 0; i < 2; ++i) {
var newDiv = document.createElement('div');
resizingDiv.appendChild(newDiv);
}
-
+
if (window.internals)
document.getElementById('layers').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
}
-
+
window.addEventListener('load', doTest, false);
</script>
</head>
diff --git a/LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.html b/LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.html
index b7bebd8..0690679 100644
--- a/LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.html
+++ b/LayoutTests/compositing/repaint/scroll-fixed-layer-no-content.html
@@ -14,13 +14,13 @@
{
document.body.offsetHeight;
if (window.internals)
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
window.scrollTo(0, 1000);
window.scrollTo(0, 100);
if (window.internals)
- document.getElementById('repaintRects').textContent = window.internals.repaintRectsAsText(document);
+ document.getElementById('repaintRects').textContent = window.internals.repaintRectsAsText();
}
</script>
</head>
diff --git a/LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html b/LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html
index 4a8249a..2188c08 100644
--- a/LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html
+++ b/LayoutTests/compositing/repaint/scroll-fixed-layer-out-of-view.html
@@ -14,13 +14,13 @@
{
document.body.offsetHeight;
if (window.internals)
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
window.scrollTo(0, 1000);
window.scrollTo(0, 100);
if (window.internals)
- document.getElementById('repaintRects').textContent = window.internals.repaintRectsAsText(document);
+ document.getElementById('repaintRects').textContent = window.internals.repaintRectsAsText();
}
</script>
</head>
diff --git a/LayoutTests/editing/caret/selection-with-caret-type-progress.html b/LayoutTests/editing/caret/selection-with-caret-type-progress.html
index 26c0333..835ac90 100644
--- a/LayoutTests/editing/caret/selection-with-caret-type-progress.html
+++ b/LayoutTests/editing/caret/selection-with-caret-type-progress.html
@@ -26,7 +26,7 @@
leapForwardAndMove(div.offsetLeft + 20);
leapForwardAndMove(div.offsetWidth - 10);
- var cursorInfo = window.internals.getCurrentCursorInfo(document);
+ var cursorInfo = window.internals.getCurrentCursorInfo();
var currentCursorType = cursorInfo.substring(cursorInfo.indexOf('=') + 1, cursorInfo.lastIndexOf(' '));
shouldBeEqualToString('currentCursorType', 'Progress');
} else {
diff --git a/LayoutTests/editing/execCommand/overtype.html b/LayoutTests/editing/execCommand/overtype.html
index 5043140..fca4c97 100644
--- a/LayoutTests/editing/execCommand/overtype.html
+++ b/LayoutTests/editing/execCommand/overtype.html
@@ -27,7 +27,7 @@
Markup.dump(element, 'These are the original contents');
selection.collapse(element, 0);
- internals.toggleOverwriteModeEnabled(document);
+ internals.toggleOverwriteModeEnabled();
document.execCommand("InsertText", false, 'F');
Markup.dump(element, 'After overwritting the first character');
diff --git a/LayoutTests/editing/selection/block-cursor-overtype-mode.html b/LayoutTests/editing/selection/block-cursor-overtype-mode.html
index 4e9310f..1a10704 100644
--- a/LayoutTests/editing/selection/block-cursor-overtype-mode.html
+++ b/LayoutTests/editing/selection/block-cursor-overtype-mode.html
@@ -55,7 +55,7 @@
if (window.testRunner) {
- internals.toggleOverwriteModeEnabled(document);
+ internals.toggleOverwriteModeEnabled();
verifyBlockCursorLeftPositionAndWidth("ltrtext", ["<", "<"]);
verifyBlockCursorLeftPositionAndWidth("ltrtext-rtl", ["<", "<"]);
diff --git a/LayoutTests/editing/spelling/design-mode-spellcheck-off.html b/LayoutTests/editing/spelling/design-mode-spellcheck-off.html
index 34e1f6e..fd8f8bb 100644
--- a/LayoutTests/editing/spelling/design-mode-spellcheck-off.html
+++ b/LayoutTests/editing/spelling/design-mode-spellcheck-off.html
@@ -18,7 +18,7 @@
document.body.addEventListener('mousedown', function() {
if (document.activeElement != document.body)
document.body.appendChild(document.createTextNode('FAIL: active element after click is not body element'));
- else if (internals.hasSpellingMarker(document, 0, 4))
+ else if (internals.hasSpellingMarker(0, 4))
document.body.appendChild(document.createTextNode('FAIL: spell check was invoked'));
else
document.body.appendChild(document.createTextNode('PASS'));
diff --git a/LayoutTests/editing/spelling/grammar-edit-word-expected.txt b/LayoutTests/editing/spelling/grammar-edit-word-expected.txt
index 6bd00cd..38359fa 100644
--- a/LayoutTests/editing/spelling/grammar-edit-word-expected.txt
+++ b/LayoutTests/editing/spelling/grammar-edit-word-expected.txt
@@ -4,7 +4,7 @@
document.execCommand("InsertText", false, "You has the right.")
-PASS internals.hasGrammarMarker(document, 4, 3) is true
+PASS internals.hasGrammarMarker(4, 3) is true
Delete the end of this sentence until it becomes "You ha".
testRunner.execCommand("DeleteBackward")
testRunner.execCommand("DeleteBackward")
@@ -18,7 +18,7 @@
testRunner.execCommand("DeleteBackward")
testRunner.execCommand("DeleteBackward")
testRunner.execCommand("DeleteBackward")
-PASS internals.hasGrammarMarker(document, 4, 2) is false
+PASS internals.hasGrammarMarker(4, 2) is false
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/LayoutTests/editing/spelling/grammar-edit-word.html b/LayoutTests/editing/spelling/grammar-edit-word.html
index 025302a2..27424c5 100644
--- a/LayoutTests/editing/spelling/grammar-edit-word.html
+++ b/LayoutTests/editing/spelling/grammar-edit-word.html
@@ -14,12 +14,12 @@
target.focus();
evalAndLog('document.execCommand("InsertText", false, "You has the right.")');
-shouldBeTrue('internals.hasGrammarMarker(document, 4, 3)');
+shouldBeTrue('internals.hasGrammarMarker(4, 3)');
debug('Delete the end of this sentence until it becomes "You ha".');
for (var i = 0; i < 12; ++i)
evalAndLog('testRunner.execCommand("DeleteBackward")');
-shouldBeFalse('internals.hasGrammarMarker(document, 4, 2)');
+shouldBeFalse('internals.hasGrammarMarker(4, 2)');
internals.settings.setUnifiedTextCheckerEnabled(false);
</script>
diff --git a/LayoutTests/editing/spelling/grammar-markers-hidpi.html b/LayoutTests/editing/spelling/grammar-markers-hidpi.html
index add7012..6779387 100644
--- a/LayoutTests/editing/spelling/grammar-markers-hidpi.html
+++ b/LayoutTests/editing/spelling/grammar-markers-hidpi.html
@@ -17,7 +17,7 @@
function verifyGrammarMarker(destination, ungrammaticalPhrase)
{
- if (internals.hasGrammarMarker(document, destination.innerHTML.indexOf(ungrammaticalPhrase), ungrammaticalPhrase.length)) {
+ if (internals.hasGrammarMarker(destination.innerHTML.indexOf(ungrammaticalPhrase), ungrammaticalPhrase.length)) {
testPassed("ungrammatical phrase '" + ungrammaticalPhrase + "' on '" + destination.innerHTML + "'");
return true;
} else
diff --git a/LayoutTests/editing/spelling/grammar-markers.html b/LayoutTests/editing/spelling/grammar-markers.html
index 65da496..7ca999f 100644
--- a/LayoutTests/editing/spelling/grammar-markers.html
+++ b/LayoutTests/editing/spelling/grammar-markers.html
@@ -20,7 +20,7 @@
function verifyGrammarMarker(destination, ungrammaticalPhrase)
{
- if (window.internals && internals.hasGrammarMarker(document, destination.innerHTML.indexOf(ungrammaticalPhrase), ungrammaticalPhrase.length)) {
+ if (window.internals && internals.hasGrammarMarker(destination.innerHTML.indexOf(ungrammaticalPhrase), ungrammaticalPhrase.length)) {
testPassed("ungrammatical phrase '" + ungrammaticalPhrase + "' on '" + destination.innerHTML + "'");
return true;
} else
diff --git a/LayoutTests/editing/spelling/grammar.html b/LayoutTests/editing/spelling/grammar.html
index 040a0fe..953499b 100644
--- a/LayoutTests/editing/spelling/grammar.html
+++ b/LayoutTests/editing/spelling/grammar.html
@@ -24,7 +24,7 @@
document.execCommand("InsertText", false, "I have a issue.");
if (window.testRunner) {
- if (internals.hasGrammarMarker(document, 7, 1))
+ if (internals.hasGrammarMarker(7, 1))
log("PASS");
else
log("FAIL");
diff --git a/LayoutTests/editing/spelling/script-tests/spellcheck-paste.js b/LayoutTests/editing/spelling/script-tests/spellcheck-paste.js
index 4d1c74e..b71aba7 100644
--- a/LayoutTests/editing/spelling/script-tests/spellcheck-paste.js
+++ b/LayoutTests/editing/spelling/script-tests/spellcheck-paste.js
@@ -52,7 +52,7 @@
var ok = true;
for (var i = 0; ok && i < expectedMarked.length; ++i)
- ok = internals.hasSpellingMarker(document, expectedMarked[i][0], expectedMarked[i][1]);
+ ok = internals.hasSpellingMarker(expectedMarked[i][0], expectedMarked[i][1]);
if (ok) {
var nodeContent = node instanceof HTMLInputElement || node instanceof HTMLTextAreaElement ? node.value : node.innerHTML;
diff --git a/LayoutTests/editing/spelling/script-tests/spelling-attribute-at-child.js b/LayoutTests/editing/spelling/script-tests/spelling-attribute-at-child.js
index 1810c28..cbd2315 100644
--- a/LayoutTests/editing/spelling/script-tests/spelling-attribute-at-child.js
+++ b/LayoutTests/editing/spelling/script-tests/spelling-attribute-at-child.js
@@ -11,7 +11,7 @@
document.execCommand("InsertText", false, 'z');
document.execCommand("InsertText", false, 'z');
document.execCommand("InsertText", false, ' ');
- var marked = internals.hasSpellingMarker(document, 1, 2);
+ var marked = internals.hasSpellingMarker(1, 2);
root.innerHTML = "";
return marked;
}
diff --git a/LayoutTests/editing/spelling/script-tests/spelling-attribute-change.js b/LayoutTests/editing/spelling/script-tests/spelling-attribute-change.js
index ff4eaa7..6a0cdd5 100644
--- a/LayoutTests/editing/spelling/script-tests/spelling-attribute-change.js
+++ b/LayoutTests/editing/spelling/script-tests/spelling-attribute-change.js
@@ -22,7 +22,7 @@
window.target = target;
shouldBe("target.spellcheck", enabled ? "true" : "false");
- shouldBe("internals.hasSpellingMarker(document, 6, 2)", enabled ? "true" : "false");
+ shouldBe("internals.hasSpellingMarker(6, 2)", enabled ? "true" : "false");
}
function createElement(tagName, spellcheck)
diff --git a/LayoutTests/editing/spelling/script-tests/spelling-backspace-between-lines.js b/LayoutTests/editing/spelling/script-tests/spelling-backspace-between-lines.js
index 616f001..9528eb3 100644
--- a/LayoutTests/editing/spelling/script-tests/spelling-backspace-between-lines.js
+++ b/LayoutTests/editing/spelling/script-tests/spelling-backspace-between-lines.js
@@ -26,7 +26,7 @@
shouldBe("firstLineText()", "'OK'");
shouldBe("sel.anchorNode.data", "'OK zz OK'");
- shouldBeTrue("internals.hasSpellingMarker(document, 3, 2)");
+ shouldBeTrue("internals.hasSpellingMarker(3, 2)");
sel.modify("move", "left", "lineboundary");
document.execCommand("Delete", false);
@@ -34,7 +34,7 @@
shouldBe("sel.anchorNode.data", "'OKOK zz OK'");
shouldBe("firstLineText()", "'OKOK zz OK'");
- shouldBeTrue("internals.hasSpellingMarker(document, 5, 2)");
+ shouldBeTrue("internals.hasSpellingMarker(5, 2)");
}
function testWithForwardDelete()
@@ -47,7 +47,7 @@
shouldBe("firstLineText()", "'OK'");
shouldBe("sel.anchorNode.data", "'OK zz OK'");
- shouldBeTrue("internals.hasSpellingMarker(document, 3, 2)");
+ shouldBeTrue("internals.hasSpellingMarker(3, 2)");
sel.modify("move", "left", "line");
document.execCommand("ForwardDelete", false);
@@ -55,7 +55,7 @@
shouldBe("firstLineText()", "'OKOK zz OK'");
shouldBe("sel.anchorNode.data", "'OKOK zz OK'");
- shouldBeTrue("internals.hasSpellingMarker(document, 5, 2)");
+ shouldBeTrue("internals.hasSpellingMarker(5, 2)");
}
testWithDelete();
diff --git a/LayoutTests/editing/spelling/script-tests/spelling-hasspellingmarker.js b/LayoutTests/editing/spelling/script-tests/spelling-hasspellingmarker.js
index c107ff8..fbafa6e 100644
--- a/LayoutTests/editing/spelling/script-tests/spelling-hasspellingmarker.js
+++ b/LayoutTests/editing/spelling/script-tests/spelling-hasspellingmarker.js
@@ -11,7 +11,7 @@
document.execCommand("InsertText", false, 'z');
document.execCommand("InsertText", false, ' ');
- return internals.hasSpellingMarker(document, 0, 2);
+ return internals.hasSpellingMarker(0, 2);
}
shouldBeTrue("hasMarked(\"<textarea id='test' cols='80' rows='10'></textarea>\");");
diff --git a/LayoutTests/editing/spelling/spellcheck-async-mutation.html b/LayoutTests/editing/spelling/spellcheck-async-mutation.html
index 98c2a2c..772cb3d 100644
--- a/LayoutTests/editing/spelling/spellcheck-async-mutation.html
+++ b/LayoutTests/editing/spelling/spellcheck-async-mutation.html
@@ -96,14 +96,14 @@
document.getElementById('container').appendChild(destination);
if (window.internals)
- lastRequestId = internals.lastSpellCheckRequestSequence(document);
+ lastRequestId = internals.lastSpellCheckRequestSequence();
// A spellcheck request will be invoked.
doCopyAndPaste(source, destination);
setTimeout(function() {
if (window.internals)
- requestId = internals.lastSpellCheckRequestSequence(document);
+ requestId = internals.lastSpellCheckRequestSequence();
shouldBeGreaterThanOrEqual('requestId', 'lastRequestId + 1');
// Then, tweak
@@ -158,7 +158,7 @@
}
if (window.internals)
- var lastProcessedId = internals.lastSpellCheckProcessedSequence(document);
+ var lastProcessedId = internals.lastSpellCheckProcessedSequence();
if (requestId != lastProcessedId) {
setTimeout(function() {
diff --git a/LayoutTests/editing/spelling/spellcheck-attribute-expected.txt b/LayoutTests/editing/spelling/spellcheck-attribute-expected.txt
index dddf7dc..3e1506d1 100644
--- a/LayoutTests/editing/spelling/spellcheck-attribute-expected.txt
+++ b/LayoutTests/editing/spelling/spellcheck-attribute-expected.txt
@@ -1,56 +1,56 @@
This tests if the "spellcheck" attribute is implemented as written in its specification. If this test succeeds, you can see forms filled with an invalid word 'zz '. Nevertheless, the 'zz ' is not marked as misspelled in all of them.
id=test1_1 type=text spellcheck=true parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test1_2 type=text spellcheck=true parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test1_3 type=text spellcheck=false parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is false
id=test1_4 type=text spellcheck=true parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test1_5 type=text spellcheck=true parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test1_6 type=text spellcheck=true parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test2_1 type=text spellcheck=false parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is false
id=test2_2 type=text spellcheck=true parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test2_3 type=text spellcheck=false parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is false
id=test2_4 type=text spellcheck=false parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is false
id=test2_5 type=text spellcheck=true parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test2_6 type=text spellcheck=false parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is false
id=test3_1 type=search spellcheck=true parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test3_2 type=search spellcheck=true parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test3_3 type=search spellcheck=false parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is false
id=test3_4 type=search spellcheck=true parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test3_5 type=search spellcheck=true parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test3_6 type=search spellcheck=true parent's spellcheck=true
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test4_1 type=search spellcheck=false parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is false
id=test4_2 type=search spellcheck=true parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test4_3 type=search spellcheck=false parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is false
id=test4_4 type=search spellcheck=false parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is false
id=test4_5 type=search spellcheck=true parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is true
id=test4_6 type=search spellcheck=false parent's spellcheck=false
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is false
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/LayoutTests/editing/spelling/spellcheck-attribute.html b/LayoutTests/editing/spelling/spellcheck-attribute.html
index c5e9307..da49073 100644
--- a/LayoutTests/editing/spelling/spellcheck-attribute.html
+++ b/LayoutTests/editing/spelling/spellcheck-attribute.html
@@ -59,7 +59,7 @@
log("id=" + id + " type=" + inputElement.type + " spellcheck=" + inputElement.spellcheck
+ " parent's spellcheck=" + inputElement.parentNode.spellcheck);
- shouldBe("internals.hasSpellingMarker(document, 0, 2)", shouldBeMarked ? "true" : "false")
+ shouldBe("internals.hasSpellingMarker(0, 2)", shouldBeMarked ? "true" : "false")
}
// For type="text".
diff --git a/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt b/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt
index 7c944d1..5660aa8 100644
--- a/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt
+++ b/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt
@@ -3,8 +3,8 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS internals.hasSpellingMarker(document, 0, 2) is true
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is false
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled.html b/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled.html
index a8d7cf4..07ead04 100644
--- a/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled.html
+++ b/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled.html
@@ -24,14 +24,14 @@
document.execCommand("InsertText", false, 'p');
document.execCommand("InsertText", false, 'l');
document.execCommand("InsertText", false, 'e');
-shouldBeTrue('internals.hasSpellingMarker(document, 0, 2)');
+shouldBeTrue('internals.hasSpellingMarker(0, 2)');
window.getSelection().selectAllChildren(srcNode);
document.execCommand('Copy');
internals.setContinuousSpellCheckingEnabled(false);
document.execCommand('Paste');
-shouldBeFalse('internals.hasSpellingMarker(document, 0, 2)');
+shouldBeFalse('internals.hasSpellingMarker(0, 2)');
</script>
<script src="../../resources/js-test-post.js"></script>
diff --git a/LayoutTests/editing/spelling/spellcheck-paste-disabled-expected.txt b/LayoutTests/editing/spelling/spellcheck-paste-disabled-expected.txt
index 25402c7..3761e03 100644
--- a/LayoutTests/editing/spelling/spellcheck-paste-disabled-expected.txt
+++ b/LayoutTests/editing/spelling/spellcheck-paste-disabled-expected.txt
@@ -3,8 +3,8 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS internals.hasSpellingMarker(document, 0, 2) is true
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is false
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/LayoutTests/editing/spelling/spellcheck-paste-disabled.html b/LayoutTests/editing/spelling/spellcheck-paste-disabled.html
index 5407a7c..db97f0d 100644
--- a/LayoutTests/editing/spelling/spellcheck-paste-disabled.html
+++ b/LayoutTests/editing/spelling/spellcheck-paste-disabled.html
@@ -25,14 +25,14 @@
document.execCommand("InsertText", false, 'p');
document.execCommand("InsertText", false, 'l');
document.execCommand("InsertText", false, 'e');
-shouldBeTrue('internals.hasSpellingMarker(document, 0, 2)');
+shouldBeTrue('internals.hasSpellingMarker(0, 2)');
window.getSelection().selectAllChildren(srcNode);
document.execCommand('Copy');
var dstNode = document.getElementById('dst');
dstNode.focus();
document.execCommand('Paste');
-shouldBeFalse('internals.hasSpellingMarker(document, 0, 2)');
+shouldBeFalse('internals.hasSpellingMarker(0, 2)');
</script>
<script src="../../resources/js-test-post.js"></script>
diff --git a/LayoutTests/editing/spelling/spellcheck-sequencenum.html b/LayoutTests/editing/spelling/spellcheck-sequencenum.html
index faa739b..3ca42c5 100644
--- a/LayoutTests/editing/spelling/spellcheck-sequencenum.html
+++ b/LayoutTests/editing/spelling/spellcheck-sequencenum.html
@@ -59,8 +59,8 @@
return function() {
if (!window.internals)
return;
- var sequence = internals.lastSpellCheckRequestSequence(document);
- var processed = internals.lastSpellCheckProcessedSequence(document);
+ var sequence = internals.lastSpellCheckRequestSequence();
+ var processed = internals.lastSpellCheckProcessedSequence();
copyAndPaste(source, destinations[i]);
verify(sequence, processed);
}
@@ -100,8 +100,8 @@
var nretry = 10;
var nsleep = 1;
function trial() {
- var newSequence = internals.lastSpellCheckRequestSequence(document);
- var newProcessed = internals.lastSpellCheckProcessedSequence(document);
+ var newSequence = internals.lastSpellCheckRequestSequence();
+ var newProcessed = internals.lastSpellCheckProcessedSequence();
var verified = newSequence >= sequence && newProcessed >= processed && newSequence == newProcessed;
if (verified) {
diff --git a/LayoutTests/editing/spelling/spelling-attribute-change-expected.txt b/LayoutTests/editing/spelling/spelling-attribute-change-expected.txt
index f8eda2c..79ce257 100644
--- a/LayoutTests/editing/spelling/spelling-attribute-change-expected.txt
+++ b/LayoutTests/editing/spelling/spelling-attribute-change-expected.txt
@@ -4,41 +4,41 @@
PASS target.spellcheck is true
-PASS internals.hasSpellingMarker(document, 6, 2) is true
+PASS internals.hasSpellingMarker(6, 2) is true
PASS target.spellcheck is false
-PASS internals.hasSpellingMarker(document, 6, 2) is false
+PASS internals.hasSpellingMarker(6, 2) is false
PASS target.spellcheck is true
-PASS internals.hasSpellingMarker(document, 6, 2) is true
+PASS internals.hasSpellingMarker(6, 2) is true
PASS target.spellcheck is false
-PASS internals.hasSpellingMarker(document, 6, 2) is false
+PASS internals.hasSpellingMarker(6, 2) is false
PASS target.spellcheck is true
-PASS internals.hasSpellingMarker(document, 6, 2) is true
+PASS internals.hasSpellingMarker(6, 2) is true
PASS target.spellcheck is false
-PASS internals.hasSpellingMarker(document, 6, 2) is false
+PASS internals.hasSpellingMarker(6, 2) is false
PASS target.spellcheck is true
-PASS internals.hasSpellingMarker(document, 6, 2) is true
+PASS internals.hasSpellingMarker(6, 2) is true
PASS target.spellcheck is false
-PASS internals.hasSpellingMarker(document, 6, 2) is false
+PASS internals.hasSpellingMarker(6, 2) is false
PASS target.spellcheck is true
-PASS internals.hasSpellingMarker(document, 6, 2) is true
+PASS internals.hasSpellingMarker(6, 2) is true
PASS target.spellcheck is false
-PASS internals.hasSpellingMarker(document, 6, 2) is false
+PASS internals.hasSpellingMarker(6, 2) is false
PASS target.spellcheck is true
-PASS internals.hasSpellingMarker(document, 6, 2) is true
+PASS internals.hasSpellingMarker(6, 2) is true
PASS target.spellcheck is false
-PASS internals.hasSpellingMarker(document, 6, 2) is false
+PASS internals.hasSpellingMarker(6, 2) is false
PASS target.spellcheck is true
-PASS internals.hasSpellingMarker(document, 6, 2) is true
+PASS internals.hasSpellingMarker(6, 2) is true
PASS target.spellcheck is false
-PASS internals.hasSpellingMarker(document, 6, 2) is false
+PASS internals.hasSpellingMarker(6, 2) is false
PASS target.spellcheck is true
-PASS internals.hasSpellingMarker(document, 6, 2) is true
+PASS internals.hasSpellingMarker(6, 2) is true
PASS target.spellcheck is false
-PASS internals.hasSpellingMarker(document, 6, 2) is false
+PASS internals.hasSpellingMarker(6, 2) is false
PASS target.spellcheck is true
-PASS internals.hasSpellingMarker(document, 6, 2) is true
+PASS internals.hasSpellingMarker(6, 2) is true
PASS target.spellcheck is false
-PASS internals.hasSpellingMarker(document, 6, 2) is false
+PASS internals.hasSpellingMarker(6, 2) is false
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/LayoutTests/editing/spelling/spelling-backspace-between-lines-expected.txt b/LayoutTests/editing/spelling/spelling-backspace-between-lines-expected.txt
index 222f569..3530620 100644
--- a/LayoutTests/editing/spelling/spelling-backspace-between-lines-expected.txt
+++ b/LayoutTests/editing/spelling/spelling-backspace-between-lines-expected.txt
@@ -5,16 +5,16 @@
PASS firstLineText() is 'OK'
PASS sel.anchorNode.data is 'OK zz OK'
-PASS internals.hasSpellingMarker(document, 3, 2) is true
+PASS internals.hasSpellingMarker(3, 2) is true
PASS sel.anchorNode.data is 'OKOK zz OK'
PASS firstLineText() is 'OKOK zz OK'
-PASS internals.hasSpellingMarker(document, 5, 2) is true
+PASS internals.hasSpellingMarker(5, 2) is true
PASS firstLineText() is 'OK'
PASS sel.anchorNode.data is 'OK zz OK'
-PASS internals.hasSpellingMarker(document, 3, 2) is true
+PASS internals.hasSpellingMarker(3, 2) is true
PASS firstLineText() is 'OKOK zz OK'
PASS sel.anchorNode.data is 'OKOK zz OK'
-PASS internals.hasSpellingMarker(document, 5, 2) is true
+PASS internals.hasSpellingMarker(5, 2) is true
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/LayoutTests/editing/spelling/spelling-linebreak.html b/LayoutTests/editing/spelling/spelling-linebreak.html
index 70e52bf..73fea76 100644
--- a/LayoutTests/editing/spelling/spelling-linebreak.html
+++ b/LayoutTests/editing/spelling/spelling-linebreak.html
@@ -34,7 +34,7 @@
if (window.testRunner) {
selection.setPosition(elem, 0);
- if (internals.hasSpellingMarker(document, 6, 2))
+ if (internals.hasSpellingMarker(6, 2))
log("PASS");
else
log("FAIL");
diff --git a/LayoutTests/fast/box-shadow/shadow-repaint.html b/LayoutTests/fast/box-shadow/shadow-repaint.html
index 9b16818..a855217 100644
--- a/LayoutTests/fast/box-shadow/shadow-repaint.html
+++ b/LayoutTests/fast/box-shadow/shadow-repaint.html
@@ -24,10 +24,10 @@
if (!window.testRunner || !window.internals)
return;
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
document.getElementById('box').classList.add('shadowed');
- document.getElementById('repaints').textContent = window.internals.repaintRectsAsText(document);
- window.internals.stopTrackingRepaints(document);
+ document.getElementById('repaints').textContent = window.internals.repaintRectsAsText();
+ window.internals.stopTrackingRepaints();
}
window.addEventListener('load', doTest, false);
diff --git a/LayoutTests/fast/css/webkit-mask-crash-fieldset-legend.html b/LayoutTests/fast/css/webkit-mask-crash-fieldset-legend.html
index d985429..42c2c64 100644
--- a/LayoutTests/fast/css/webkit-mask-crash-fieldset-legend.html
+++ b/LayoutTests/fast/css/webkit-mask-crash-fieldset-legend.html
@@ -11,7 +11,7 @@
<script>
if (window.internals) {
testRunner.dumpAsText();
- internals.paintControlTints(document);
+ internals.paintControlTints();
}
</script>
Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=68133">68133</a>: Crash in RenderBox::paintMaskImages when GraphicsContext's painting is disabled<br>
diff --git a/LayoutTests/fast/css/webkit-mask-crash-figure.html b/LayoutTests/fast/css/webkit-mask-crash-figure.html
index 27eece5..2d37987 100644
--- a/LayoutTests/fast/css/webkit-mask-crash-figure.html
+++ b/LayoutTests/fast/css/webkit-mask-crash-figure.html
@@ -11,7 +11,7 @@
<script>
if (window.internals) {
testRunner.dumpAsText();
- internals.paintControlTints(document);
+ internals.paintControlTints();
}
</script>
Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=68133">68133</a>: Crash in RenderBox::paintMaskImages when GraphicsContext's painting is disabled<br>
diff --git a/LayoutTests/fast/css/webkit-mask-crash-table.html b/LayoutTests/fast/css/webkit-mask-crash-table.html
index 847a27a..c5ff68e 100644
--- a/LayoutTests/fast/css/webkit-mask-crash-table.html
+++ b/LayoutTests/fast/css/webkit-mask-crash-table.html
@@ -11,7 +11,7 @@
<script>
if (window.internals) {
testRunner.dumpAsText();
- internals.paintControlTints(document);
+ internals.paintControlTints();
}
</script>
Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=68133">68133</a>: Crash in RenderBox::paintMaskImages when GraphicsContext's painting is disabled<br>
diff --git a/LayoutTests/fast/css/webkit-mask-crash-td-2.html b/LayoutTests/fast/css/webkit-mask-crash-td-2.html
index c655362..34f9784 100644
--- a/LayoutTests/fast/css/webkit-mask-crash-td-2.html
+++ b/LayoutTests/fast/css/webkit-mask-crash-td-2.html
@@ -9,7 +9,7 @@
<script>
if (window.internals) {
testRunner.dumpAsText();
- internals.paintControlTints(document);
+ internals.paintControlTints();
}
</script>
Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=68133">68133</a>: Crash in RenderBox::paintMaskImages when GraphicsContext's painting is disabled<br>
diff --git a/LayoutTests/fast/css/webkit-mask-crash-td.html b/LayoutTests/fast/css/webkit-mask-crash-td.html
index c87e539..3ed559c 100644
--- a/LayoutTests/fast/css/webkit-mask-crash-td.html
+++ b/LayoutTests/fast/css/webkit-mask-crash-td.html
@@ -13,7 +13,7 @@
<script>
if (window.internals) {
testRunner.dumpAsText();
- internals.paintControlTints(document);
+ internals.paintControlTints();
}
</script>
Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=68133">68133</a>: Crash in RenderBox::paintMaskImages when GraphicsContext's painting is disabled<br>
diff --git a/LayoutTests/fast/dom/icon-url-change.html b/LayoutTests/fast/dom/icon-url-change.html
index 27659fd..eef3d85 100644
--- a/LayoutTests/fast/dom/icon-url-change.html
+++ b/LayoutTests/fast/dom/icon-url-change.html
@@ -45,7 +45,7 @@
// check that the URL list in the document is as we expect
var expectedURLs = "http://test.com/oldfavicon.ico";
- var iconURLs = window.internals.shortcutIconURLs(document);
+ var iconURLs = window.internals.shortcutIconURLs();
if (expectedURLs == iconURLs[0])
testPassed('URL list matches expected');
else
diff --git a/LayoutTests/fast/dom/icon-url-list-apple-touch.html b/LayoutTests/fast/dom/icon-url-list-apple-touch.html
index e59c584..76dc62a 100644
--- a/LayoutTests/fast/dom/icon-url-list-apple-touch.html
+++ b/LayoutTests/fast/dom/icon-url-list-apple-touch.html
@@ -13,7 +13,7 @@
debug('Tests that all favicons and touch icons (if ENABLE(TOUCH_ICON_LOADING)) are in document.iconURLs()');
// Fetch the actual list of icon URLs.
- var actualURLs = window.internals.allIconURLs(document);
+ var actualURLs = window.internals.allIconURLs();
// Print out the URL list in the document to match it against the expected list.
// Note that the expected order is reverse to ensure that icons seen later
diff --git a/LayoutTests/fast/dom/icon-url-list.html b/LayoutTests/fast/dom/icon-url-list.html
index 5406021..06cd961 100644
--- a/LayoutTests/fast/dom/icon-url-list.html
+++ b/LayoutTests/fast/dom/icon-url-list.html
@@ -48,7 +48,7 @@
var expectedURL0 = "http://test.com/barfavicon.ico";
var expectedURL1 = "http://test.com/foofavicon.ico";
var expectedURL2 = "http://test.com/newfavicon.ico";
- var iconURLs = window.internals.shortcutIconURLs(document);
+ var iconURLs = window.internals.shortcutIconURLs();
if (expectedURL0 == iconURLs[0] && expectedURL1 == iconURLs[1] && expectedURL2 == iconURLs[2])
testPassed('URL list matches expected');
else
diff --git a/LayoutTests/fast/dom/icon-url-property.html b/LayoutTests/fast/dom/icon-url-property.html
index ff71712..035921d 100644
--- a/LayoutTests/fast/dom/icon-url-property.html
+++ b/LayoutTests/fast/dom/icon-url-property.html
@@ -54,7 +54,7 @@
// check that the URL list in the document is as we expect
var expectedURLs = "http://test.com/newfavicon.ico";
- var iconURLs = window.internals.shortcutIconURLs(document);
+ var iconURLs = window.internals.shortcutIconURLs();
if (expectedURLs == iconURLs[0])
debugOutput('PASS - URL list matches expected');
else
diff --git a/LayoutTests/fast/events/mouse-cursor-change.html b/LayoutTests/fast/events/mouse-cursor-change.html
index 86f6dbd..7646ae2 100644
--- a/LayoutTests/fast/events/mouse-cursor-change.html
+++ b/LayoutTests/fast/events/mouse-cursor-change.html
@@ -31,7 +31,7 @@
function runTest(prepare, next) {
prepare();
setTimeout(function() {
- debug('Cursor Info: ' + window.internals.getCurrentCursorInfo(document));
+ debug('Cursor Info: ' + window.internals.getCurrentCursorInfo());
debug('');
next();
}, CURSOR_UPDATE_DELAY);
diff --git a/LayoutTests/fast/events/mouse-cursor-image-set.html b/LayoutTests/fast/events/mouse-cursor-image-set.html
index 02aa7ae..cb09687 100644
--- a/LayoutTests/fast/events/mouse-cursor-image-set.html
+++ b/LayoutTests/fast/events/mouse-cursor-image-set.html
@@ -44,7 +44,7 @@
// Note that we could return structured data which we then validate, but that's a lot more
// work and is redundant with relying on the expected output anyway. Better to just dump
// it and inspect that it matches the description.
- debug('Cursor Info: ' + window.internals.getCurrentCursorInfo(document));
+ debug('Cursor Info: ' + window.internals.getCurrentCursorInfo());
debug('');
}
}
diff --git a/LayoutTests/fast/events/mouse-cursor-multiframecur.html b/LayoutTests/fast/events/mouse-cursor-multiframecur.html
index 3758958..89b142f 100644
--- a/LayoutTests/fast/events/mouse-cursor-multiframecur.html
+++ b/LayoutTests/fast/events/mouse-cursor-multiframecur.html
@@ -35,7 +35,7 @@
// Note that we could return structured data which we then validate, but that's a lot more
// work and is redundant with relying on the expected output anyway. Better to just dump
// it and inspect that it matches the description.
- debug('Cursor Info: ' + window.internals.getCurrentCursorInfo(document));
+ debug('Cursor Info: ' + window.internals.getCurrentCursorInfo());
debug('');
}
// This text is redundant with the test output - hide it
diff --git a/LayoutTests/fast/events/mouse-cursor-no-mousemove.html b/LayoutTests/fast/events/mouse-cursor-no-mousemove.html
index 40f12cd..c0720a4 100644
--- a/LayoutTests/fast/events/mouse-cursor-no-mousemove.html
+++ b/LayoutTests/fast/events/mouse-cursor-no-mousemove.html
@@ -33,14 +33,14 @@
var node = document.getElementById('target');
debug('TEST CASE: ' + node.textContent);
eventSender.mouseMoveTo(node.offsetLeft + 3, node.offsetTop + 3);
- debug('Cursor Info: ' + window.internals.getCurrentCursorInfo(document));
+ debug('Cursor Info: ' + window.internals.getCurrentCursorInfo());
node.addEventListener('mousemove', function() {
testFailed('Mousemove event should not be fired when changing cursor');
finishJSTest();
});
node.style.cursor = 'help';
setTimeout(function() {
- debug('Cursor Info: ' + window.internals.getCurrentCursorInfo(document));
+ debug('Cursor Info: ' + window.internals.getCurrentCursorInfo());
debug('');
}, CURSOR_UPDATE_DELAY);
diff --git a/LayoutTests/fast/events/mouse-cursor.html b/LayoutTests/fast/events/mouse-cursor.html
index 96ec700..6cfc859 100644
--- a/LayoutTests/fast/events/mouse-cursor.html
+++ b/LayoutTests/fast/events/mouse-cursor.html
@@ -61,7 +61,7 @@
// Note that we could return structured data which we then validate, but that's a lot more
// work and is redundant with relying on the expected output anyway. Better to just dump
// it and inspect that it matches the description.
- debug('Cursor Info: ' + window.internals.getCurrentCursorInfo(document));
+ debug('Cursor Info: ' + window.internals.getCurrentCursorInfo());
debug('');
}
// This text is redundant with the test output - hide it
diff --git a/LayoutTests/fast/events/touch/touch-handler-count-expected.txt b/LayoutTests/fast/events/touch/touch-handler-count-expected.txt
index 796d327..8381180 100644
--- a/LayoutTests/fast/events/touch/touch-handler-count-expected.txt
+++ b/LayoutTests/fast/events/touch/touch-handler-count-expected.txt
@@ -4,75 +4,75 @@
Test addEventListener/removeEventListener on the document.
-PASS window.internals.touchEventHandlerCount(document) is 0
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 0
+PASS window.internals.touchEventHandlerCount() is 0
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 0
Test setting touch handlers on the document.
-PASS window.internals.touchEventHandlerCount(document) is 0
-PASS window.internals.touchEventHandlerCount(document) is 4
-PASS window.internals.touchEventHandlerCount(document) is 4
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 0
+PASS window.internals.touchEventHandlerCount() is 0
+PASS window.internals.touchEventHandlerCount() is 4
+PASS window.internals.touchEventHandlerCount() is 4
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 0
Test addEventListener/removeEventListener on the window.
-PASS window.internals.touchEventHandlerCount(document) is 0
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 0
+PASS window.internals.touchEventHandlerCount() is 0
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 0
Test setting touch handlers on the window.
-PASS window.internals.touchEventHandlerCount(document) is 0
-PASS window.internals.touchEventHandlerCount(document) is 4
-PASS window.internals.touchEventHandlerCount(document) is 4
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 0
+PASS window.internals.touchEventHandlerCount() is 0
+PASS window.internals.touchEventHandlerCount() is 4
+PASS window.internals.touchEventHandlerCount() is 4
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 0
Test addEventListener/removeEventListener on a div.
-PASS window.internals.touchEventHandlerCount(document) is 0
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 0
+PASS window.internals.touchEventHandlerCount() is 0
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 0
Test setting touch handlers on a div.
-PASS window.internals.touchEventHandlerCount(document) is 0
-PASS window.internals.touchEventHandlerCount(document) is 4
-PASS window.internals.touchEventHandlerCount(document) is 4
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 0
+PASS window.internals.touchEventHandlerCount() is 0
+PASS window.internals.touchEventHandlerCount() is 4
+PASS window.internals.touchEventHandlerCount() is 4
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 0
Test addEventListener/removeEventListener on a new div.
-PASS window.internals.touchEventHandlerCount(document) is 0
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 0
+PASS window.internals.touchEventHandlerCount() is 0
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 0
Test setting touch handlers on a new div.
-PASS window.internals.touchEventHandlerCount(document) is 0
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 0
+PASS window.internals.touchEventHandlerCount() is 0
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 0
Test that nested Documents' touch handlers are properly removed from their parent Document.
-PASS window.internals.touchEventHandlerCount(document) is 0
-PASS window.internals.touchEventHandlerCount(document) is 1
-PASS window.internals.touchEventHandlerCount(document) is 0
+PASS window.internals.touchEventHandlerCount() is 0
+PASS window.internals.touchEventHandlerCount() is 1
+PASS window.internals.touchEventHandlerCount() is 0
diff --git a/LayoutTests/fast/events/touch/touch-handler-count.html b/LayoutTests/fast/events/touch/touch-handler-count.html
index 4b27778..956fc32 100644
--- a/LayoutTests/fast/events/touch/touch-handler-count.html
+++ b/LayoutTests/fast/events/touch/touch-handler-count.html
@@ -7,92 +7,92 @@
(function() {
var listener = function() { }
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
document.addEventListener('touchstart', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
document.addEventListener('touchmove', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
document.addEventListener('touchstart', listener, false);
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
document.removeEventListener('touchmove', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
document.removeEventListener('touchstart', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
// Try removing the capturing listener again.
document.removeEventListener('touchstart', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
document.removeEventListener('touchmove', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
document.removeEventListener('touchstart', listener, false);
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
})();
debug("Test setting touch handlers on the document.");
(function() {
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
document.ontouchstart = function() { }
document.ontouchmove = function() {}
document.ontouchend = function() {}
document.ontouchcancel = function() {}
- shouldBe('window.internals.touchEventHandlerCount(document)', '4');
+ shouldBe('window.internals.touchEventHandlerCount()', '4');
document.ontouchstart = function() { }
- shouldBe('window.internals.touchEventHandlerCount(document)', '4');
+ shouldBe('window.internals.touchEventHandlerCount()', '4');
document.ontouchstart = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
document.ontouchstart = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
document.ontouchmove = null;
document.ontouchend = null;
document.ontouchcancel = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
})();
debug("Test addEventListener/removeEventListener on the window.");
(function() {
var listener = function() { }
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
window.addEventListener('touchstart', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
window.addEventListener('touchmove', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
window.addEventListener('touchstart', listener, false);
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
window.removeEventListener('touchmove', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
window.removeEventListener('touchstart', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
// Try removing the capturing listener again.
window.removeEventListener('touchstart', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
window.removeEventListener('touchmove', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
window.removeEventListener('touchstart', listener, false);
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
})();
debug("Test setting touch handlers on the window.");
(function() {
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
window.ontouchstart = function() { }
window.ontouchmove = function() {}
window.ontouchend = function() {}
window.ontouchcancel = function() {}
- shouldBe('window.internals.touchEventHandlerCount(document)', '4');
+ shouldBe('window.internals.touchEventHandlerCount()', '4');
window.ontouchstart = function() { }
- shouldBe('window.internals.touchEventHandlerCount(document)', '4');
+ shouldBe('window.internals.touchEventHandlerCount()', '4');
window.ontouchstart = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
window.ontouchstart = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
window.ontouchmove = null;
window.ontouchend = null;
window.ontouchcancel = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
})();
debug("Test addEventListener/removeEventListener on a div.");
@@ -100,48 +100,48 @@
var listener = function() { }
var div = document.getElementById('touchtarget');
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
div.addEventListener('touchstart', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
div.addEventListener('touchmove', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
div.addEventListener('touchstart', listener, false);
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
div.removeEventListener('touchmove', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
div.removeEventListener('touchstart', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
// Try removing the capturing listener again.
div.removeEventListener('touchstart', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
div.removeEventListener('touchmove', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
div.removeEventListener('touchstart', listener, false);
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
})();
debug("Test setting touch handlers on a div.");
(function() {
var div = document.getElementById('touchtarget');
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
div.ontouchstart = function() { }
div.ontouchmove = function() { }
div.ontouchend = function() { }
div.ontouchcancel = function() { }
- shouldBe('window.internals.touchEventHandlerCount(document)', '4');
+ shouldBe('window.internals.touchEventHandlerCount()', '4');
div.ontouchstart = function() { }
- shouldBe('window.internals.touchEventHandlerCount(document)', '4');
+ shouldBe('window.internals.touchEventHandlerCount()', '4');
div.ontouchstart = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
div.ontouchstart = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
div.ontouchmove = null;
div.ontouchend = null;
div.ontouchcancel = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
})();
debug("Test addEventListener/removeEventListener on a new div.");
@@ -150,30 +150,30 @@
var touchtarget = document.getElementById('touchtarget');
var listener = function() { }
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
div.addEventListener('touchstart', listener, true);
div.addEventListener('touchmove', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
touchtarget.appendChild(div);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
div.addEventListener('touchend', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
div.removeEventListener('touchstart', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
touchtarget.removeChild(div);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
div.removeEventListener('touchmove', listener, false);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
div.removeEventListener('touchmove', listener, true);
div.removeEventListener('touchend', listener, true);
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
})();
debug("Test setting touch handlers on a new div.");
@@ -181,27 +181,27 @@
var div = document.createElement('div');
var touchtarget = document.getElementById('touchtarget');
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
div.ontouchstart = function() { }
div.ontouchmove = function() { }
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
touchtarget.appendChild(div);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
div.ontouchend = function() { }
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
div.ontouchstart = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
touchtarget.removeChild(div);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
div.ontouchend = null;
div.ontouchmove = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
})();
debug("Test that nested Documents' touch handlers are properly removed from their parent Document.");
@@ -209,7 +209,7 @@
var iframe = document.createElement('iframe');
var touchtarget = document.getElementById('touchtarget');
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
touchtarget.appendChild(iframe);
@@ -218,10 +218,10 @@
nestedDocument.write("<!DOCTYPE html>\n<html><body onload=\"window.ontouchstart = function() { };\"></body>");
nestedDocument.close();
- shouldBe('window.internals.touchEventHandlerCount(document)', '1');
+ shouldBe('window.internals.touchEventHandlerCount()', '1');
touchtarget.removeChild(iframe);
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
})();
</script>
</body>
diff --git a/LayoutTests/fast/events/touch/touch-input-element-change-documents-expected.txt b/LayoutTests/fast/events/touch/touch-input-element-change-documents-expected.txt
index c8ba371..84ef9f0 100644
--- a/LayoutTests/fast/events/touch/touch-input-element-change-documents-expected.txt
+++ b/LayoutTests/fast/events/touch/touch-input-element-change-documents-expected.txt
@@ -3,10 +3,10 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS window.internals.touchEventHandlerCount(document) is 0
-PASS window.internals.touchEventHandlerCount(document) is 0
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 3
-PASS window.internals.touchEventHandlerCount(document) is 2
-PASS window.internals.touchEventHandlerCount(document) is 0
+PASS window.internals.touchEventHandlerCount() is 0
+PASS window.internals.touchEventHandlerCount() is 0
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 3
+PASS window.internals.touchEventHandlerCount() is 2
+PASS window.internals.touchEventHandlerCount() is 0
diff --git a/LayoutTests/fast/events/touch/touch-input-element-change-documents.html b/LayoutTests/fast/events/touch/touch-input-element-change-documents.html
index 5a102186..b667452 100644
--- a/LayoutTests/fast/events/touch/touch-input-element-change-documents.html
+++ b/LayoutTests/fast/events/touch/touch-input-element-change-documents.html
@@ -4,26 +4,26 @@
description("This test checks that we correctly update the touch event handler count when an Input element with default touch handlers changes documents.");
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
// There are two touchable Input elements in Audio's shadow DOM when controls are enabled.
var input = document.createElement('audio');
input.setAttribute("controls", true);
var container = document.getElementById('container');
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
container.appendChild(input);
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
input.ontouchend = function() { };
- shouldBe('window.internals.touchEventHandlerCount(document)', '3');
+ shouldBe('window.internals.touchEventHandlerCount()', '3');
input.ontouchend = null;
- shouldBe('window.internals.touchEventHandlerCount(document)', '2');
+ shouldBe('window.internals.touchEventHandlerCount()', '2');
document.implementation.createDocument("", "", null).adoptNode(input);
- shouldBe('window.internals.touchEventHandlerCount(document)', '0');
+ shouldBe('window.internals.touchEventHandlerCount()', '0');
</script>
diff --git a/LayoutTests/fast/multicol/hit-test-gap-between-pages-flipped.html b/LayoutTests/fast/multicol/hit-test-gap-between-pages-flipped.html
index 158e573..3753cef 100644
--- a/LayoutTests/fast/multicol/hit-test-gap-between-pages-flipped.html
+++ b/LayoutTests/fast/multicol/hit-test-gap-between-pages-flipped.html
@@ -8,7 +8,7 @@
<script>
if (window.testRunner) {
testRunner.dumpAsText();
- internals.setPagination(document, "LeftToRightPaginated", 20, 100);
+ internals.setPagination("LeftToRightPaginated", 20, 100);
document.getElementById("result").innerText = document.caretRangeFromPoint(115, 550).startContainer === document.getElementById("target")
? "PASS" : "FAIL";
}
diff --git a/LayoutTests/fast/multicol/hit-test-gap-between-pages.html b/LayoutTests/fast/multicol/hit-test-gap-between-pages.html
index bce92b8..94041c4 100644
--- a/LayoutTests/fast/multicol/hit-test-gap-between-pages.html
+++ b/LayoutTests/fast/multicol/hit-test-gap-between-pages.html
@@ -8,7 +8,7 @@
<script>
if (window.testRunner) {
testRunner.dumpAsText();
- internals.setPagination(document, "LeftToRightPaginated", 20, 100);
+ internals.setPagination("LeftToRightPaginated", 20, 100);
document.getElementById("result").innerText = document.caretRangeFromPoint(115, 50).startContainer === document.getElementById("target")
? "PASS" : "FAIL";
}
diff --git a/LayoutTests/fast/multicol/pagination-h-horizontal-bt.html b/LayoutTests/fast/multicol/pagination-h-horizontal-bt.html
index 0764e5c..f36f0dc 100644
--- a/LayoutTests/fast/multicol/pagination-h-horizontal-bt.html
+++ b/LayoutTests/fast/multicol/pagination-h-horizontal-bt.html
@@ -2,7 +2,7 @@
<head>
<script>
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
+ internals.setPagination("LeftToRightPaginated", 0);
</script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination-h-horizontal-tb.html b/LayoutTests/fast/multicol/pagination-h-horizontal-tb.html
index b9828fa..ec6bfc9 100644
--- a/LayoutTests/fast/multicol/pagination-h-horizontal-tb.html
+++ b/LayoutTests/fast/multicol/pagination-h-horizontal-tb.html
@@ -2,7 +2,7 @@
<head>
<script>
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
+ internals.setPagination("LeftToRightPaginated", 0);
</script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination-h-vertical-lr.html b/LayoutTests/fast/multicol/pagination-h-vertical-lr.html
index e0e7300..1d670fa 100644
--- a/LayoutTests/fast/multicol/pagination-h-vertical-lr.html
+++ b/LayoutTests/fast/multicol/pagination-h-vertical-lr.html
@@ -2,7 +2,7 @@
<head>
<script>
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 0);
+ internals.setPagination("LeftToRightPaginated", 0);
</script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination-h-vertical-rl.html b/LayoutTests/fast/multicol/pagination-h-vertical-rl.html
index 6412da5..c979c42 100644
--- a/LayoutTests/fast/multicol/pagination-h-vertical-rl.html
+++ b/LayoutTests/fast/multicol/pagination-h-vertical-rl.html
@@ -2,7 +2,7 @@
<head>
<script>
if (window.internals)
- internals.setPagination(document, "RightToLeftPaginated", 0);
+ internals.setPagination("RightToLeftPaginated", 0);
</script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination-v-horizontal-bt.html b/LayoutTests/fast/multicol/pagination-v-horizontal-bt.html
index 9a67328..633c58f 100644
--- a/LayoutTests/fast/multicol/pagination-v-horizontal-bt.html
+++ b/LayoutTests/fast/multicol/pagination-v-horizontal-bt.html
@@ -2,7 +2,7 @@
<head>
<script>
if (window.internals)
- internals.setPagination(document, "BottomToTopPaginated", 0);
+ internals.setPagination("BottomToTopPaginated", 0);
</script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination-v-horizontal-tb.html b/LayoutTests/fast/multicol/pagination-v-horizontal-tb.html
index e0496f6..eca917a 100644
--- a/LayoutTests/fast/multicol/pagination-v-horizontal-tb.html
+++ b/LayoutTests/fast/multicol/pagination-v-horizontal-tb.html
@@ -2,7 +2,7 @@
<head>
<script>
if (window.internals)
- internals.setPagination(document, "TopToBottomPaginated", 0);
+ internals.setPagination("TopToBottomPaginated", 0);
</script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination-v-vertical-lr.html b/LayoutTests/fast/multicol/pagination-v-vertical-lr.html
index 0f8d3bb..65ea109 100644
--- a/LayoutTests/fast/multicol/pagination-v-vertical-lr.html
+++ b/LayoutTests/fast/multicol/pagination-v-vertical-lr.html
@@ -2,7 +2,7 @@
<head>
<script>
if (window.internals)
- internals.setPagination(document, "TopToBottomPaginated", 0);
+ internals.setPagination("TopToBottomPaginated", 0);
</script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination-v-vertical-rl.html b/LayoutTests/fast/multicol/pagination-v-vertical-rl.html
index a4c85f1..6c64dd7 100644
--- a/LayoutTests/fast/multicol/pagination-v-vertical-rl.html
+++ b/LayoutTests/fast/multicol/pagination-v-vertical-rl.html
@@ -2,7 +2,7 @@
<head>
<script>
if (window.internals)
- internals.setPagination(document, "TopToBottomPaginated", 0);
+ internals.setPagination("TopToBottomPaginated", 0);
</script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/BottomToTop-bt.html b/LayoutTests/fast/multicol/pagination/BottomToTop-bt.html
index 59148e2..2d5b09c 100644
--- a/LayoutTests/fast/multicol/pagination/BottomToTop-bt.html
+++ b/LayoutTests/fast/multicol/pagination/BottomToTop-bt.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "BottomToTopPaginated", 20, 180);
- </script>
+ internals.setPagination("BottomToTopPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/BottomToTop-lr.html b/LayoutTests/fast/multicol/pagination/BottomToTop-lr.html
index b2d63dd..faec0ca 100644
--- a/LayoutTests/fast/multicol/pagination/BottomToTop-lr.html
+++ b/LayoutTests/fast/multicol/pagination/BottomToTop-lr.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "BottomToTopPaginated", 20, 180);
- </script>
+ internals.setPagination("BottomToTopPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/BottomToTop-rl.html b/LayoutTests/fast/multicol/pagination/BottomToTop-rl.html
index 17a313c..f3a3bb1 100644
--- a/LayoutTests/fast/multicol/pagination/BottomToTop-rl.html
+++ b/LayoutTests/fast/multicol/pagination/BottomToTop-rl.html
@@ -17,7 +17,7 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "BottomToTopPaginated", 20, 180);
+ internals.setPagination("BottomToTopPaginated", 20, 180);
</script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/BottomToTop-tb.html b/LayoutTests/fast/multicol/pagination/BottomToTop-tb.html
index aa7be58..2df0e8b 100644
--- a/LayoutTests/fast/multicol/pagination/BottomToTop-tb.html
+++ b/LayoutTests/fast/multicol/pagination/BottomToTop-tb.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "BottomToTopPaginated", 20, 180);
- </script>
+ internals.setPagination("BottomToTopPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/LeftToRight-bt.html b/LayoutTests/fast/multicol/pagination/LeftToRight-bt.html
index bb26f03..ad4b55b 100644
--- a/LayoutTests/fast/multicol/pagination/LeftToRight-bt.html
+++ b/LayoutTests/fast/multicol/pagination/LeftToRight-bt.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 20, 180);
- </script>
+ internals.setPagination("LeftToRightPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/LeftToRight-lr.html b/LayoutTests/fast/multicol/pagination/LeftToRight-lr.html
index d1e4e98..6ab6d1a 100644
--- a/LayoutTests/fast/multicol/pagination/LeftToRight-lr.html
+++ b/LayoutTests/fast/multicol/pagination/LeftToRight-lr.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 20, 180);
- </script>
+ internals.setPagination("LeftToRightPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/LeftToRight-rl.html b/LayoutTests/fast/multicol/pagination/LeftToRight-rl.html
index 659aacb..d7605b0 100644
--- a/LayoutTests/fast/multicol/pagination/LeftToRight-rl.html
+++ b/LayoutTests/fast/multicol/pagination/LeftToRight-rl.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 20, 180);
- </script>
+ internals.setPagination("LeftToRightPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/LeftToRight-tb.html b/LayoutTests/fast/multicol/pagination/LeftToRight-tb.html
index 5059a6a..50caf40 100644
--- a/LayoutTests/fast/multicol/pagination/LeftToRight-tb.html
+++ b/LayoutTests/fast/multicol/pagination/LeftToRight-tb.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "LeftToRightPaginated", 20, 180);
- </script>
+ internals.setPagination("LeftToRightPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/RightToLeft-bt.html b/LayoutTests/fast/multicol/pagination/RightToLeft-bt.html
index a75be47..a8b5db4 100644
--- a/LayoutTests/fast/multicol/pagination/RightToLeft-bt.html
+++ b/LayoutTests/fast/multicol/pagination/RightToLeft-bt.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "RightToLeftPaginated", 20, 180);
- </script>
+ internals.setPagination("RightToLeftPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/RightToLeft-lr.html b/LayoutTests/fast/multicol/pagination/RightToLeft-lr.html
index 30b921c..e962049 100644
--- a/LayoutTests/fast/multicol/pagination/RightToLeft-lr.html
+++ b/LayoutTests/fast/multicol/pagination/RightToLeft-lr.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "RightToLeftPaginated", 20, 180);
- </script>
+ internals.setPagination("RightToLeftPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/RightToLeft-rl.html b/LayoutTests/fast/multicol/pagination/RightToLeft-rl.html
index f1e446f..af13d56 100644
--- a/LayoutTests/fast/multicol/pagination/RightToLeft-rl.html
+++ b/LayoutTests/fast/multicol/pagination/RightToLeft-rl.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "RightToLeftPaginated", 20, 180);
- </script>
+ internals.setPagination("RightToLeftPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/RightToLeft-tb.html b/LayoutTests/fast/multicol/pagination/RightToLeft-tb.html
index b10624792..4e5f45f 100644
--- a/LayoutTests/fast/multicol/pagination/RightToLeft-tb.html
+++ b/LayoutTests/fast/multicol/pagination/RightToLeft-tb.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "RightToLeftPaginated", 20, 180);
- </script>
+ internals.setPagination("RightToLeftPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/TopToBottom-bt.html b/LayoutTests/fast/multicol/pagination/TopToBottom-bt.html
index 8cf5759..f9fc82a 100644
--- a/LayoutTests/fast/multicol/pagination/TopToBottom-bt.html
+++ b/LayoutTests/fast/multicol/pagination/TopToBottom-bt.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "TopToBottomPaginated", 20, 180);
- </script>
+ internals.setPagination("TopToBottomPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/TopToBottom-lr.html b/LayoutTests/fast/multicol/pagination/TopToBottom-lr.html
index 8fb29e3..0244af5 100644
--- a/LayoutTests/fast/multicol/pagination/TopToBottom-lr.html
+++ b/LayoutTests/fast/multicol/pagination/TopToBottom-lr.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "TopToBottomPaginated", 20, 180);
- </script>
+ internals.setPagination("TopToBottomPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/TopToBottom-rl.html b/LayoutTests/fast/multicol/pagination/TopToBottom-rl.html
index 355c6bf..3a50b46 100644
--- a/LayoutTests/fast/multicol/pagination/TopToBottom-rl.html
+++ b/LayoutTests/fast/multicol/pagination/TopToBottom-rl.html
@@ -17,7 +17,7 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "TopToBottomPaginated", 20, 180);
+ internals.setPagination("TopToBottomPaginated", 20, 180);
</script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/pagination/TopToBottom-tb.html b/LayoutTests/fast/multicol/pagination/TopToBottom-tb.html
index 968057b..872c07b 100644
--- a/LayoutTests/fast/multicol/pagination/TopToBottom-tb.html
+++ b/LayoutTests/fast/multicol/pagination/TopToBottom-tb.html
@@ -17,8 +17,8 @@
</style>
<script>
if (window.internals)
- internals.setPagination(document, "TopToBottomPaginated", 20, 180);
- </script>
+ internals.setPagination("TopToBottomPaginated", 20, 180);
+ </script>
</head>
<body>
diff --git a/LayoutTests/fast/multicol/shrink-to-column-height-for-pagination.html b/LayoutTests/fast/multicol/shrink-to-column-height-for-pagination.html
index 5027934..e7a72b3 100644
--- a/LayoutTests/fast/multicol/shrink-to-column-height-for-pagination.html
+++ b/LayoutTests/fast/multicol/shrink-to-column-height-for-pagination.html
@@ -2,7 +2,7 @@
<head>
<script>
if (window.internals)
- internals.setPagination(document, "RightToLeftPaginated", 0, 400);
+ internals.setPagination("RightToLeftPaginated", 0, 400);
</script>
</head>
<body style="width:100%; height:100%;">
diff --git a/LayoutTests/fast/repaint/background-shorthand-with-gradient-and-height-changes.html b/LayoutTests/fast/repaint/background-shorthand-with-gradient-and-height-changes.html
index c8a88d4..1091e8f 100644
--- a/LayoutTests/fast/repaint/background-shorthand-with-gradient-and-height-changes.html
+++ b/LayoutTests/fast/repaint/background-shorthand-with-gradient-and-height-changes.html
@@ -51,7 +51,7 @@
if (!window.testRunner || !window.internals)
return;
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
window.testRunner.display();
}
@@ -59,8 +59,8 @@
if (!window.internals)
return;
- repaintRects = window.internals.repaintRectsAsText(document);
- window.internals.stopTrackingRepaints(document);
+ repaintRects = window.internals.repaintRectsAsText();
+ window.internals.stopTrackingRepaints();
shouldNotBe("repaintRects.indexOf('28 84')", "-1");
shouldNotBe("repaintRects.indexOf('8 84')", "-1");
finishJSTest();
diff --git a/LayoutTests/fast/repaint/obscured-background-no-repaint.html b/LayoutTests/fast/repaint/obscured-background-no-repaint.html
index 9ae941f..cea9719 100644
--- a/LayoutTests/fast/repaint/obscured-background-no-repaint.html
+++ b/LayoutTests/fast/repaint/obscured-background-no-repaint.html
@@ -49,15 +49,15 @@
function startTrackingRepaints()
{
document.body.offsetTop;
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
testRunner.display();
setTimeout(logRepaints, 200);
}
function logRepaints()
{
- repaintRects = window.internals.repaintRectsAsText(document);
- window.internals.stopTrackingRepaints(document);
+ repaintRects = window.internals.repaintRectsAsText();
+ window.internals.stopTrackingRepaints();
shouldBeEqualToString("repaintRects", "");
diff --git a/LayoutTests/fast/repaint/resources/text-based-repaint.js b/LayoutTests/fast/repaint/resources/text-based-repaint.js
index 8b83cfe..b94010e 100644
--- a/LayoutTests/fast/repaint/resources/text-based-repaint.js
+++ b/LayoutTests/fast/repaint/resources/text-based-repaint.js
@@ -8,16 +8,16 @@
else if (document.documentElement)
document.documentElement.offsetTop;
- window.internals.startTrackingRepaints(document);
+ window.internals.startTrackingRepaints();
repaintTest();
// force a style recalc.
var dummy = document.body.offsetTop;
- var repaintRects = window.internals.repaintRectsAsText(document);
+ var repaintRects = window.internals.repaintRectsAsText();
- window.internals.stopTrackingRepaints(document);
+ window.internals.stopTrackingRepaints();
var pre = document.createElement('pre');
document.body.appendChild(pre);
diff --git a/LayoutTests/fast/scrolling/resources/scrollable-area.js b/LayoutTests/fast/scrolling/resources/scrollable-area.js
index 43319c5..acc0372 100644
--- a/LayoutTests/fast/scrolling/resources/scrollable-area.js
+++ b/LayoutTests/fast/scrolling/resources/scrollable-area.js
@@ -23,11 +23,11 @@
var result = 0;
if (isDRT) {
- result = internals.numberOfScrollableAreas(document);
+ result = internals.numberOfScrollableAreas();
shouldBeTrue(stringify(result == referenceResult));
if (referenceIntermediateFunction) {
referenceIntermediateFunction();
- result = internals.numberOfScrollableAreas(document);
+ result = internals.numberOfScrollableAreas();
shouldBeTrue(stringify(result == referenceResult2));
}
diff --git a/LayoutTests/fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts.html b/LayoutTests/fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts.html
index 4d8b9bd..06dea7d 100644
--- a/LayoutTests/fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts.html
+++ b/LayoutTests/fast/viewport/scroll-delegates-switch-on-page-with-no-composition-mode-asserts.html
@@ -6,7 +6,7 @@
<script>
if (window.testRunner && window.internals && internals.setDelegatesScrolling) {
testRunner.dumpAsText();
- internals.setDelegatesScrolling(true, document);
+ internals.setDelegatesScrolling(true);
}
</script>
</body>
diff --git a/LayoutTests/fast/viewport/viewport-1.html b/LayoutTests/fast/viewport/viewport-1.html
index 13fee4d..2f6bc40 100644
--- a/LayoutTests/fast/viewport/viewport-1.html
+++ b/LayoutTests/fast/viewport/viewport-1.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-10.html b/LayoutTests/fast/viewport/viewport-10.html
index 1f61460..d308f00 100644
--- a/LayoutTests/fast/viewport/viewport-10.html
+++ b/LayoutTests/fast/viewport/viewport-10.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-100.html b/LayoutTests/fast/viewport/viewport-100.html
index a19811b..d40e304 100644
--- a/LayoutTests/fast/viewport/viewport-100.html
+++ b/LayoutTests/fast/viewport/viewport-100.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-101.html b/LayoutTests/fast/viewport/viewport-101.html
index 5c28a32..c4efc88 100644
--- a/LayoutTests/fast/viewport/viewport-101.html
+++ b/LayoutTests/fast/viewport/viewport-101.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-102.html b/LayoutTests/fast/viewport/viewport-102.html
index 49d996b..dfe5b67 100644
--- a/LayoutTests/fast/viewport/viewport-102.html
+++ b/LayoutTests/fast/viewport/viewport-102.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-103.html b/LayoutTests/fast/viewport/viewport-103.html
index d8079bc..3d07490 100644
--- a/LayoutTests/fast/viewport/viewport-103.html
+++ b/LayoutTests/fast/viewport/viewport-103.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-104.html b/LayoutTests/fast/viewport/viewport-104.html
index b4397b2..6f3ba04 100644
--- a/LayoutTests/fast/viewport/viewport-104.html
+++ b/LayoutTests/fast/viewport/viewport-104.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-105.html b/LayoutTests/fast/viewport/viewport-105.html
index ed5a766..cd848f2 100644
--- a/LayoutTests/fast/viewport/viewport-105.html
+++ b/LayoutTests/fast/viewport/viewport-105.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-106.html b/LayoutTests/fast/viewport/viewport-106.html
index 223152a..3af8401 100644
--- a/LayoutTests/fast/viewport/viewport-106.html
+++ b/LayoutTests/fast/viewport/viewport-106.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-107.html b/LayoutTests/fast/viewport/viewport-107.html
index cefe5e1..f51baec 100644
--- a/LayoutTests/fast/viewport/viewport-107.html
+++ b/LayoutTests/fast/viewport/viewport-107.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-108.html b/LayoutTests/fast/viewport/viewport-108.html
index 777aa96..d456ab4 100644
--- a/LayoutTests/fast/viewport/viewport-108.html
+++ b/LayoutTests/fast/viewport/viewport-108.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-109.html b/LayoutTests/fast/viewport/viewport-109.html
index fd9b341..4e87a08 100644
--- a/LayoutTests/fast/viewport/viewport-109.html
+++ b/LayoutTests/fast/viewport/viewport-109.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-11.html b/LayoutTests/fast/viewport/viewport-11.html
index 922b421..15ccfc0 100644
--- a/LayoutTests/fast/viewport/viewport-11.html
+++ b/LayoutTests/fast/viewport/viewport-11.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-110.html b/LayoutTests/fast/viewport/viewport-110.html
index 88e52f6..a6e45b1 100644
--- a/LayoutTests/fast/viewport/viewport-110.html
+++ b/LayoutTests/fast/viewport/viewport-110.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-111.html b/LayoutTests/fast/viewport/viewport-111.html
index 13f2074..2c63585 100644
--- a/LayoutTests/fast/viewport/viewport-111.html
+++ b/LayoutTests/fast/viewport/viewport-111.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-112.html b/LayoutTests/fast/viewport/viewport-112.html
index d01d1e6..e6567c7 100644
--- a/LayoutTests/fast/viewport/viewport-112.html
+++ b/LayoutTests/fast/viewport/viewport-112.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-113.html b/LayoutTests/fast/viewport/viewport-113.html
index e44e800..15bd6b4 100644
--- a/LayoutTests/fast/viewport/viewport-113.html
+++ b/LayoutTests/fast/viewport/viewport-113.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-114.html b/LayoutTests/fast/viewport/viewport-114.html
index a5b3caf..bbbaa4d 100644
--- a/LayoutTests/fast/viewport/viewport-114.html
+++ b/LayoutTests/fast/viewport/viewport-114.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-115.html b/LayoutTests/fast/viewport/viewport-115.html
index 819b5591..f74772f 100644
--- a/LayoutTests/fast/viewport/viewport-115.html
+++ b/LayoutTests/fast/viewport/viewport-115.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-116.html b/LayoutTests/fast/viewport/viewport-116.html
index bcf5aea..8a1b305 100644
--- a/LayoutTests/fast/viewport/viewport-116.html
+++ b/LayoutTests/fast/viewport/viewport-116.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-117.html b/LayoutTests/fast/viewport/viewport-117.html
index 3c7510f..3ccaebb 100644
--- a/LayoutTests/fast/viewport/viewport-117.html
+++ b/LayoutTests/fast/viewport/viewport-117.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-118.html b/LayoutTests/fast/viewport/viewport-118.html
index 9c6ac70..6ae82c5 100644
--- a/LayoutTests/fast/viewport/viewport-118.html
+++ b/LayoutTests/fast/viewport/viewport-118.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-119.html b/LayoutTests/fast/viewport/viewport-119.html
index 09cc764..0ae049b 100644
--- a/LayoutTests/fast/viewport/viewport-119.html
+++ b/LayoutTests/fast/viewport/viewport-119.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-12.html b/LayoutTests/fast/viewport/viewport-12.html
index ae3a229..18a09a66 100644
--- a/LayoutTests/fast/viewport/viewport-12.html
+++ b/LayoutTests/fast/viewport/viewport-12.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 230, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 230, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-120.html b/LayoutTests/fast/viewport/viewport-120.html
index 3dbaaf8..15ac54b 100644
--- a/LayoutTests/fast/viewport/viewport-120.html
+++ b/LayoutTests/fast/viewport/viewport-120.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-121.html b/LayoutTests/fast/viewport/viewport-121.html
index 816f8ad..2f91331 100644
--- a/LayoutTests/fast/viewport/viewport-121.html
+++ b/LayoutTests/fast/viewport/viewport-121.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-122.html b/LayoutTests/fast/viewport/viewport-122.html
index a68af92..1c6fac7 100644
--- a/LayoutTests/fast/viewport/viewport-122.html
+++ b/LayoutTests/fast/viewport/viewport-122.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-123.html b/LayoutTests/fast/viewport/viewport-123.html
index c6c39f2..910c1dd 100644
--- a/LayoutTests/fast/viewport/viewport-123.html
+++ b/LayoutTests/fast/viewport/viewport-123.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-124.html b/LayoutTests/fast/viewport/viewport-124.html
index f0f1cfa..6b7db77 100644
--- a/LayoutTests/fast/viewport/viewport-124.html
+++ b/LayoutTests/fast/viewport/viewport-124.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-125.html b/LayoutTests/fast/viewport/viewport-125.html
index 7f4bb78..ebb25fc 100644
--- a/LayoutTests/fast/viewport/viewport-125.html
+++ b/LayoutTests/fast/viewport/viewport-125.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-126.html b/LayoutTests/fast/viewport/viewport-126.html
index b1b0ed3..588ffbc 100644
--- a/LayoutTests/fast/viewport/viewport-126.html
+++ b/LayoutTests/fast/viewport/viewport-126.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-127.html b/LayoutTests/fast/viewport/viewport-127.html
index 89b2b55..38fe875 100644
--- a/LayoutTests/fast/viewport/viewport-127.html
+++ b/LayoutTests/fast/viewport/viewport-127.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-128.html b/LayoutTests/fast/viewport/viewport-128.html
index 0ad6c61..1e86afb 100644
--- a/LayoutTests/fast/viewport/viewport-128.html
+++ b/LayoutTests/fast/viewport/viewport-128.html
@@ -20,7 +20,7 @@
} else {
// if this point is reached the page is comming from the page cache.
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
setTimeout(function() { if (window.testRunner) testRunner.notifyDone(); }, 0);
}
diff --git a/LayoutTests/fast/viewport/viewport-129.html b/LayoutTests/fast/viewport/viewport-129.html
index 3091cdb..5ac0e3a 100644
--- a/LayoutTests/fast/viewport/viewport-129.html
+++ b/LayoutTests/fast/viewport/viewport-129.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-13.html b/LayoutTests/fast/viewport/viewport-13.html
index 982a0d7..1345f799 100644
--- a/LayoutTests/fast/viewport/viewport-13.html
+++ b/LayoutTests/fast/viewport/viewport-13.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-130.html b/LayoutTests/fast/viewport/viewport-130.html
index 8604ed9..633a4ce 100644
--- a/LayoutTests/fast/viewport/viewport-130.html
+++ b/LayoutTests/fast/viewport/viewport-130.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-131.html b/LayoutTests/fast/viewport/viewport-131.html
index e238982..6ba4c54 100644
--- a/LayoutTests/fast/viewport/viewport-131.html
+++ b/LayoutTests/fast/viewport/viewport-131.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-132.html b/LayoutTests/fast/viewport/viewport-132.html
index c712c54..87c3fd9 100644
--- a/LayoutTests/fast/viewport/viewport-132.html
+++ b/LayoutTests/fast/viewport/viewport-132.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-133.html b/LayoutTests/fast/viewport/viewport-133.html
index 20daff5..b19987e 100644
--- a/LayoutTests/fast/viewport/viewport-133.html
+++ b/LayoutTests/fast/viewport/viewport-133.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-134.html b/LayoutTests/fast/viewport/viewport-134.html
index fcad79b..aa85799 100644
--- a/LayoutTests/fast/viewport/viewport-134.html
+++ b/LayoutTests/fast/viewport/viewport-134.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-14.html b/LayoutTests/fast/viewport/viewport-14.html
index ca07263..9547e6f 100644
--- a/LayoutTests/fast/viewport/viewport-14.html
+++ b/LayoutTests/fast/viewport/viewport-14.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-15.html b/LayoutTests/fast/viewport/viewport-15.html
index 6e08875..ce8091d 100644
--- a/LayoutTests/fast/viewport/viewport-15.html
+++ b/LayoutTests/fast/viewport/viewport-15.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-16.html b/LayoutTests/fast/viewport/viewport-16.html
index 2376429..77b743d 100644
--- a/LayoutTests/fast/viewport/viewport-16.html
+++ b/LayoutTests/fast/viewport/viewport-16.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-17.html b/LayoutTests/fast/viewport/viewport-17.html
index 27ddbc8..223d926 100644
--- a/LayoutTests/fast/viewport/viewport-17.html
+++ b/LayoutTests/fast/viewport/viewport-17.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-18.html b/LayoutTests/fast/viewport/viewport-18.html
index 8ea60a2..5fa60ed 100644
--- a/LayoutTests/fast/viewport/viewport-18.html
+++ b/LayoutTests/fast/viewport/viewport-18.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-19.html b/LayoutTests/fast/viewport/viewport-19.html
index 2cfe96e..6c4614e 100644
--- a/LayoutTests/fast/viewport/viewport-19.html
+++ b/LayoutTests/fast/viewport/viewport-19.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-2.html b/LayoutTests/fast/viewport/viewport-2.html
index 47bd03a..3754ac8 100644
--- a/LayoutTests/fast/viewport/viewport-2.html
+++ b/LayoutTests/fast/viewport/viewport-2.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-20.html b/LayoutTests/fast/viewport/viewport-20.html
index 12cb992..5b760a5 100644
--- a/LayoutTests/fast/viewport/viewport-20.html
+++ b/LayoutTests/fast/viewport/viewport-20.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-21.html b/LayoutTests/fast/viewport/viewport-21.html
index b9edf42..98d1545 100644
--- a/LayoutTests/fast/viewport/viewport-21.html
+++ b/LayoutTests/fast/viewport/viewport-21.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-22.html b/LayoutTests/fast/viewport/viewport-22.html
index cd69dd2..3b24262 100644
--- a/LayoutTests/fast/viewport/viewport-22.html
+++ b/LayoutTests/fast/viewport/viewport-22.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-23.html b/LayoutTests/fast/viewport/viewport-23.html
index e645a4c..bd024d3 100644
--- a/LayoutTests/fast/viewport/viewport-23.html
+++ b/LayoutTests/fast/viewport/viewport-23.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-24.html b/LayoutTests/fast/viewport/viewport-24.html
index a7fd6fd..40dfa18 100644
--- a/LayoutTests/fast/viewport/viewport-24.html
+++ b/LayoutTests/fast/viewport/viewport-24.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-25.html b/LayoutTests/fast/viewport/viewport-25.html
index 644ff89..17427fc 100644
--- a/LayoutTests/fast/viewport/viewport-25.html
+++ b/LayoutTests/fast/viewport/viewport-25.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-26.html b/LayoutTests/fast/viewport/viewport-26.html
index 63cc8d9..8bd8b09 100644
--- a/LayoutTests/fast/viewport/viewport-26.html
+++ b/LayoutTests/fast/viewport/viewport-26.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-27.html b/LayoutTests/fast/viewport/viewport-27.html
index 649b8a1..0fde076 100644
--- a/LayoutTests/fast/viewport/viewport-27.html
+++ b/LayoutTests/fast/viewport/viewport-27.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-28.html b/LayoutTests/fast/viewport/viewport-28.html
index 188e349..e7ffb59 100644
--- a/LayoutTests/fast/viewport/viewport-28.html
+++ b/LayoutTests/fast/viewport/viewport-28.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-29.html b/LayoutTests/fast/viewport/viewport-29.html
index df22de2..4149512 100644
--- a/LayoutTests/fast/viewport/viewport-29.html
+++ b/LayoutTests/fast/viewport/viewport-29.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-3.html b/LayoutTests/fast/viewport/viewport-3.html
index 97dbdfc..f5ce915 100644
--- a/LayoutTests/fast/viewport/viewport-3.html
+++ b/LayoutTests/fast/viewport/viewport-3.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-30.html b/LayoutTests/fast/viewport/viewport-30.html
index c8d2935..d0c47882 100644
--- a/LayoutTests/fast/viewport/viewport-30.html
+++ b/LayoutTests/fast/viewport/viewport-30.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-31.html b/LayoutTests/fast/viewport/viewport-31.html
index 03e17b3..0e79b4b 100644
--- a/LayoutTests/fast/viewport/viewport-31.html
+++ b/LayoutTests/fast/viewport/viewport-31.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-32.html b/LayoutTests/fast/viewport/viewport-32.html
index bb418d3..45edfe1 100644
--- a/LayoutTests/fast/viewport/viewport-32.html
+++ b/LayoutTests/fast/viewport/viewport-32.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-33.html b/LayoutTests/fast/viewport/viewport-33.html
index 0049f86..888d9ac 100644
--- a/LayoutTests/fast/viewport/viewport-33.html
+++ b/LayoutTests/fast/viewport/viewport-33.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-34.html b/LayoutTests/fast/viewport/viewport-34.html
index 9a75091..cf9619e 100644
--- a/LayoutTests/fast/viewport/viewport-34.html
+++ b/LayoutTests/fast/viewport/viewport-34.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-35.html b/LayoutTests/fast/viewport/viewport-35.html
index 8bbd389..0849b48 100644
--- a/LayoutTests/fast/viewport/viewport-35.html
+++ b/LayoutTests/fast/viewport/viewport-35.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-36.html b/LayoutTests/fast/viewport/viewport-36.html
index 5b8b01b..e8b69c9 100644
--- a/LayoutTests/fast/viewport/viewport-36.html
+++ b/LayoutTests/fast/viewport/viewport-36.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-37.html b/LayoutTests/fast/viewport/viewport-37.html
index 92a3745..0636e10 100644
--- a/LayoutTests/fast/viewport/viewport-37.html
+++ b/LayoutTests/fast/viewport/viewport-37.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-38.html b/LayoutTests/fast/viewport/viewport-38.html
index 47facdf..a980828 100644
--- a/LayoutTests/fast/viewport/viewport-38.html
+++ b/LayoutTests/fast/viewport/viewport-38.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-39.html b/LayoutTests/fast/viewport/viewport-39.html
index afaa6ac..42efa58 100644
--- a/LayoutTests/fast/viewport/viewport-39.html
+++ b/LayoutTests/fast/viewport/viewport-39.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-4.html b/LayoutTests/fast/viewport/viewport-4.html
index dc236cf..914c5b4 100644
--- a/LayoutTests/fast/viewport/viewport-4.html
+++ b/LayoutTests/fast/viewport/viewport-4.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-40.html b/LayoutTests/fast/viewport/viewport-40.html
index 7b72698..fbc5b99 100644
--- a/LayoutTests/fast/viewport/viewport-40.html
+++ b/LayoutTests/fast/viewport/viewport-40.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-41.html b/LayoutTests/fast/viewport/viewport-41.html
index ea5dafa..2561326 100644
--- a/LayoutTests/fast/viewport/viewport-41.html
+++ b/LayoutTests/fast/viewport/viewport-41.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-42.html b/LayoutTests/fast/viewport/viewport-42.html
index 93aefd8..f4072a9 100644
--- a/LayoutTests/fast/viewport/viewport-42.html
+++ b/LayoutTests/fast/viewport/viewport-42.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-43.html b/LayoutTests/fast/viewport/viewport-43.html
index ef56f5d..ba4a4c6 100644
--- a/LayoutTests/fast/viewport/viewport-43.html
+++ b/LayoutTests/fast/viewport/viewport-43.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-44.html b/LayoutTests/fast/viewport/viewport-44.html
index 88d2e7a..a7b309b 100644
--- a/LayoutTests/fast/viewport/viewport-44.html
+++ b/LayoutTests/fast/viewport/viewport-44.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-45.html b/LayoutTests/fast/viewport/viewport-45.html
index 6e69deb..279646e 100644
--- a/LayoutTests/fast/viewport/viewport-45.html
+++ b/LayoutTests/fast/viewport/viewport-45.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-46.html b/LayoutTests/fast/viewport/viewport-46.html
index 4b11a07..8f8a1a5 100644
--- a/LayoutTests/fast/viewport/viewport-46.html
+++ b/LayoutTests/fast/viewport/viewport-46.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-47.html b/LayoutTests/fast/viewport/viewport-47.html
index e32f3c1..2904c32 100644
--- a/LayoutTests/fast/viewport/viewport-47.html
+++ b/LayoutTests/fast/viewport/viewport-47.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-48.html b/LayoutTests/fast/viewport/viewport-48.html
index 34db34d..56344c8 100644
--- a/LayoutTests/fast/viewport/viewport-48.html
+++ b/LayoutTests/fast/viewport/viewport-48.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-49.html b/LayoutTests/fast/viewport/viewport-49.html
index ddffffc..c97b35b 100644
--- a/LayoutTests/fast/viewport/viewport-49.html
+++ b/LayoutTests/fast/viewport/viewport-49.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-5.html b/LayoutTests/fast/viewport/viewport-5.html
index 930b9fa..9d4a610 100644
--- a/LayoutTests/fast/viewport/viewport-5.html
+++ b/LayoutTests/fast/viewport/viewport-5.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-50.html b/LayoutTests/fast/viewport/viewport-50.html
index 37c53ed..750ad5e 100644
--- a/LayoutTests/fast/viewport/viewport-50.html
+++ b/LayoutTests/fast/viewport/viewport-50.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-51.html b/LayoutTests/fast/viewport/viewport-51.html
index e2afa85..f375d6b 100644
--- a/LayoutTests/fast/viewport/viewport-51.html
+++ b/LayoutTests/fast/viewport/viewport-51.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-52.html b/LayoutTests/fast/viewport/viewport-52.html
index 52c50fd..82556f9 100644
--- a/LayoutTests/fast/viewport/viewport-52.html
+++ b/LayoutTests/fast/viewport/viewport-52.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-53.html b/LayoutTests/fast/viewport/viewport-53.html
index eb1dde6..19f5d78 100644
--- a/LayoutTests/fast/viewport/viewport-53.html
+++ b/LayoutTests/fast/viewport/viewport-53.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-54.html b/LayoutTests/fast/viewport/viewport-54.html
index afbe815..c373014 100644
--- a/LayoutTests/fast/viewport/viewport-54.html
+++ b/LayoutTests/fast/viewport/viewport-54.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-55.html b/LayoutTests/fast/viewport/viewport-55.html
index a53988c..766c9cc 100644
--- a/LayoutTests/fast/viewport/viewport-55.html
+++ b/LayoutTests/fast/viewport/viewport-55.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-56.html b/LayoutTests/fast/viewport/viewport-56.html
index 5a4925f..8bae9f96 100644
--- a/LayoutTests/fast/viewport/viewport-56.html
+++ b/LayoutTests/fast/viewport/viewport-56.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-57.html b/LayoutTests/fast/viewport/viewport-57.html
index f17a650..293baa4 100644
--- a/LayoutTests/fast/viewport/viewport-57.html
+++ b/LayoutTests/fast/viewport/viewport-57.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-58.html b/LayoutTests/fast/viewport/viewport-58.html
index 730897f..a48e333 100644
--- a/LayoutTests/fast/viewport/viewport-58.html
+++ b/LayoutTests/fast/viewport/viewport-58.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-59.html b/LayoutTests/fast/viewport/viewport-59.html
index 1dd6c61..62ece43 100644
--- a/LayoutTests/fast/viewport/viewport-59.html
+++ b/LayoutTests/fast/viewport/viewport-59.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-6.html b/LayoutTests/fast/viewport/viewport-6.html
index a60ff2b..5496d65 100644
--- a/LayoutTests/fast/viewport/viewport-6.html
+++ b/LayoutTests/fast/viewport/viewport-6.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-60.html b/LayoutTests/fast/viewport/viewport-60.html
index 27a7ad5..1fb9ccc 100644
--- a/LayoutTests/fast/viewport/viewport-60.html
+++ b/LayoutTests/fast/viewport/viewport-60.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-61.html b/LayoutTests/fast/viewport/viewport-61.html
index f1a6bba..5d36324 100644
--- a/LayoutTests/fast/viewport/viewport-61.html
+++ b/LayoutTests/fast/viewport/viewport-61.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-62.html b/LayoutTests/fast/viewport/viewport-62.html
index 7046139..53c27fb 100644
--- a/LayoutTests/fast/viewport/viewport-62.html
+++ b/LayoutTests/fast/viewport/viewport-62.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-63.html b/LayoutTests/fast/viewport/viewport-63.html
index a7d1620..70e1f74 100644
--- a/LayoutTests/fast/viewport/viewport-63.html
+++ b/LayoutTests/fast/viewport/viewport-63.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-64.html b/LayoutTests/fast/viewport/viewport-64.html
index e35377e..169964b 100644
--- a/LayoutTests/fast/viewport/viewport-64.html
+++ b/LayoutTests/fast/viewport/viewport-64.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-65.html b/LayoutTests/fast/viewport/viewport-65.html
index b748306..e1f41b5 100644
--- a/LayoutTests/fast/viewport/viewport-65.html
+++ b/LayoutTests/fast/viewport/viewport-65.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-66.html b/LayoutTests/fast/viewport/viewport-66.html
index 3322ace..8aa14fe 100644
--- a/LayoutTests/fast/viewport/viewport-66.html
+++ b/LayoutTests/fast/viewport/viewport-66.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-67.html b/LayoutTests/fast/viewport/viewport-67.html
index 4f03401..ea50558 100644
--- a/LayoutTests/fast/viewport/viewport-67.html
+++ b/LayoutTests/fast/viewport/viewport-67.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-68.html b/LayoutTests/fast/viewport/viewport-68.html
index 29a9cac..9443c04 100644
--- a/LayoutTests/fast/viewport/viewport-68.html
+++ b/LayoutTests/fast/viewport/viewport-68.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-69.html b/LayoutTests/fast/viewport/viewport-69.html
index a6f465e..593377e 100644
--- a/LayoutTests/fast/viewport/viewport-69.html
+++ b/LayoutTests/fast/viewport/viewport-69.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-7.html b/LayoutTests/fast/viewport/viewport-7.html
index 3ac8592..7ad45bd 100644
--- a/LayoutTests/fast/viewport/viewport-7.html
+++ b/LayoutTests/fast/viewport/viewport-7.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-70.html b/LayoutTests/fast/viewport/viewport-70.html
index 1e62db7..ba559dd 100644
--- a/LayoutTests/fast/viewport/viewport-70.html
+++ b/LayoutTests/fast/viewport/viewport-70.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-71.html b/LayoutTests/fast/viewport/viewport-71.html
index e5d43dd..3b12fb3 100644
--- a/LayoutTests/fast/viewport/viewport-71.html
+++ b/LayoutTests/fast/viewport/viewport-71.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-72.html b/LayoutTests/fast/viewport/viewport-72.html
index bd754f1..5800d43 100644
--- a/LayoutTests/fast/viewport/viewport-72.html
+++ b/LayoutTests/fast/viewport/viewport-72.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-73.html b/LayoutTests/fast/viewport/viewport-73.html
index 2e3da95..910bdc7 100644
--- a/LayoutTests/fast/viewport/viewport-73.html
+++ b/LayoutTests/fast/viewport/viewport-73.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-74.html b/LayoutTests/fast/viewport/viewport-74.html
index 009b6e3..aae4760 100644
--- a/LayoutTests/fast/viewport/viewport-74.html
+++ b/LayoutTests/fast/viewport/viewport-74.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-75.html b/LayoutTests/fast/viewport/viewport-75.html
index 4839eff..d968d3b 100644
--- a/LayoutTests/fast/viewport/viewport-75.html
+++ b/LayoutTests/fast/viewport/viewport-75.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-76.html b/LayoutTests/fast/viewport/viewport-76.html
index 705af09..0a1f655 100644
--- a/LayoutTests/fast/viewport/viewport-76.html
+++ b/LayoutTests/fast/viewport/viewport-76.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-77.html b/LayoutTests/fast/viewport/viewport-77.html
index cb11700..900bea7 100644
--- a/LayoutTests/fast/viewport/viewport-77.html
+++ b/LayoutTests/fast/viewport/viewport-77.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-78.html b/LayoutTests/fast/viewport/viewport-78.html
index 3484162..3da78fa 100644
--- a/LayoutTests/fast/viewport/viewport-78.html
+++ b/LayoutTests/fast/viewport/viewport-78.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-79.html b/LayoutTests/fast/viewport/viewport-79.html
index ed6f536..2960df6 100644
--- a/LayoutTests/fast/viewport/viewport-79.html
+++ b/LayoutTests/fast/viewport/viewport-79.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-8.html b/LayoutTests/fast/viewport/viewport-8.html
index 18a7d23..daa6d27 100644
--- a/LayoutTests/fast/viewport/viewport-8.html
+++ b/LayoutTests/fast/viewport/viewport-8.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-80.html b/LayoutTests/fast/viewport/viewport-80.html
index 50dd408..2bcf5e4 100644
--- a/LayoutTests/fast/viewport/viewport-80.html
+++ b/LayoutTests/fast/viewport/viewport-80.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-81.html b/LayoutTests/fast/viewport/viewport-81.html
index 7aa3cb3..6b9e488 100644
--- a/LayoutTests/fast/viewport/viewport-81.html
+++ b/LayoutTests/fast/viewport/viewport-81.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-82.html b/LayoutTests/fast/viewport/viewport-82.html
index 385f5a3..46ba132 100644
--- a/LayoutTests/fast/viewport/viewport-82.html
+++ b/LayoutTests/fast/viewport/viewport-82.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-83.html b/LayoutTests/fast/viewport/viewport-83.html
index d9eb5c1..6326a21 100644
--- a/LayoutTests/fast/viewport/viewport-83.html
+++ b/LayoutTests/fast/viewport/viewport-83.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-84.html b/LayoutTests/fast/viewport/viewport-84.html
index 421ea15..9e389a8 100644
--- a/LayoutTests/fast/viewport/viewport-84.html
+++ b/LayoutTests/fast/viewport/viewport-84.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-85.html b/LayoutTests/fast/viewport/viewport-85.html
index c1642b7..ea03535 100644
--- a/LayoutTests/fast/viewport/viewport-85.html
+++ b/LayoutTests/fast/viewport/viewport-85.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-86.html b/LayoutTests/fast/viewport/viewport-86.html
index 82627c7..2e8ba72 100644
--- a/LayoutTests/fast/viewport/viewport-86.html
+++ b/LayoutTests/fast/viewport/viewport-86.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-87.html b/LayoutTests/fast/viewport/viewport-87.html
index b1b25ec..9f297e8 100644
--- a/LayoutTests/fast/viewport/viewport-87.html
+++ b/LayoutTests/fast/viewport/viewport-87.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-88.html b/LayoutTests/fast/viewport/viewport-88.html
index 5f678d1..edcb78d 100644
--- a/LayoutTests/fast/viewport/viewport-88.html
+++ b/LayoutTests/fast/viewport/viewport-88.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-9.html b/LayoutTests/fast/viewport/viewport-9.html
index a9f606f..db14884 100644
--- a/LayoutTests/fast/viewport/viewport-9.html
+++ b/LayoutTests/fast/viewport/viewport-9.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-90.html b/LayoutTests/fast/viewport/viewport-90.html
index 7e46989..8e9f34f 100644
--- a/LayoutTests/fast/viewport/viewport-90.html
+++ b/LayoutTests/fast/viewport/viewport-90.html
@@ -9,7 +9,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-91.html b/LayoutTests/fast/viewport/viewport-91.html
index f085b96..d4c20e9 100644
--- a/LayoutTests/fast/viewport/viewport-91.html
+++ b/LayoutTests/fast/viewport/viewport-91.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1.5, 480, 564, 480, 534));
+ alert(internals.configurationForViewport(1.5, 480, 564, 480, 534));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-handheldfriendly.html b/LayoutTests/fast/viewport/viewport-legacy-handheldfriendly.html
index 40662c7..dbff57a 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-handheldfriendly.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-handheldfriendly.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-2.html b/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-2.html
index ab70702..c997aa3 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-2.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-2.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-3.html b/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-3.html
index d969079..baae669 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-3.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized-3.html
@@ -6,7 +6,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized.html b/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized.html
index a4b23e8..1a85b60 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-mobileoptimized.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-ordering-1.html b/LayoutTests/fast/viewport/viewport-legacy-ordering-1.html
index 0f214f9..46801c7 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-ordering-1.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-ordering-1.html
@@ -6,7 +6,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-ordering-2.html b/LayoutTests/fast/viewport/viewport-legacy-ordering-2.html
index d3ced89..b3e58a2 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-ordering-2.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-ordering-2.html
@@ -6,7 +6,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-ordering-3.html b/LayoutTests/fast/viewport/viewport-legacy-ordering-3.html
index f17c76e..8c07809 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-ordering-3.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-ordering-3.html
@@ -6,7 +6,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-ordering-4.html b/LayoutTests/fast/viewport/viewport-legacy-ordering-4.html
index d6147b2..4146e8b 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-ordering-4.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-ordering-4.html
@@ -6,7 +6,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-ordering-5.html b/LayoutTests/fast/viewport/viewport-legacy-ordering-5.html
index 3cda32d..e4fc7f0 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-ordering-5.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-ordering-5.html
@@ -6,7 +6,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-ordering-6.html b/LayoutTests/fast/viewport/viewport-legacy-ordering-6.html
index 5c65316..7feb535 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-ordering-6.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-ordering-6.html
@@ -6,7 +6,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-ordering-7.html b/LayoutTests/fast/viewport/viewport-legacy-ordering-7.html
index b54fde1..96ecb27 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-ordering-7.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-ordering-7.html
@@ -7,7 +7,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-ordering-8.html b/LayoutTests/fast/viewport/viewport-legacy-ordering-8.html
index 9035489..285c13a 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-ordering-8.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-ordering-8.html
@@ -7,7 +7,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-ordering-9.html b/LayoutTests/fast/viewport/viewport-legacy-ordering-9.html
index 2719ae2..3d7a140 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-ordering-9.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-ordering-9.html
@@ -7,7 +7,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-misplaced-doctype.html b/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-misplaced-doctype.html
index 0df9d13..206a249 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-misplaced-doctype.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-misplaced-doctype.html
@@ -24,7 +24,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-ordering.html b/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-ordering.html
index e4934ea..5b81516 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-ordering.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-ordering.html
@@ -21,7 +21,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-remove-and-add.html b/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-remove-and-add.html
index 8294307..6762631 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-remove-and-add.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp-remove-and-add.html
@@ -19,18 +19,18 @@
testRunner.dumpAsText();
if (window.internals)
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
var originalDoctype = document.doctype;
document.removeChild(originalDoctype);
if (window.internals)
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport( 1, 320, 480, 320, 352));
document.insertBefore(originalDoctype, document.firstChild);
if (window.internals)
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport( 1, 320, 480, 320, 352));
}
</script>
</head>
diff --git a/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp.html b/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp.html
index 903f2c0..1b0dc97 100644
--- a/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp.html
+++ b/LayoutTests/fast/viewport/viewport-legacy-xhtmlmp.html
@@ -17,7 +17,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-limits-adjusted-for-no-user-scale-control.html b/LayoutTests/fast/viewport/viewport-limits-adjusted-for-no-user-scale-control.html
index 73958f9..1e13326 100644
--- a/LayoutTests/fast/viewport/viewport-limits-adjusted-for-no-user-scale-control.html
+++ b/LayoutTests/fast/viewport/viewport-limits-adjusted-for-no-user-scale-control.html
@@ -4,7 +4,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- var viewportConfiguation = internals.configurationForViewport(document, 1, 320, 480, 320, 352);
+ var viewportConfiguation = internals.configurationForViewport(1, 320, 480, 320, 352);
if (/userScalable true/.test(viewportConfiguation))
alert("PASS");
else
diff --git a/LayoutTests/fast/viewport/viewport-limits-adjusted-for-no-user-scale.html b/LayoutTests/fast/viewport/viewport-limits-adjusted-for-no-user-scale.html
index c505a36..0199c93 100644
--- a/LayoutTests/fast/viewport/viewport-limits-adjusted-for-no-user-scale.html
+++ b/LayoutTests/fast/viewport/viewport-limits-adjusted-for-no-user-scale.html
@@ -4,7 +4,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- var viewportConfiguation = internals.configurationForViewport(document, 1, 320, 480, 320, 352);
+ var viewportConfiguation = internals.configurationForViewport(1, 320, 480, 320, 352);
if (/userScalable false/.test(viewportConfiguation))
alert("PASS");
else
diff --git a/LayoutTests/fast/viewport/viewport-warnings-1.html b/LayoutTests/fast/viewport/viewport-warnings-1.html
index 0e90314..9838b46 100644
--- a/LayoutTests/fast/viewport/viewport-warnings-1.html
+++ b/LayoutTests/fast/viewport/viewport-warnings-1.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-warnings-2.html b/LayoutTests/fast/viewport/viewport-warnings-2.html
index eeefe4b..4b10cded 100644
--- a/LayoutTests/fast/viewport/viewport-warnings-2.html
+++ b/LayoutTests/fast/viewport/viewport-warnings-2.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-warnings-3.html b/LayoutTests/fast/viewport/viewport-warnings-3.html
index 06f7607..de5b67f 100644
--- a/LayoutTests/fast/viewport/viewport-warnings-3.html
+++ b/LayoutTests/fast/viewport/viewport-warnings-3.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-warnings-4.html b/LayoutTests/fast/viewport/viewport-warnings-4.html
index 1f14491..5febf96 100644
--- a/LayoutTests/fast/viewport/viewport-warnings-4.html
+++ b/LayoutTests/fast/viewport/viewport-warnings-4.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-warnings-5.html b/LayoutTests/fast/viewport/viewport-warnings-5.html
index 3169d29..159aa7d 100644
--- a/LayoutTests/fast/viewport/viewport-warnings-5.html
+++ b/LayoutTests/fast/viewport/viewport-warnings-5.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fast/viewport/viewport-warnings-6.html b/LayoutTests/fast/viewport/viewport-warnings-6.html
index 90cd1e1..d7e35b5 100644
--- a/LayoutTests/fast/viewport/viewport-warnings-6.html
+++ b/LayoutTests/fast/viewport/viewport-warnings-6.html
@@ -5,7 +5,7 @@
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
- alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352));
+ alert(internals.configurationForViewport(1, 320, 480, 320, 352));
}
}
</script>
diff --git a/LayoutTests/fullscreen/video-cursor-auto-hide-expected.txt b/LayoutTests/fullscreen/video-cursor-auto-hide-expected.txt
index 3ebefde..8a61b26 100644
--- a/LayoutTests/fullscreen/video-cursor-auto-hide-expected.txt
+++ b/LayoutTests/fullscreen/video-cursor-auto-hide-expected.txt
@@ -1,7 +1,7 @@
This tests that the cursor hides after hovering over a video element in full screen mode.
EVENT(webkitfullscreenchange)
-EXPECTED (window.internals.getCurrentCursorInfo(document) == 'type=Pointer hotSpot=0,0') OK
-EXPECTED (window.internals.getCurrentCursorInfo(document) == 'type=None hotSpot=0,0') OK
+EXPECTED (window.internals.getCurrentCursorInfo() == 'type=Pointer hotSpot=0,0') OK
+EXPECTED (window.internals.getCurrentCursorInfo() == 'type=None hotSpot=0,0') OK
END OF TEST
diff --git a/LayoutTests/fullscreen/video-cursor-auto-hide.html b/LayoutTests/fullscreen/video-cursor-auto-hide.html
index 577641e..f1c49a8 100644
--- a/LayoutTests/fullscreen/video-cursor-auto-hide.html
+++ b/LayoutTests/fullscreen/video-cursor-auto-hide.html
@@ -9,7 +9,7 @@
function checkForHiddenMouse()
{
- testExpected('window.internals.getCurrentCursorInfo(document)', 'type=None hotSpot=0,0');
+ testExpected('window.internals.getCurrentCursorInfo()', 'type=None hotSpot=0,0');
endTest();
}
@@ -19,7 +19,7 @@
internals.settings.setTimeWithoutMouseMovementBeforeHidingControls(0);
wrapperBox = internals.boundingBox(wrapper);
eventSender.mouseMoveTo(wrapperBox.left + wrapperBox.width / 2, wrapperBox.top + wrapperBox.height / 2);
- testExpected('window.internals.getCurrentCursorInfo(document)', 'type=Pointer hotSpot=0,0');
+ testExpected('window.internals.getCurrentCursorInfo()', 'type=Pointer hotSpot=0,0');
setTimeout(checkForHiddenMouse, 0);
}
else
diff --git a/LayoutTests/http/tests/inspector-enabled/resources/console-clear-arguments-test.js b/LayoutTests/http/tests/inspector-enabled/resources/console-clear-arguments-test.js
index b0046dd6..ffc6cd3 100644
--- a/LayoutTests/http/tests/inspector-enabled/resources/console-clear-arguments-test.js
+++ b/LayoutTests/http/tests/inspector-enabled/resources/console-clear-arguments-test.js
@@ -8,7 +8,7 @@
function dumpConsoleMessageArgumentCounts()
{
- var consoleMessageArgumentCounts = window.internals.consoleMessageArgumentCounts(document);
+ var consoleMessageArgumentCounts = window.internals.consoleMessageArgumentCounts();
if (consoleMessageArgumentCounts.length === 3)
print("PASSED: found argument counts for 3 messages");
else
diff --git a/LayoutTests/http/tests/inspector/elements-test.js b/LayoutTests/http/tests/inspector/elements-test.js
index 6cabc88..40f6d57 100644
--- a/LayoutTests/http/tests/inspector/elements-test.js
+++ b/LayoutTests/http/tests/inspector/elements-test.js
@@ -602,7 +602,7 @@
function dumpInspectorHighlightRects()
{
var rectNames = ["margin", "border", "padding", "content"];
- var rects = window.internals.inspectorHighlightRects(document);
+ var rects = window.internals.inspectorHighlightRects();
for (var i = 0; i < rects.length; i++)
{
var rectName = (i < rectNames.length ? rectNames[i] : "untitled");
@@ -613,7 +613,7 @@
function dumpInspectorHighlightedRegions()
{
- var highlight = window.internals.inspectorHighlightObject(document);
+ var highlight = window.internals.inspectorHighlightObject();
if (!highlight.length) {
output("No highlighted node.");
return;
@@ -629,7 +629,7 @@
function dumpInspectorHighlightedNode()
{
- var highlight = window.internals.inspectorHighlightObject(document);
+ var highlight = window.internals.inspectorHighlightObject();
if (!highlight.length) {
output("No highlighted node.");
return;
diff --git a/LayoutTests/networkinformation/resources/event-after-navigation-new.html b/LayoutTests/networkinformation/resources/event-after-navigation-new.html
index d23149b..6134225 100644
--- a/LayoutTests/networkinformation/resources/event-after-navigation-new.html
+++ b/LayoutTests/networkinformation/resources/event-after-navigation-new.html
@@ -6,7 +6,7 @@
away when the original page is in the page cache.<br><br>
SUCCESS
<script>
- internals.setNetworkInformation(document, 'webkitnetworkinfochange', 100, true);
+ internals.setNetworkInformation('webkitnetworkinfochange', 100, true);
testRunner.notifyDone();
</script>
</body>
diff --git a/LayoutTests/networkinformation/script-tests/add-listener-from-callback.js b/LayoutTests/networkinformation/script-tests/add-listener-from-callback.js
index b1a4c76..028885e 100644
--- a/LayoutTests/networkinformation/script-tests/add-listener-from-callback.js
+++ b/LayoutTests/networkinformation/script-tests/add-listener-from-callback.js
@@ -15,7 +15,7 @@
checkNetworkInformation();
if (++firstListenerEvents == 1) {
connection.addEventListener('webkitnetworkinfochange', secondListener);
- internals.setNetworkInformation(document, 'webkitnetworkinfochange', bandwidth, metered);
+ internals.setNetworkInformation('webkitnetworkinfochange', bandwidth, metered);
}
else if (firstListenerEvents > 2)
testFailed('Too many events for first listener.');
@@ -36,6 +36,6 @@
}
connection.addEventListener('webkitnetworkinfochange', firstListener);
-internals.setNetworkInformation(document, 'webkitnetworkinfochange', bandwidth, metered);
+internals.setNetworkInformation('webkitnetworkinfochange', bandwidth, metered);
window.jsTestIsAsync = true;
diff --git a/LayoutTests/networkinformation/script-tests/basic-all-types-of-events.js b/LayoutTests/networkinformation/script-tests/basic-all-types-of-events.js
index e7d5c6a..9246a01 100644
--- a/LayoutTests/networkinformation/script-tests/basic-all-types-of-events.js
+++ b/LayoutTests/networkinformation/script-tests/basic-all-types-of-events.js
@@ -16,5 +16,5 @@
finishJSTest();
});
-internals.setNetworkInformation(document, 'webkitnetworkinfochange', bandwidth, metered);
+internals.setNetworkInformation('webkitnetworkinfochange', bandwidth, metered);
window.jsTestIsAsync = true;
diff --git a/LayoutTests/networkinformation/script-tests/basic-operation.js b/LayoutTests/networkinformation/script-tests/basic-operation.js
index 0a8c8da..1815325 100644
--- a/LayoutTests/networkinformation/script-tests/basic-operation.js
+++ b/LayoutTests/networkinformation/script-tests/basic-operation.js
@@ -11,6 +11,6 @@
finishJSTest();
});
-internals.setNetworkInformation(document, 'webkitnetworkinfochange', bandwidth, metered);
+internals.setNetworkInformation('webkitnetworkinfochange', bandwidth, metered);
window.jsTestIsAsync = true;
diff --git a/LayoutTests/networkinformation/script-tests/multiple-frames.js b/LayoutTests/networkinformation/script-tests/multiple-frames.js
index 6453a0d..6fcde8f 100644
--- a/LayoutTests/networkinformation/script-tests/multiple-frames.js
+++ b/LayoutTests/networkinformation/script-tests/multiple-frames.js
@@ -41,5 +41,5 @@
childConnection.addEventListener('webkitnetworkinfochange', childFrameListener);
connection.addEventListener('webkitnetworkinfochange', mainFrameListener);
-internals.setNetworkInformation(document, 'webkitnetworkinfochange', bandwidth, metered);
+internals.setNetworkInformation('webkitnetworkinfochange', bandwidth, metered);
window.jsTestIsAsync = true;
diff --git a/LayoutTests/networkinformation/script-tests/updates.js b/LayoutTests/networkinformation/script-tests/updates.js
index 9fa8fa4..4f33872c 100644
--- a/LayoutTests/networkinformation/script-tests/updates.js
+++ b/LayoutTests/networkinformation/script-tests/updates.js
@@ -11,7 +11,7 @@
}
function setNetworkInformation() {
- internals.setNetworkInformation(document, 'webkitnetworkinfochange', bandwidth, metered);
+ internals.setNetworkInformation('webkitnetworkinfochange', bandwidth, metered);
}
function firstListener() {
diff --git a/LayoutTests/platform/efl-wk2/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt b/LayoutTests/platform/efl-wk2/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt
index f164739..1269bc6 100644
--- a/LayoutTests/platform/efl-wk2/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt
+++ b/LayoutTests/platform/efl-wk2/editing/spelling/spellcheck-paste-continuous-disabled-expected.txt
@@ -3,8 +3,8 @@
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-PASS internals.hasSpellingMarker(document, 0, 2) is true
-PASS internals.hasSpellingMarker(document, 0, 2) is false
+PASS internals.hasSpellingMarker(0, 2) is true
+PASS internals.hasSpellingMarker(0, 2) is false
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/clamp-out-of-bounds-scrolls.html b/LayoutTests/platform/mac-wk2/tiled-drawing/clamp-out-of-bounds-scrolls.html
index fb3f633..e2f69e5 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/clamp-out-of-bounds-scrolls.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/clamp-out-of-bounds-scrolls.html
@@ -17,7 +17,7 @@
window.scrollTo(x, y);
if (window.internals)
- document.getElementById('scrollingTree').innerText += "Attempted scroll to " + x + ", " + y + "\n" + window.internals.scrollingStateTreeAsText(document) + "\n";
+ document.getElementById('scrollingTree').innerText += "Attempted scroll to " + x + ", " + y + "\n" + window.internals.scrollingStateTreeAsText() + "\n";
}
function doTest()
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/absolute-inside-fixed.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/absolute-inside-fixed.html
index c990188..44eba3a 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/absolute-inside-fixed.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/absolute-inside-fixed.html
@@ -44,12 +44,12 @@
window.setTimeout(function() {
window.scrollTo(0, 200);
if (window.internals) {
- document.getElementById('results').innerText = internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
}
-
+
window.addEventListener('load', doScroll, false);
</script>
</head>
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/absolute-inside-out-of-view-fixed.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/absolute-inside-out-of-view-fixed.html
index 62e08a7..7382902 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/absolute-inside-out-of-view-fixed.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/absolute-inside-out-of-view-fixed.html
@@ -36,7 +36,7 @@
window.setTimeout(function() {
window.scrollTo(0, 200);
if (window.internals) {
- document.getElementById('results').innerText = internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-in-overflow.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-in-overflow.html
index 7c4614b..b4c5e83 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-in-overflow.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-in-overflow.html
@@ -39,7 +39,7 @@
window.setTimeout(function() {
window.scrollTo(0, 200);
if (window.testRunner) {
- document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view-negative-zindex.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view-negative-zindex.html
index d7f4f53..253341a 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view-negative-zindex.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view-negative-zindex.html
@@ -18,7 +18,7 @@
window.addEventListener("load", function() {
window.setTimeout(function() {
- document.getElementById("scrollingTree").innerText = window.internals.scrollingStateTreeAsText(document);
+ document.getElementById("scrollingTree").innerText = window.internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}, 10);
}, false);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view.html
index b72cbf9..3af79de 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/fixed-position-out-of-view.html
@@ -18,7 +18,7 @@
function doTest()
{
if (window.internals) {
- document.getElementById('scrollingTree').innerText = internals.scrollingStateTreeAsText(document);
+ document.getElementById('scrollingTree').innerText = internals.scrollingStateTreeAsText();
}
}
window.addEventListener('load', doTest, false);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer.html
index e0f941d..08297b3 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-with-header-and-footer.html
@@ -49,8 +49,8 @@
testRunner.dumpAsText();
}
if (window.internals) {
- window.internals.setHeaderHeight(document, 100);
- window.internals.setFooterHeight(document, 100);
+ window.internals.setHeaderHeight(100);
+ window.internals.setFooterHeight(100);
}
function doScroll()
@@ -58,7 +58,7 @@
window.setTimeout(function() {
window.scrollTo(0, 200);
if (window.testRunner) {
- document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed.html
index 1d14b2d..4a89dcb 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars-zoomed.html
@@ -56,7 +56,7 @@
eventSender.scalePageBy(2.3, 0, 0);
if (window.testRunner) {
- document.getElementById('results').textContent = window.internals.scrollingStateTreeAsText(document) + '\n' +
+ document.getElementById('results').textContent = window.internals.scrollingStateTreeAsText() + '\n' +
internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_VISIBLE_RECTS | internals.LAYER_TREE_INCLUDES_TILE_CACHES);
testRunner.notifyDone()
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars.html
index de7af57..ed04ca7 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/four-bars.html
@@ -55,7 +55,7 @@
window.setTimeout(function() {
window.scrollTo(0, 200);
if (window.testRunner) {
- document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-in-view.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-in-view.html
index 43c6db1..7bdff8a 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-in-view.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset-in-view.html
@@ -32,7 +32,7 @@
window.setTimeout(function() {
window.scrollTo(0, -200);
if (window.testRunner) {
- document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset.html
index 872f9ab..a61fc7a 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/negative-scroll-offset.html
@@ -34,7 +34,7 @@
window.setTimeout(function() {
window.scrollTo(0, -20);
if (window.testRunner) {
- document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/nested-fixed.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/nested-fixed.html
index 009d0a5..65b6931 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/nested-fixed.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/nested-fixed.html
@@ -38,7 +38,7 @@
window.setTimeout(function() {
window.scrollTo(0, 200);
if (window.testRunner) {
- document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/percentage-inside-fixed.html b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/percentage-inside-fixed.html
index a3f89cb..a03780d 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/percentage-inside-fixed.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/fixed/percentage-inside-fixed.html
@@ -42,7 +42,7 @@
window.setTimeout(function() {
window.scrollTo(0, 200);
if (window.testRunner) {
- document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame.html b/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame.html
index c871d59..f6629c1 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-in-frame.html
@@ -5,7 +5,7 @@
if (!window.eventSender)
return;
if (window.internals)
- window.internals.setHeaderHeight(document, 100);
+ window.internals.setHeaderHeight(100);
if (window.testRunner)
testRunner.dumpAsText();
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-with-page-scale.html b/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-with-page-scale.html
index 5143406..5514a21 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-with-page-scale.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing-with-page-scale.html
@@ -14,7 +14,7 @@
if (!window.eventSender)
return;
if (window.internals) {
- window.internals.setHeaderHeight(document, 100);
+ window.internals.setHeaderHeight(100);
window.internals.setPageScaleFactor(2, 0, 0);
}
if (window.testRunner)
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing.html b/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing.html
index 6d855d0..bddca06 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/header-and-footer-hit-testing.html
@@ -14,7 +14,7 @@
if (!window.eventSender)
return;
if (window.internals)
- window.internals.setHeaderHeight(document, 100);
+ window.internals.setHeaderHeight(100);
if (window.testRunner)
testRunner.dumpAsText();
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling-tree-after-scroll.html b/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling-tree-after-scroll.html
index acb8dd2..e5a11b3 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling-tree-after-scroll.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling-tree-after-scroll.html
@@ -15,7 +15,7 @@
{
window.scrollTo(0, 3000);
if (window.internals) {
- document.getElementById('layers').innerText = internals.scrollingStateTreeAsText(document);
+ document.getElementById('layers').innerText = internals.scrollingStateTreeAsText();
}
}
window.addEventListener('load', doTest, false);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling-tree-slow-scrolling.html b/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling-tree-slow-scrolling.html
index 65a11b7..e54f4d6 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling-tree-slow-scrolling.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/scrolling-tree-slow-scrolling.html
@@ -17,7 +17,7 @@
function doTest()
{
if (window.internals) {
- document.getElementById('layers').innerText = internals.scrollingStateTreeAsText(document);
+ document.getElementById('layers').innerText = internals.scrollingStateTreeAsText();
}
}
window.addEventListener('load', doTest, false);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling-background-toggle.html b/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling-background-toggle.html
index d29497f..1eaabb1 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling-background-toggle.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling-background-toggle.html
@@ -34,7 +34,7 @@
box.classList.add('loaded');
if (window.internals)
- document.getElementById('reasons').textContent = window.internals.mainThreadScrollingReasons(document);
+ document.getElementById('reasons').textContent = window.internals.mainThreadScrollingReasons();
}
window.addEventListener('load', doTest, false);
</script>
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling-hidden-background-toggle.html b/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling-hidden-background-toggle.html
index c1d851b..8579e2e 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling-hidden-background-toggle.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling-hidden-background-toggle.html
@@ -42,7 +42,7 @@
box.classList.add('loaded');
if (window.internals)
- document.getElementById('reasons').textContent = window.internals.mainThreadScrollingReasons(document);
+ document.getElementById('reasons').textContent = window.internals.mainThreadScrollingReasons();
}
window.addEventListener('load', doTest, false);
</script>
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling.html b/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling.html
index cadcb7a..42c2ab0 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/slow-scrolling.html
@@ -27,7 +27,7 @@
function doTest()
{
if (window.internals)
- document.getElementById('reasons').textContent = window.internals.mainThreadScrollingReasons(document);
+ document.getElementById('reasons').textContent = window.internals.mainThreadScrollingReasons();
}
window.addEventListener('load', doTest, false);
</script>
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/negative-scroll-offset.html b/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/negative-scroll-offset.html
index 36acfc5..d4d09fa 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/negative-scroll-offset.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/negative-scroll-offset.html
@@ -28,7 +28,7 @@
window.setTimeout(function() {
window.scrollTo(0, -20);
if (window.testRunner) {
- document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/sticky-horizontal.html b/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/sticky-horizontal.html
index e27055b..7030a34 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/sticky-horizontal.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/sticky-horizontal.html
@@ -50,7 +50,7 @@
window.setTimeout(function() {
window.scrollTo(800, 0);
if (window.testRunner) {
- document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/sticky-vertical.html b/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/sticky-vertical.html
index d23861b..cdfd592 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/sticky-vertical.html
+++ b/LayoutTests/platform/mac-wk2/tiled-drawing/sticky/sticky-vertical.html
@@ -37,7 +37,7 @@
window.setTimeout(function() {
window.scrollTo(0, 580);
if (window.testRunner) {
- document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText(document);
+ document.getElementById('results').innerText = window.internals.scrollingStateTreeAsText();
testRunner.notifyDone();
}
}, 10);
diff --git a/LayoutTests/platform/mac/editing/spelling/autocorrection-blockquote-crash-expected.txt b/LayoutTests/platform/mac/editing/spelling/autocorrection-blockquote-crash-expected.txt
index 5c21786..5b9faa1 100644
--- a/LayoutTests/platform/mac/editing/spelling/autocorrection-blockquote-crash-expected.txt
+++ b/LayoutTests/platform/mac/editing/spelling/autocorrection-blockquote-crash-expected.txt
@@ -1,6 +1,6 @@
This test checks that markers are correct when auto correcting in the blockquote. If you type "l" and " ", there should be blue dots under the word: "notational". This test also makes sure that the replacement does not cause breaking out of blockquotes.
-PASS internals.hasAutocorrectedMarker(document, 5, 10) is true
+PASS internals.hasAutocorrectedMarker(5, 10) is true
PASS document.querySelectorAll("blockquote").length is 1
PASS document.querySelector("blockquote").innerText.indexOf("notational") is 18
PASS successfullyParsed is true
diff --git a/LayoutTests/platform/mac/editing/spelling/autocorrection-blockquote-crash.html b/LayoutTests/platform/mac/editing/spelling/autocorrection-blockquote-crash.html
index d2edb49..c2f73db 100644
--- a/LayoutTests/platform/mac/editing/spelling/autocorrection-blockquote-crash.html
+++ b/LayoutTests/platform/mac/editing/spelling/autocorrection-blockquote-crash.html
@@ -17,7 +17,7 @@
eventSender.keyDown(' ');
if(window.internals) {
- shouldBeTrue('internals.hasAutocorrectedMarker(document, 5, 10)');
+ shouldBeTrue('internals.hasAutocorrectedMarker(5, 10)');
shouldBe('document.querySelectorAll("blockquote").length', '1');
shouldBe('document.querySelector("blockquote").innerText.indexOf("notational")', '18');
}
diff --git a/LayoutTests/platform/mac/editing/spelling/delete-into-misspelled-word.html b/LayoutTests/platform/mac/editing/spelling/delete-into-misspelled-word.html
index 658d2db..0d4f5db 100644
--- a/LayoutTests/platform/mac/editing/spelling/delete-into-misspelled-word.html
+++ b/LayoutTests/platform/mac/editing/spelling/delete-into-misspelled-word.html
@@ -33,7 +33,7 @@
typeCharacterCommand(' ');
execDeleteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,8) == 1) {
+ if (window.internals.hasSpellingMarker(7,8) == 1) {
document.getElementById('console').innerHTML = 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = "FAILURE. The word 'meagesga' does not have underline.<br>";
@@ -46,7 +46,7 @@
typeCharacterCommand(' ');
execForwardDeleteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,8) == 1) {
+ if (window.internals.hasSpellingMarker(7,8) == 1) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meagesga' does not have underline.<br>";
diff --git a/LayoutTests/platform/mac/editing/spelling/editing-multiple-words-with-markers.html b/LayoutTests/platform/mac/editing/spelling/editing-multiple-words-with-markers.html
index ed06719..b33661d 100644
--- a/LayoutTests/platform/mac/editing/spelling/editing-multiple-words-with-markers.html
+++ b/LayoutTests/platform/mac/editing/spelling/editing-multiple-words-with-markers.html
@@ -51,7 +51,7 @@
textarea.setSelectionRange(11, 20);
execDeleteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,4) == 0 && window.internals.hasSpellingMarker(document, 11,4) == 0) {
+ if (window.internals.hasSpellingMarker(7,4) == 0 && window.internals.hasSpellingMarker(11,4) == 0) {
document.getElementById('console').innerHTML = 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = "FAILURE. The word 'meagesga' has underline.<br>";
@@ -62,7 +62,7 @@
textarea.setSelectionRange(11, 16);
execDeleteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,4) == 0 && window.internals.hasSpellingMarker(document, 11,8) == 0) {
+ if (window.internals.hasSpellingMarker(7,4) == 0 && window.internals.hasSpellingMarker(11,8) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meagmeagesga' has underline.<br>";
@@ -73,7 +73,7 @@
textarea.setSelectionRange(15, 20);
execDeleteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,8) == 0 && window.internals.hasSpellingMarker(document, 15,4) == 0) {
+ if (window.internals.hasSpellingMarker(7,8) == 0 && window.internals.hasSpellingMarker(15,4) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meagesgaesga' has underline.<br>";
diff --git a/LayoutTests/platform/mac/editing/spelling/editing-word-with-marker-1.html b/LayoutTests/platform/mac/editing/spelling/editing-word-with-marker-1.html
index c809d11..fcedd2a 100644
--- a/LayoutTests/platform/mac/editing/spelling/editing-word-with-marker-1.html
+++ b/LayoutTests/platform/mac/editing/spelling/editing-word-with-marker-1.html
@@ -42,7 +42,7 @@
textarea.setSelectionRange(14, 15);
execDeleteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,7) == 0) {
+ if (window.internals.hasSpellingMarker(7,7) == 0) {
document.getElementById('console').innerHTML = 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = "FAILURE. The word 'meagesg' has underline.<br>";
@@ -54,7 +54,7 @@
textarea.setSelectionRange(6, 6);
execForwardDeleteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 6,8) == 0) {
+ if (window.internals.hasSpellingMarker(6,8) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'ameagesga' has underline.<br>";
@@ -65,7 +65,7 @@
textarea.setSelectionRange(7, 7);
execForwardDeleteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,7) == 0) {
+ if (window.internals.hasSpellingMarker(7,7) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'eagesga' has underline.<br>";
@@ -76,7 +76,7 @@
textarea.setSelectionRange(10, 10);
typeCharacterCommand(' ');
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,3) == 0 && window.internals.hasSpellingMarker(document, 11,5) == 0) {
+ if (window.internals.hasSpellingMarker(7,3) == 0 && window.internals.hasSpellingMarker(11,5) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The segment 'mea gesga' has underline.<br>";
@@ -87,7 +87,7 @@
textarea.setSelectionRange(10, 13);
execDeleteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,5) == 0) {
+ if (window.internals.hasSpellingMarker(7,5) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meaga' has underline.<br>";
@@ -98,7 +98,7 @@
textarea.setSelectionRange(10, 13);
typeCharacterCommand(' ');
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,3) == 0 && window.internals.hasSpellingMarker(document, 11,2) == 0) {
+ if (window.internals.hasSpellingMarker(7,3) == 0 && window.internals.hasSpellingMarker(11,2) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The segment 'mea ga' has underline.<br>";
@@ -110,7 +110,7 @@
textarea.setSelectionRange(7, 7);
typeCharacterCommand('a');
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 8,8) == 0) {
+ if (window.internals.hasSpellingMarker(8,8) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'ameagesga' has underline.<br>";
@@ -121,7 +121,7 @@
textarea.setSelectionRange(15, 15);
typeCharacterCommand('a');
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,8) == 0) {
+ if (window.internals.hasSpellingMarker(7,8) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meagesgaa' has underline.<br>";
@@ -136,7 +136,7 @@
textarea.setSelectionRange(7, 7);
execPasteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 11,8) == 0) {
+ if (window.internals.hasSpellingMarker(11,8) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meagesga' has underline.<br>";
@@ -150,7 +150,7 @@
textarea.setSelectionRange(15, 15);
execPasteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,8) == 0) {
+ if (window.internals.hasSpellingMarker(7,8) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meagesga' has underline.<br>";
@@ -164,7 +164,7 @@
textarea.setSelectionRange(10, 10);
execPasteCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,3) == 0 && window.internals.hasSpellingMarker(document, 15,5) == 0) {
+ if (window.internals.hasSpellingMarker(7,3) == 0 && window.internals.hasSpellingMarker(15,5) == 0) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meait\'sgesga' has underline.<br>";
diff --git a/LayoutTests/platform/mac/editing/spelling/editing-word-with-marker-2.html b/LayoutTests/platform/mac/editing/spelling/editing-word-with-marker-2.html
index 26b66be..5aad115 100644
--- a/LayoutTests/platform/mac/editing/spelling/editing-word-with-marker-2.html
+++ b/LayoutTests/platform/mac/editing/spelling/editing-word-with-marker-2.html
@@ -42,7 +42,7 @@
textarea.setSelectionRange(7,7);
typeCharacterCommand(' ');
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 8,8) == 1) {
+ if (window.internals.hasSpellingMarker(8,8) == 1) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meagesga' doesn't have underline.<br>";
@@ -54,7 +54,7 @@
textarea.setSelectionRange(15,15);
typeCharacterCommand(' ');
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,8) == 1) {
+ if (window.internals.hasSpellingMarker(7,8) == 1) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meagesga' doesn't have underline.<br>";
diff --git a/LayoutTests/platform/mac/editing/spelling/move-cursor-around-misspelled-word.html b/LayoutTests/platform/mac/editing/spelling/move-cursor-around-misspelled-word.html
index 7e3bf33..2e998bc 100644
--- a/LayoutTests/platform/mac/editing/spelling/move-cursor-around-misspelled-word.html
+++ b/LayoutTests/platform/mac/editing/spelling/move-cursor-around-misspelled-word.html
@@ -34,7 +34,7 @@
execMoveSelectionBackwardByCharacterCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,8) == 1) {
+ if (window.internals.hasSpellingMarker(7,8) == 1) {
document.getElementById('console').innerHTML = 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = "FAILURE. The word 'meagesga' does not have misspell underline.<br>";
@@ -45,7 +45,7 @@
textarea.setSelectionRange(10, 10);
textarea.focus();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,8) == 1) {
+ if (window.internals.hasSpellingMarker(7,8) == 1) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meagesga' does not have misspell underline.<br>";
@@ -56,7 +56,7 @@
textarea.focus();
execMoveSelectionForwardByCharacterCommand();
if (window.internals && window.internals.hasSpellingMarker) {
- if (window.internals.hasSpellingMarker(document, 7,8) == 1) {
+ if (window.internals.hasSpellingMarker(7,8) == 1) {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + 'SUCCESS<br>';
} else {
document.getElementById('console').innerHTML = document.getElementById('console').innerHTML + "FAILURE. The word 'meagesga' does not have misspell underline.<br>";
diff --git a/LayoutTests/platform/win/editing/spelling/spelling-backspace-between-lines-expected.txt b/LayoutTests/platform/win/editing/spelling/spelling-backspace-between-lines-expected.txt
index aef28b8..2d15065 100644
--- a/LayoutTests/platform/win/editing/spelling/spelling-backspace-between-lines-expected.txt
+++ b/LayoutTests/platform/win/editing/spelling/spelling-backspace-between-lines-expected.txt
@@ -5,16 +5,16 @@
PASS firstLineText() is 'OK'
PASS sel.anchorNode.data is 'OK zz OK'
-PASS internals.hasSpellingMarker(document, 3, 2) is true
+PASS internals.hasSpellingMarker(3, 2) is true
PASS sel.anchorNode.data is 'OKOK zz OK'
PASS firstLineText() is 'OKOK zz OK'
-FAIL internals.hasSpellingMarker(document, 5, 2) should be true. Was false.
+FAIL internals.hasSpellingMarker(5, 2) should be true. Was false.
PASS firstLineText() is 'OK'
PASS sel.anchorNode.data is 'OK zz OK'
-PASS internals.hasSpellingMarker(document, 3, 2) is true
+PASS internals.hasSpellingMarker(3, 2) is true
PASS firstLineText() is 'OKOK zz OK'
PASS sel.anchorNode.data is 'OKOK zz OK'
-FAIL internals.hasSpellingMarker(document, 5, 2) should be true. Was false.
+FAIL internals.hasSpellingMarker(5, 2) should be true. Was false.
PASS successfullyParsed is true
TEST COMPLETE
diff --git a/LayoutTests/printing/page-format-data-expected.txt b/LayoutTests/printing/page-format-data-expected.txt
index f62d014..7e4f875 100644
--- a/LayoutTests/printing/page-format-data-expected.txt
+++ b/LayoutTests/printing/page-format-data-expected.txt
@@ -4,15 +4,15 @@
Test default visibility
-PASS internals.isPageBoxVisible(document, 0) is true
+PASS internals.isPageBoxVisible(0) is true
Test display: none. display property doesn't apply to @page
-PASS internals.isPageBoxVisible(document, 0) is true
+PASS internals.isPageBoxVisible(0) is true
Test display: inline. display property doesn't apply to @page
-PASS internals.isPageBoxVisible(document, 0) is true
+PASS internals.isPageBoxVisible(0) is true
Test visibility: hidden
-PASS internals.isPageBoxVisible(document, 0) is false
+PASS internals.isPageBoxVisible(0) is false
Test visibility: visible
-PASS internals.isPageBoxVisible(document, 0) is true
+PASS internals.isPageBoxVisible(0) is true
Test default page size
PASS internals.pageSizeAndMarginsInPixels(0, 100, 200, 1, 2, 3, 4) is '(100, 200)' + pxMargins(1, 2, 3, 4)
diff --git a/LayoutTests/printing/page-format-data.html b/LayoutTests/printing/page-format-data.html
index 7330de7..eaccdf3 100644
--- a/LayoutTests/printing/page-format-data.html
+++ b/LayoutTests/printing/page-format-data.html
@@ -39,23 +39,23 @@
// Page box visibility tests.
debug("Test default visibility");
- shouldBe("internals.isPageBoxVisible(document, 0)", "true");
+ shouldBe("internals.isPageBoxVisible(0)", "true");
debug("Test display: none. display property doesn't apply to @page");
appendStyle("@page {display:none;}");
- shouldBe("internals.isPageBoxVisible(document, 0)", "true");
+ shouldBe("internals.isPageBoxVisible(0)", "true");
debug("Test display: inline. display property doesn't apply to @page");
appendStyle("@page {display:inline;}");
- shouldBe("internals.isPageBoxVisible(document, 0)", "true");
+ shouldBe("internals.isPageBoxVisible(0)", "true");
debug("Test visibility: hidden");
appendStyle("@page {visibility:hidden;}");
- shouldBe("internals.isPageBoxVisible(document, 0)", "false");
+ shouldBe("internals.isPageBoxVisible(0)", "false");
debug("Test visibility: visible");
appendStyle("@page {visibility:visible;}");
- shouldBe("internals.isPageBoxVisible(document, 0)", "true");
+ shouldBe("internals.isPageBoxVisible(0)", "true");
debug("");
diff --git a/LayoutTests/proximity/add-listener-from-callback.html b/LayoutTests/proximity/add-listener-from-callback.html
index 29e2873..0c80693 100644
--- a/LayoutTests/proximity/add-listener-from-callback.html
+++ b/LayoutTests/proximity/add-listener-from-callback.html
@@ -21,7 +21,7 @@
checkProximity(event);
if (++firstListenerEvents == 1) {
window.addEventListener('webkitdeviceproximity', secondListener);
- internals.setDeviceProximity(document, 'webkitdeviceproximity', firedEvent.value, firedEvent.min, firedEvent.max);
+ internals.setDeviceProximity('webkitdeviceproximity', firedEvent.value, firedEvent.min, firedEvent.max);
}
else if (firstListenerEvents > 2)
testFailed('Too many events for first listener.');
@@ -42,7 +42,7 @@
}
window.addEventListener('webkitdeviceproximity', firstListener);
-internals.setDeviceProximity(document, 'webkitdeviceproximity', firedEvent.value, firedEvent.min, firedEvent.max);
+internals.setDeviceProximity('webkitdeviceproximity', firedEvent.value, firedEvent.min, firedEvent.max);
window.jsTestIsAsync = true;
</script>
<script src="../resources/js-test-post.js"></script>
diff --git a/LayoutTests/proximity/basic-operation.html b/LayoutTests/proximity/basic-operation.html
index fd11338..88f31887 100644
--- a/LayoutTests/proximity/basic-operation.html
+++ b/LayoutTests/proximity/basic-operation.html
@@ -17,7 +17,7 @@
finishJSTest();
});
-internals.setDeviceProximity(document, 'webkitdeviceproximity', firedEvent.value, firedEvent.min, firedEvent.max);
+internals.setDeviceProximity('webkitdeviceproximity', firedEvent.value, firedEvent.min, firedEvent.max);
window.jsTestIsAsync = true;
</script>
<script src="../resources/js-test-post.js"></script>
diff --git a/LayoutTests/proximity/multiple-frames.html b/LayoutTests/proximity/multiple-frames.html
index c0e1a79..378bb95 100644
--- a/LayoutTests/proximity/multiple-frames.html
+++ b/LayoutTests/proximity/multiple-frames.html
@@ -39,7 +39,7 @@
window.addEventListener('webkitdeviceproximity', mainFrameListener);
var firedEvent = {value: 2.2, min: 1.1, max: 3.3};
-internals.setDeviceProximity(document, 'webkitdeviceproximity', firedEvent.value, firedEvent.min, firedEvent.max);
+internals.setDeviceProximity('webkitdeviceproximity', firedEvent.value, firedEvent.min, firedEvent.max);
window.jsTestIsAsync = true;
</script>
diff --git a/LayoutTests/proximity/resources/event-after-navigation-new.html b/LayoutTests/proximity/resources/event-after-navigation-new.html
index 8b04014..226beaf 100644
--- a/LayoutTests/proximity/resources/event-after-navigation-new.html
+++ b/LayoutTests/proximity/resources/event-after-navigation-new.html
@@ -7,7 +7,7 @@
SUCCESS
<script>
if (window.testRunner) {
- internals.setDeviceProximity(document, 'webkitdeviceproximity', 2.2, 1.1, 3.3);
+ internals.setDeviceProximity('webkitdeviceproximity', 2.2, 1.1, 3.3);
testRunner.notifyDone();
}
</script>
diff --git a/LayoutTests/proximity/updates.html b/LayoutTests/proximity/updates.html
index 41a346e..dd712cf 100644
--- a/LayoutTests/proximity/updates.html
+++ b/LayoutTests/proximity/updates.html
@@ -9,7 +9,7 @@
var firedEvent;
function setProximity(value, min, max) {
firedEvent = {value: value, min: min, max: max};
- internals.setDeviceProximity(document, 'webkitdeviceproximity', firedEvent.value, firedEvent.min, firedEvent.max);
+ internals.setDeviceProximity('webkitdeviceproximity', firedEvent.value, firedEvent.min, firedEvent.max);
}
var deviceProximityEvent;
diff --git a/LayoutTests/scrollingcoordinator/resources/non-fast-scrollable-region-testing.js b/LayoutTests/scrollingcoordinator/resources/non-fast-scrollable-region-testing.js
index fbdb548..cad179a 100644
--- a/LayoutTests/scrollingcoordinator/resources/non-fast-scrollable-region-testing.js
+++ b/LayoutTests/scrollingcoordinator/resources/non-fast-scrollable-region-testing.js
@@ -15,7 +15,7 @@
overlay.style.top = 0;
overlay.style.opacity = 0.5;
- var rects = window.internals.nonFastScrollableRects(document);
+ var rects = window.internals.nonFastScrollableRects();
for (var i = 0; i < rects.length; i++) {
var rect = rects[i];
var patch = document.createElement("div");
diff --git a/LayoutTests/touchadjustment/big-div.html b/LayoutTests/touchadjustment/big-div.html
index c16f675..0856d07 100644
--- a/LayoutTests/touchadjustment/big-div.html
+++ b/LayoutTests/touchadjustment/big-div.html
@@ -60,9 +60,9 @@
width: 2 * radius,
height: 2 * radius
};
- adjustedNode = internals.touchNodeAdjustedToBestClickableNode(touchBounds.x, touchBounds.y, touchBounds.width, touchBounds.height, document);
+ adjustedNode = internals.touchNodeAdjustedToBestClickableNode(touchBounds.x, touchBounds.y, touchBounds.width, touchBounds.height);
shouldBe('adjustedNode.id', 'element.id');
- adjustedPoint = internals.touchPositionAdjustedToBestClickableNode(touchBounds.x, touchBounds.y, touchBounds.width, touchBounds.height, document);
+ adjustedPoint = internals.touchPositionAdjustedToBestClickableNode(touchBounds.x, touchBounds.y, touchBounds.width, touchBounds.height);
shouldBeTrue('adjustedPoint.x >= targetBounds.left');
shouldBeTrue('adjustedPoint.x <= targetBounds.left + targetBounds.width');
diff --git a/LayoutTests/touchadjustment/event-triggered-widgets.html b/LayoutTests/touchadjustment/event-triggered-widgets.html
index 6d6397f..490b4bd 100644
--- a/LayoutTests/touchadjustment/event-triggered-widgets.html
+++ b/LayoutTests/touchadjustment/event-triggered-widgets.html
@@ -75,7 +75,7 @@
function findBestClickableNode(x, y, width, height)
{
- var adjustedNode = internals.touchNodeAdjustedToBestClickableNode(x, y, width, height, document);
+ var adjustedNode = internals.touchNodeAdjustedToBestClickableNode(x, y, width, height);
if (adjustedNode && adjustedNode.nodeType == 3) // TEXT node
adjustedNode = adjustedNode.parentNode;
return adjustedNode;
diff --git a/LayoutTests/touchadjustment/iframe.html b/LayoutTests/touchadjustment/iframe.html
index e0a36f1..ba3ba17 100644
--- a/LayoutTests/touchadjustment/iframe.html
+++ b/LayoutTests/touchadjustment/iframe.html
@@ -21,7 +21,7 @@
var y = y - radius;
var width = radius * 2;
var height = radius * 2;
- var adjustedNode = internals.touchNodeAdjustedToBestClickableNode(x, y, width, height, document);
+ var adjustedNode = internals.touchNodeAdjustedToBestClickableNode(x, y, width, height);
if (adjustedNode.nodeType == 3) // TEXT node
adjustedNode = adjustedNode.parentNode;
return adjustedNode;
@@ -49,4 +49,4 @@
</script>
<script src="../resources/js-test-post.js"></script>
</body>
-</html>
\ No newline at end of file
+</html>
diff --git a/LayoutTests/touchadjustment/nested-shadow-node.html b/LayoutTests/touchadjustment/nested-shadow-node.html
index 701fd0f..35edc0b 100644
--- a/LayoutTests/touchadjustment/nested-shadow-node.html
+++ b/LayoutTests/touchadjustment/nested-shadow-node.html
@@ -82,9 +82,9 @@
function testTouch(touchX, touchY, padding, adjustedX, adjustedY, tolerance) {
var left = touchX - padding / 2;
var top = touchY - padding / 2;
- adjustedNode = internals.touchNodeAdjustedToBestClickableNode(left, top, padding, padding, document);
+ adjustedNode = internals.touchNodeAdjustedToBestClickableNode(left, top, padding, padding);
shouldBe('adjustedNode.id', 'element.id');
- adjustedPoint = internals.touchPositionAdjustedToBestClickableNode(left, top, padding, padding, document);
+ adjustedPoint = internals.touchPositionAdjustedToBestClickableNode(left, top, padding, padding);
shouldBeCloseTo('adjustedPoint.x', adjustedX, tolerance);
shouldBeCloseTo('adjustedPoint.y', adjustedY, tolerance);
}
diff --git a/LayoutTests/touchadjustment/resources/touchadjustment.js b/LayoutTests/touchadjustment/resources/touchadjustment.js
index 2a3aa3d..4b6c028 100644
--- a/LayoutTests/touchadjustment/resources/touchadjustment.js
+++ b/LayoutTests/touchadjustment/resources/touchadjustment.js
@@ -65,7 +65,7 @@
function testTouchPoint(touchpoint, targetNode, allowTextNodes)
{
- var adjustedNode = internals.touchNodeAdjustedToBestClickableNode(touchpoint.left, touchpoint.top, touchpoint.width, touchpoint.height, document);
+ var adjustedNode = internals.touchNodeAdjustedToBestClickableNode(touchpoint.left, touchpoint.top, touchpoint.width, touchpoint.height);
if (!allowTextNodes && adjustedNode && adjustedNode.nodeType == 3)
adjustedNode = adjustedNode.parentNode;
shouldBeNode(adjustedNode, targetNode);
@@ -73,7 +73,7 @@
function testTouchPointContextMenu(touchpoint, targetNode, allowTextNodes)
{
- var adjustedNode = internals.touchNodeAdjustedToBestContextMenuNode(touchpoint.left, touchpoint.top, touchpoint.width, touchpoint.height, document);
+ var adjustedNode = internals.touchNodeAdjustedToBestContextMenuNode(touchpoint.left, touchpoint.top, touchpoint.width, touchpoint.height);
if (!allowTextNodes && adjustedNode && adjustedNode.nodeType == 3)
adjustedNode = adjustedNode.parentNode;
shouldBeNode(adjustedNode, targetNode);
@@ -81,13 +81,13 @@
function adjustTouchPoint(touchpoint)
{
- var adjustedPoint = internals.touchPositionAdjustedToBestClickableNode(touchpoint.left, touchpoint.top, touchpoint.width, touchpoint.height, document);
+ var adjustedPoint = internals.touchPositionAdjustedToBestClickableNode(touchpoint.left, touchpoint.top, touchpoint.width, touchpoint.height);
return adjustedPoint;
}
function adjustTouchPointContextMenu(touchpoint)
{
- var adjustedPoint = internals.touchPositionAdjustedToBestContextMenuNode(touchpoint.left, touchpoint.top, touchpoint.width, touchpoint.height, document);
+ var adjustedPoint = internals.touchPositionAdjustedToBestContextMenuNode(touchpoint.left, touchpoint.top, touchpoint.width, touchpoint.height);
return adjustedPoint;
}
diff --git a/LayoutTests/touchadjustment/scroll-delegation/iframe-with-mainframe-scroll-offset.html b/LayoutTests/touchadjustment/scroll-delegation/iframe-with-mainframe-scroll-offset.html
index 38b26fa..54486d9 100644
--- a/LayoutTests/touchadjustment/scroll-delegation/iframe-with-mainframe-scroll-offset.html
+++ b/LayoutTests/touchadjustment/scroll-delegation/iframe-with-mainframe-scroll-offset.html
@@ -41,7 +41,7 @@
var y = y - radius;
var width = radius * 2;
var height = radius * 2;
- var zoomableRect = internals.bestZoomableAreaForTouchPoint(x, y, width, height, document);
+ var zoomableRect = internals.bestZoomableAreaForTouchPoint(x, y, width, height);
return zoomableRect;
}
@@ -59,7 +59,7 @@
if (window.testRunner && window.internals && internals.touchNodeAdjustedToBestClickableNode && internals.setDelegatesScrolling) {
description('Test iframe with main frame scroll offset case of tap-to-zoom mechanics.');
window.scrollBy(0,500);
- internals.setDelegatesScrolling(true, document);
+ internals.setDelegatesScrolling(true);
testRunner.dumpAsText();
testRunner.waitUntilDone();
testDirectTouches();
diff --git a/LayoutTests/touchadjustment/scroll-offset.html b/LayoutTests/touchadjustment/scroll-offset.html
index 488ca13..23b16cd 100644
--- a/LayoutTests/touchadjustment/scroll-offset.html
+++ b/LayoutTests/touchadjustment/scroll-offset.html
@@ -46,7 +46,7 @@
var y = y - radius;
var width = radius * 2;
var height = radius * 2;
- var position = internals.touchPositionAdjustedToBestClickableNode(x, y, width, height, document);
+ var position = internals.touchPositionAdjustedToBestClickableNode(x, y, width, height);
return position;
}
diff --git a/LayoutTests/touchadjustment/search-cancel.html b/LayoutTests/touchadjustment/search-cancel.html
index b241c5c..8d88214 100644
--- a/LayoutTests/touchadjustment/search-cancel.html
+++ b/LayoutTests/touchadjustment/search-cancel.html
@@ -97,7 +97,7 @@
width: 2 * radius,
height: 2 * radius
};
- adjustedPoint = internals.touchPositionAdjustedToBestClickableNode(touchBounds.left, touchBounds.top, touchBounds.width, touchBounds.height, document);
+ adjustedPoint = internals.touchPositionAdjustedToBestClickableNode(touchBounds.left, touchBounds.top, touchBounds.width, touchBounds.height);
targetContainsPoint = containsPoint(targetBounds, adjustedPoint);
touchContainsPoint = containsPoint(touchBounds, adjustedPoint);
shouldBeTrue('targetContainsPoint');
diff --git a/LayoutTests/touchadjustment/zoom-basic.html b/LayoutTests/touchadjustment/zoom-basic.html
index c99795b..b579732 100644
--- a/LayoutTests/touchadjustment/zoom-basic.html
+++ b/LayoutTests/touchadjustment/zoom-basic.html
@@ -24,7 +24,7 @@
var y = y - radius;
var width = radius * 2;
var height = radius * 2;
- var zoomableRect = internals.bestZoomableAreaForTouchPoint(x, y, width, height, document);
+ var zoomableRect = internals.bestZoomableAreaForTouchPoint(x, y, width, height);
return zoomableRect;
}
diff --git a/LayoutTests/touchadjustment/zoom-fatfinger.html b/LayoutTests/touchadjustment/zoom-fatfinger.html
index 6ad69ac..eb93212 100644
--- a/LayoutTests/touchadjustment/zoom-fatfinger.html
+++ b/LayoutTests/touchadjustment/zoom-fatfinger.html
@@ -19,7 +19,7 @@
var y = y - radius;
var width = radius * 2;
var height = radius * 2;
- var zoomableRect = internals.bestZoomableAreaForTouchPoint(x, y, width, height, document);
+ var zoomableRect = internals.bestZoomableAreaForTouchPoint(x, y, width, height);
return zoomableRect;
}
@@ -46,4 +46,4 @@
}
</script>
</body>
-</html>
\ No newline at end of file
+</html>
diff --git a/LayoutTests/transitions/created-while-suspended.html b/LayoutTests/transitions/created-while-suspended.html
index 4ebff9f..a10f5ea 100644
--- a/LayoutTests/transitions/created-while-suspended.html
+++ b/LayoutTests/transitions/created-while-suspended.html
@@ -14,13 +14,13 @@
function suspend()
{
if (window.internals)
- internals.suspendAnimations(document);
+ internals.suspendAnimations();
}
function resume()
{
if (window.internals)
- internals.resumeAnimations(document);
+ internals.resumeAnimations();
}
function transitionEnded(event)
@@ -34,7 +34,7 @@
suspend();
setTimeout(function() {
if (window.internals)
- log("Transitions should be suspended: " + (window.internals.animationsAreSuspended(document) ? "PASS" : "FAIL"));
+ log("Transitions should be suspended: " + (window.internals.animationsAreSuspended() ? "PASS" : "FAIL"));
log("*** Creating the box.")
box = document.createElement("div");
@@ -55,7 +55,7 @@
log("*** Resuming Animations/Transitions");
resume();
if (window.internals)
- log("Transitions should not be suspended: " + (window.internals.animationsAreSuspended(document) ? "FAIL" : "PASS"));
+ log("Transitions should not be suspended: " + (window.internals.animationsAreSuspended() ? "FAIL" : "PASS"));
resume(); // Just in case.
log("*** Test finished");
@@ -68,7 +68,7 @@
log("*** Starting test.")
if (window.internals)
- log("Transitions should not be suspended: " + (window.internals.animationsAreSuspended(document) ? "FAIL" : "PASS"));
+ log("Transitions should not be suspended: " + (window.internals.animationsAreSuspended() ? "FAIL" : "PASS"));
suspendAndCreate();
}
diff --git a/LayoutTests/transitions/started-while-suspended.html b/LayoutTests/transitions/started-while-suspended.html
index 6145315..a4349c0 100644
--- a/LayoutTests/transitions/started-while-suspended.html
+++ b/LayoutTests/transitions/started-while-suspended.html
@@ -15,13 +15,13 @@
function suspend()
{
if (window.internals)
- internals.suspendAnimations(document);
+ internals.suspendAnimations();
}
function resume()
{
if (window.internals)
- internals.resumeAnimations(document);
+ internals.resumeAnimations();
}
function transitionEnded(event)
@@ -35,7 +35,7 @@
suspend();
setTimeout(function() {
if (window.internals)
- log("Transitions should be suspended: " + (window.internals.animationsAreSuspended(document) ? "PASS" : "FAIL"));
+ log("Transitions should be suspended: " + (window.internals.animationsAreSuspended() ? "PASS" : "FAIL"));
log("*** Setting left property to 200px. We should NOT see transition events.")
box.style.left = "200px";
setTimeout(function() {
@@ -53,7 +53,7 @@
log("*** Resuming Animations/Transitions");
resume();
if (window.internals)
- log("Transitions should not be suspended: " + (window.internals.animationsAreSuspended(document) ? "FAIL" : "PASS"));
+ log("Transitions should not be suspended: " + (window.internals.animationsAreSuspended() ? "FAIL" : "PASS"));
resume(); // Just in case.
log("*** Test finished");
@@ -69,7 +69,7 @@
document.addEventListener("webkitTransitionEnd", transitionEnded, false);
if (window.internals)
- log("Transitions should not be suspended: " + (window.internals.animationsAreSuspended(document) ? "FAIL" : "PASS"));
+ log("Transitions should not be suspended: " + (window.internals.animationsAreSuspended() ? "FAIL" : "PASS"));
setTimeout(function() {
log("*** Setting left property to 100px. We should see transition events.")
diff --git a/LayoutTests/transitions/suspend-transform-transition.html b/LayoutTests/transitions/suspend-transform-transition.html
index 9d75a2c..77d5133 100644
--- a/LayoutTests/transitions/suspend-transform-transition.html
+++ b/LayoutTests/transitions/suspend-transform-transition.html
@@ -34,11 +34,11 @@
function suspendAndWaitForCompletion()
{
if (window.internals)
- internals.suspendAnimations(document);
+ internals.suspendAnimations();
window.setTimeout(function() {
if (window.testRunner) {
- internals.resumeAnimations(document);
+ internals.resumeAnimations();
testRunner.notifyDone();
}
}, 250);
diff --git a/LayoutTests/userscripts/insert-stylesheets.html b/LayoutTests/userscripts/insert-stylesheets.html
index 78f5d68..b959b78 100644
--- a/LayoutTests/userscripts/insert-stylesheets.html
+++ b/LayoutTests/userscripts/insert-stylesheets.html
@@ -27,12 +27,12 @@
return;
// The author style above should override this user style.
- internals.insertUserCSS(document, "body .styled { background-color: green; width: 100px; }");
+ internals.insertUserCSS("body .styled { background-color: green; width: 100px; }");
shouldBe("getComputedStyle(testElement).backgroundColor", "'rgb(255, 0, 0)'");
shouldBe("testElement.offsetWidth", "0");
// Since this style is more specific, it should override the original author style above.
- internals.insertAuthorCSS(document, "body .styled { background-color: green; width: 100px; }");
+ internals.insertAuthorCSS("body .styled { background-color: green; width: 100px; }");
shouldBe("getComputedStyle(testElement).backgroundColor", "'rgb(0, 128, 0)'");
shouldBe("testElement.offsetWidth", "100");
}
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog
index a5dacfd..7bb0f93 100644
--- a/Source/WebCore/ChangeLog
+++ b/Source/WebCore/ChangeLog
@@ -1,3 +1,68 @@
+2013-10-28 Afonso R. Costa Jr. <afonso.costa@samsung.com>
+
+ Methods on window.internals shouldn't pass a document.
+ https://bugs.webkit.org/show_bug.cgi?id=107301
+
+ Reviewed by Alexey Proskuryakov.
+
+ Each 'Internals' instance is associated with a 'Document'. So, it
+ is not necessary to pass a document as argument. Only nodesFromRect and
+ layerTreeAsText methods were kept because, in some Layout Tests, the
+ 'Document' object is not the same used by Internals::contextDocument.
+
+ * testing/Internals.cpp: Removed 'document' parameter.
+ (WebCore::Internals::animationsAreSuspended):
+ (WebCore::Internals::suspendAnimations):
+ (WebCore::Internals::resumeAnimations):
+ (WebCore::Internals::inspectorHighlightRects):
+ (WebCore::Internals::inspectorHighlightObject):
+ (WebCore::Internals::setScrollViewPosition):
+ (WebCore::Internals::setPagination):
+ (WebCore::Internals::configurationForViewport):
+ (WebCore::Internals::paintControlTints):
+ (WebCore::Internals::setDelegatesScrolling):
+ (WebCore::Internals::touchPositionAdjustedToBestClickableNode):
+ (WebCore::Internals::touchNodeAdjustedToBestClickableNode):
+ (WebCore::Internals::touchPositionAdjustedToBestContextMenuNode):
+ (WebCore::Internals::touchNodeAdjustedToBestContextMenuNode):
+ (WebCore::Internals::bestZoomableAreaForTouchPoint):
+ (WebCore::Internals::lastSpellCheckRequestSequence):
+ (WebCore::Internals::lastSpellCheckProcessedSequence):
+ (WebCore::Internals::wheelEventHandlerCount):
+ (WebCore::Internals::touchEventHandlerCount):
+ (WebCore::Internals::setBatteryStatus):
+ (WebCore::Internals::setNetworkInformation):
+ (WebCore::Internals::setDeviceProximity):
+ (WebCore::Internals::hasSpellingMarker):
+ (WebCore::Internals::hasAutocorrectedMarker):
+ (WebCore::Internals::isOverwriteModeEnabled):
+ (WebCore::Internals::toggleOverwriteModeEnabled):
+ (WebCore::Internals::consoleMessageArgumentCounts):
+ (WebCore::Internals::hasGrammarMarker):
+ (WebCore::Internals::numberOfScrollableAreas):
+ (WebCore::Internals::isPageBoxVisible):
+ (WebCore::Internals::repaintRectsAsText):
+ (WebCore::Internals::scrollingStateTreeAsText):
+ (WebCore::Internals::mainThreadScrollingReasons):
+ (WebCore::Internals::nonFastScrollableRects):
+ (WebCore::Internals::garbageCollectDocumentResources):
+ (WebCore::Internals::insertAuthorCSS):
+ (WebCore::Internals::insertUserCSS):
+ (WebCore::Internals::shortcutIconURLs):
+ (WebCore::Internals::allIconURLs):
+ (WebCore::Internals::setHeaderHeight):
+ (WebCore::Internals::setFooterHeight):
+ (WebCore::Internals::webkitWillEnterFullScreenForElement):
+ (WebCore::Internals::webkitDidEnterFullScreenForElement):
+ (WebCore::Internals::webkitWillExitFullScreenForElement):
+ (WebCore::Internals::webkitDidExitFullScreenForElement):
+ (WebCore::Internals::startTrackingRepaints):
+ (WebCore::Internals::stopTrackingRepaints):
+ (WebCore::Internals::getCurrentCursorInfo):
+ * testing/Internals.h:
+ (WebCore::Internals::setPagination):
+ * testing/Internals.idl:
+
2013-10-28 Xabier Rodriguez Calvar <calvaris@igalia.com>
Remove HTMLMediaElement.startTime
diff --git a/Source/WebCore/testing/Internals.cpp b/Source/WebCore/testing/Internals.cpp
index 0b7f8fb..35e59a5 100644
--- a/Source/WebCore/testing/Internals.cpp
+++ b/Source/WebCore/testing/Internals.cpp
@@ -379,8 +379,9 @@
return frame()->animation().numberOfActiveAnimations(frame()->document());
}
-bool Internals::animationsAreSuspended(Document* document, ExceptionCode& ec) const
+bool Internals::animationsAreSuspended(ExceptionCode& ec) const
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return false;
@@ -389,8 +390,9 @@
return document->frame()->animation().isSuspended();
}
-void Internals::suspendAnimations(Document* document, ExceptionCode& ec) const
+void Internals::suspendAnimations(ExceptionCode& ec) const
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return;
@@ -399,8 +401,9 @@
document->frame()->animation().suspendAnimations();
}
-void Internals::resumeAnimations(Document* document, ExceptionCode& ec) const
+void Internals::resumeAnimations(ExceptionCode& ec) const
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return;
@@ -680,9 +683,10 @@
return ClientRect::create(renderer->absoluteBoundingBoxRectIgnoringTransforms());
}
-PassRefPtr<ClientRectList> Internals::inspectorHighlightRects(Document* document, ExceptionCode& ec)
+PassRefPtr<ClientRectList> Internals::inspectorHighlightRects(ExceptionCode& ec)
{
#if ENABLE(INSPECTOR)
+ Document* document = contextDocument();
if (!document || !document->page() || !document->page()->inspectorController()) {
ec = INVALID_ACCESS_ERR;
return ClientRectList::create();
@@ -692,15 +696,15 @@
document->page()->inspectorController()->getHighlight(&highlight);
return ClientRectList::create(highlight.quads);
#else
- UNUSED_PARAM(document);
UNUSED_PARAM(ec);
return ClientRectList::create();
#endif
}
-String Internals::inspectorHighlightObject(Document* document, ExceptionCode& ec)
+String Internals::inspectorHighlightObject(ExceptionCode& ec)
{
#if ENABLE(INSPECTOR)
+ Document* document = contextDocument();
if (!document || !document->page() || !document->page()->inspectorController()) {
ec = INVALID_ACCESS_ERR;
return String();
@@ -708,7 +712,6 @@
RefPtr<InspectorObject> object = document->page()->inspectorController()->buildObjectForHighlightedNode();
return object ? object->toJSONString() : String();
#else
- UNUSED_PARAM(document);
UNUSED_PARAM(ec);
return String();
#endif
@@ -771,8 +774,9 @@
range->ownerDocument().markers().addTextMatchMarker(range, isActive);
}
-void Internals::setScrollViewPosition(Document* document, long x, long y, ExceptionCode& ec)
+void Internals::setScrollViewPosition(long x, long y, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->view()) {
ec = INVALID_ACCESS_ERR;
return;
@@ -789,8 +793,9 @@
frameView->setConstrainsScrollingToContentEdge(constrainsScrollingToContentEdgeOldValue);
}
-void Internals::setPagination(Document* document, const String& mode, int gap, int pageLength, ExceptionCode& ec)
+void Internals::setPagination(const String& mode, int gap, int pageLength, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->page()) {
ec = INVALID_ACCESS_ERR;
return;
@@ -818,8 +823,9 @@
page->setPagination(pagination);
}
-String Internals::configurationForViewport(Document* document, float devicePixelRatio, int deviceWidth, int deviceHeight, int availableWidth, int availableHeight, ExceptionCode& ec)
+String Internals::configurationForViewport(float devicePixelRatio, int deviceWidth, int deviceHeight, int availableWidth, int availableHeight, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->page()) {
ec = INVALID_ACCESS_ERR;
return String();
@@ -936,8 +942,9 @@
frameView->scrollElementToRect(element, IntRect(x, y, w, h));
}
-void Internals::paintControlTints(Document* document, ExceptionCode& ec)
+void Internals::paintControlTints(ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->view()) {
ec = INVALID_ACCESS_ERR;
return;
@@ -993,8 +1000,9 @@
return range->text();
}
-void Internals::setDelegatesScrolling(bool enabled, Document* document, ExceptionCode& ec)
+void Internals::setDelegatesScrolling(bool enabled, ExceptionCode& ec)
{
+ Document* document = contextDocument();
// Delegate scrolling is valid only on mainframe's view.
if (!document || !document->view() || !document->page() || &document->page()->mainFrame() != document->frame()) {
ec = INVALID_ACCESS_ERR;
@@ -1005,8 +1013,9 @@
}
#if ENABLE(TOUCH_ADJUSTMENT)
-PassRefPtr<WebKitPoint> Internals::touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document* document, ExceptionCode& ec)
+PassRefPtr<WebKitPoint> Internals::touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return 0;
@@ -1025,8 +1034,9 @@
return 0;
}
-Node* Internals::touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document* document, ExceptionCode& ec)
+Node* Internals::touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return 0;
@@ -1041,8 +1051,9 @@
return targetNode;
}
-PassRefPtr<WebKitPoint> Internals::touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document* document, ExceptionCode& ec)
+PassRefPtr<WebKitPoint> Internals::touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return 0;
@@ -1061,8 +1072,9 @@
return WebKitPoint::create(x, y);
}
-Node* Internals::touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document* document, ExceptionCode& ec)
+Node* Internals::touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, long height, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return 0;
@@ -1077,8 +1089,9 @@
return targetNode;
}
-PassRefPtr<ClientRect> Internals::bestZoomableAreaForTouchPoint(long x, long y, long width, long height, Document* document, ExceptionCode& ec)
+PassRefPtr<ClientRect> Internals::bestZoomableAreaForTouchPoint(long x, long y, long width, long height, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return 0;
@@ -1098,8 +1111,9 @@
#endif
-int Internals::lastSpellCheckRequestSequence(Document* document, ExceptionCode& ec)
+int Internals::lastSpellCheckRequestSequence(ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return -1;
@@ -1108,8 +1122,9 @@
return document->frame()->editor().spellChecker().lastRequestSequence();
}
-int Internals::lastSpellCheckProcessedSequence(Document* document, ExceptionCode& ec)
+int Internals::lastSpellCheckProcessedSequence(ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return -1;
@@ -1128,8 +1143,9 @@
WebCore::overrideUserPreferredLanguages(languages);
}
-unsigned Internals::wheelEventHandlerCount(Document* document, ExceptionCode& ec)
+unsigned Internals::wheelEventHandlerCount(ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document) {
ec = INVALID_ACCESS_ERR;
return 0;
@@ -1138,8 +1154,9 @@
return document->wheelEventHandlerCount();
}
-unsigned Internals::touchEventHandlerCount(Document* document, ExceptionCode& ec)
+unsigned Internals::touchEventHandlerCount(ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document) {
ec = INVALID_ACCESS_ERR;
return 0;
@@ -1155,6 +1172,10 @@
return count;
}
+// FIXME: Remove the document argument. It is almost always the same as
+// contextDocument(), with the exception of a few tests that pass a
+// different document, and could just make the call through another Internals
+// instance instead.
PassRefPtr<NodeList> Internals::nodesFromRect(Document* document, int centerX, int centerY, unsigned topPadding, unsigned rightPadding,
unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowShadowContent, bool allowChildFrameContent, ExceptionCode& ec) const
{
@@ -1224,8 +1245,9 @@
#endif
}
-void Internals::setBatteryStatus(Document* document, const String& eventType, bool charging, double chargingTime, double dischargingTime, double level, ExceptionCode& ec)
+void Internals::setBatteryStatus(const String& eventType, bool charging, double chargingTime, double dischargingTime, double level, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->page()) {
ec = INVALID_ACCESS_ERR;
return;
@@ -1242,8 +1264,9 @@
#endif
}
-void Internals::setNetworkInformation(Document* document, const String& eventType, double bandwidth, bool metered, ExceptionCode& ec)
+void Internals::setNetworkInformation(const String& eventType, double bandwidth, bool metered, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->page()) {
ec = INVALID_ACCESS_ERR;
return;
@@ -1258,8 +1281,9 @@
#endif
}
-void Internals::setDeviceProximity(Document* document, const String& eventType, double value, double min, double max, ExceptionCode& ec)
+void Internals::setDeviceProximity(const String& eventType, double value, double min, double max, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->page()) {
ec = INVALID_ACCESS_ERR;
return;
@@ -1275,16 +1299,18 @@
#endif
}
-bool Internals::hasSpellingMarker(Document* document, int from, int length, ExceptionCode&)
+bool Internals::hasSpellingMarker(int from, int length, ExceptionCode&)
{
+ Document* document = contextDocument();
if (!document || !document->frame())
return 0;
return document->frame()->editor().selectionStartHasMarkerFor(DocumentMarker::Spelling, from, length);
}
-bool Internals::hasAutocorrectedMarker(Document* document, int from, int length, ExceptionCode&)
+bool Internals::hasAutocorrectedMarker(int from, int length, ExceptionCode&)
{
+ Document* document = contextDocument();
if (!document || !document->frame())
return 0;
@@ -1365,16 +1391,18 @@
#endif
}
-bool Internals::isOverwriteModeEnabled(Document* document, ExceptionCode&)
+bool Internals::isOverwriteModeEnabled(ExceptionCode&)
{
+ Document* document = contextDocument();
if (!document || !document->frame())
return 0;
return document->frame()->editor().isOverwriteModeEnabled();
}
-void Internals::toggleOverwriteModeEnabled(Document* document, ExceptionCode&)
+void Internals::toggleOverwriteModeEnabled(ExceptionCode&)
{
+ Document* document = contextDocument();
if (!document || !document->frame())
return;
@@ -1392,8 +1420,12 @@
return InspectorCounters::counterValue(InspectorCounters::DocumentCounter);
}
-Vector<String> Internals::consoleMessageArgumentCounts(Document* document) const
+Vector<String> Internals::consoleMessageArgumentCounts() const
{
+ Document* document = contextDocument();
+ if (!document || !document->page())
+ return Vector<String>();
+
InstrumentingAgents* instrumentingAgents = instrumentationForPage(document->page());
if (!instrumentingAgents)
return Vector<String>();
@@ -1472,16 +1504,21 @@
}
#endif // ENABLE(INSPECTOR)
-bool Internals::hasGrammarMarker(Document* document, int from, int length, ExceptionCode&)
+bool Internals::hasGrammarMarker(int from, int length, ExceptionCode&)
{
+ Document* document = contextDocument();
if (!document || !document->frame())
return 0;
return document->frame()->editor().selectionStartHasMarkerFor(DocumentMarker::Grammar, from, length);
}
-unsigned Internals::numberOfScrollableAreas(Document* document, ExceptionCode&)
+unsigned Internals::numberOfScrollableAreas(ExceptionCode&)
{
+ Document* document = contextDocument();
+ if (!document || !document->frame())
+ return 0;
+
unsigned count = 0;
Frame* frame = document->frame();
if (frame->view()->scrollableAreas())
@@ -1495,8 +1532,9 @@
return count;
}
-bool Internals::isPageBoxVisible(Document* document, int pageNumber, ExceptionCode& ec)
+bool Internals::isPageBoxVisible(int pageNumber, ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document) {
ec = INVALID_ACCESS_ERR;
return false;
@@ -1505,6 +1543,10 @@
return document->isPageBoxVisible(pageNumber);
}
+// FIXME: Remove the document argument. It is almost always the same as
+// contextDocument(), with the exception of a few tests that pass a
+// different document, and could just make the call through another Internals
+// instance instead.
String Internals::layerTreeAsText(Document* document, ExceptionCode& ec) const
{
return layerTreeAsText(document, 0, ec);
@@ -1532,8 +1574,9 @@
return document->frame()->layerTreeAsText(layerTreeFlags);
}
-String Internals::repaintRectsAsText(Document* document, ExceptionCode& ec) const
+String Internals::repaintRectsAsText(ExceptionCode& ec) const
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return String();
@@ -1542,8 +1585,9 @@
return document->frame()->trackedRepaintRectsAsText();
}
-String Internals::scrollingStateTreeAsText(Document* document, ExceptionCode& ec) const
+String Internals::scrollingStateTreeAsText(ExceptionCode& ec) const
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return String();
@@ -1556,8 +1600,9 @@
return page->scrollingStateTreeAsText();
}
-String Internals::mainThreadScrollingReasons(Document* document, ExceptionCode& ec) const
+String Internals::mainThreadScrollingReasons(ExceptionCode& ec) const
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return String();
@@ -1570,8 +1615,9 @@
return page->mainThreadScrollingReasonsAsText();
}
-PassRefPtr<ClientRectList> Internals::nonFastScrollableRects(Document* document, ExceptionCode& ec) const
+PassRefPtr<ClientRectList> Internals::nonFastScrollableRects(ExceptionCode& ec) const
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return 0;
@@ -1584,8 +1630,9 @@
return page->nonFastScrollableRects(document->frame());
}
-void Internals::garbageCollectDocumentResources(Document* document, ExceptionCode& ec) const
+void Internals::garbageCollectDocumentResources(ExceptionCode& ec) const
{
+ Document* document = contextDocument();
if (!document) {
ec = INVALID_ACCESS_ERR;
return;
@@ -1602,8 +1649,9 @@
TextRun::setAllowsRoundingHacks(true);
}
-void Internals::insertAuthorCSS(Document* document, const String& css, ExceptionCode& ec) const
+void Internals::insertAuthorCSS(const String& css, ExceptionCode& ec) const
{
+ Document* document = contextDocument();
if (!document) {
ec = INVALID_ACCESS_ERR;
return;
@@ -1615,8 +1663,9 @@
document->styleSheetCollection().addAuthorSheet(std::move(parsedSheet));
}
-void Internals::insertUserCSS(Document* document, const String& css, ExceptionCode& ec) const
+void Internals::insertUserCSS(const String& css, ExceptionCode& ec) const
{
+ Document* document = contextDocument();
if (!document) {
ec = INVALID_ACCESS_ERR;
return;
@@ -1656,14 +1705,14 @@
return array;
}
-Vector<String> Internals::shortcutIconURLs(Document* document) const
+Vector<String> Internals::shortcutIconURLs() const
{
- return iconURLs(document, Favicon);
+ return iconURLs(contextDocument(), Favicon);
}
-Vector<String> Internals::allIconURLs(Document* document) const
+Vector<String> Internals::allIconURLs() const
{
- return iconURLs(document, Favicon | TouchIcon | TouchPrecomposedIcon);
+ return iconURLs(contextDocument(), Favicon | TouchIcon | TouchPrecomposedIcon);
}
int Internals::numberOfPages(float pageWidth, float pageHeight)
@@ -1705,8 +1754,9 @@
page->setPageScaleFactor(scaleFactor, IntPoint(x, y));
}
-void Internals::setHeaderHeight(Document* document, float height)
+void Internals::setHeaderHeight(float height)
{
+ Document* document = contextDocument();
if (!document || !document->view())
return;
#if USE(ACCELERATED_COMPOSITING)
@@ -1715,8 +1765,9 @@
#endif
}
-void Internals::setFooterHeight(Document* document, float height)
+void Internals::setFooterHeight(float height)
{
+ Document* document = contextDocument();
if (!document || !document->view())
return;
#if USE(ACCELERATED_COMPOSITING)
@@ -1726,29 +1777,33 @@
}
#if ENABLE(FULLSCREEN_API)
-void Internals::webkitWillEnterFullScreenForElement(Document* document, Element* element)
+void Internals::webkitWillEnterFullScreenForElement(Element* element)
{
+ Document* document = contextDocument();
if (!document)
return;
document->webkitWillEnterFullScreenForElement(element);
}
-void Internals::webkitDidEnterFullScreenForElement(Document* document, Element* element)
+void Internals::webkitDidEnterFullScreenForElement(Element* element)
{
+ Document* document = contextDocument();
if (!document)
return;
document->webkitDidEnterFullScreenForElement(element);
}
-void Internals::webkitWillExitFullScreenForElement(Document* document, Element* element)
+void Internals::webkitWillExitFullScreenForElement(Element* element)
{
+ Document* document = contextDocument();
if (!document)
return;
document->webkitWillExitFullScreenForElement(element);
}
-void Internals::webkitDidExitFullScreenForElement(Document* document, Element* element)
+void Internals::webkitDidExitFullScreenForElement(Element* element)
{
+ Document* document = contextDocument();
if (!document)
return;
document->webkitDidExitFullScreenForElement(element);
@@ -1786,8 +1841,9 @@
return FormController::getReferencedFilePaths(frame()->loader().history().currentItem()->documentState());
}
-void Internals::startTrackingRepaints(Document* document, ExceptionCode& ec)
+void Internals::startTrackingRepaints(ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->view()) {
ec = INVALID_ACCESS_ERR;
return;
@@ -1797,8 +1853,9 @@
frameView->setTracksRepaints(true);
}
-void Internals::stopTrackingRepaints(Document* document, ExceptionCode& ec)
+void Internals::stopTrackingRepaints(ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->view()) {
ec = INVALID_ACCESS_ERR;
return;
@@ -1863,8 +1920,9 @@
}
#endif
-String Internals::getCurrentCursorInfo(Document* document, ExceptionCode& ec)
+String Internals::getCurrentCursorInfo(ExceptionCode& ec)
{
+ Document* document = contextDocument();
if (!document || !document->frame()) {
ec = INVALID_ACCESS_ERR;
return String();
diff --git a/Source/WebCore/testing/Internals.h b/Source/WebCore/testing/Internals.h
index 1beba03..057a67f 100644
--- a/Source/WebCore/testing/Internals.h
+++ b/Source/WebCore/testing/Internals.h
@@ -98,9 +98,9 @@
// CSS Animation testing.
unsigned numberOfActiveAnimations() const;
- bool animationsAreSuspended(Document*, ExceptionCode&) const;
- void suspendAnimations(Document*, ExceptionCode&) const;
- void resumeAnimations(Document*, ExceptionCode&) const;
+ bool animationsAreSuspended(ExceptionCode&) const;
+ void suspendAnimations(ExceptionCode&) const;
+ void resumeAnimations(ExceptionCode&) const;
bool pauseAnimationAtTimeOnElement(const String& animationName, double pauseTime, Element*, ExceptionCode&);
bool pauseAnimationAtTimeOnPseudoElement(const String& animationName, double pauseTime, Element*, const String& pseudoId, ExceptionCode&);
@@ -128,18 +128,18 @@
PassRefPtr<ClientRect> boundingBox(Element*, ExceptionCode&);
- PassRefPtr<ClientRectList> inspectorHighlightRects(Document*, ExceptionCode&);
- String inspectorHighlightObject(Document*, ExceptionCode&);
+ PassRefPtr<ClientRectList> inspectorHighlightRects(ExceptionCode&);
+ String inspectorHighlightObject(ExceptionCode&);
unsigned markerCountForNode(Node*, const String&, ExceptionCode&);
PassRefPtr<Range> markerRangeForNode(Node*, const String& markerType, unsigned index, ExceptionCode&);
String markerDescriptionForNode(Node*, const String& markerType, unsigned index, ExceptionCode&);
void addTextMatchMarker(const Range*, bool isActive);
- void setScrollViewPosition(Document*, long x, long y, ExceptionCode&);
- void setPagination(Document* document, const String& mode, int gap, ExceptionCode& ec) { setPagination(document, mode, gap, 0, ec); }
- void setPagination(Document*, const String& mode, int gap, int pageLength, ExceptionCode&);
- String configurationForViewport(Document*, float devicePixelRatio, int deviceWidth, int deviceHeight, int availableWidth, int availableHeight, ExceptionCode&);
+ void setScrollViewPosition(long x, long y, ExceptionCode&);
+ void setPagination(const String& mode, int gap, ExceptionCode& ec) { setPagination(mode, gap, 0, ec); }
+ void setPagination(const String& mode, int gap, int pageLength, ExceptionCode&);
+ String configurationForViewport(float devicePixelRatio, int deviceWidth, int deviceHeight, int availableWidth, int availableHeight, ExceptionCode&);
bool wasLastChangeUserEdit(Element* textField, ExceptionCode&);
bool elementShouldAutoComplete(Element* inputElement, ExceptionCode&);
@@ -149,30 +149,30 @@
void setAutofilled(Element*, bool enabled, ExceptionCode&);
void scrollElementToRect(Element*, long x, long y, long w, long h, ExceptionCode&);
- void paintControlTints(Document*, ExceptionCode&);
+ void paintControlTints(ExceptionCode&);
PassRefPtr<Range> rangeFromLocationAndLength(Element* scope, int rangeLocation, int rangeLength, ExceptionCode&);
unsigned locationFromRange(Element* scope, const Range*, ExceptionCode&);
unsigned lengthFromRange(Element* scope, const Range*, ExceptionCode&);
String rangeAsText(const Range*, ExceptionCode&);
- void setDelegatesScrolling(bool enabled, Document*, ExceptionCode&);
+ void setDelegatesScrolling(bool enabled, ExceptionCode&);
#if ENABLE(TOUCH_ADJUSTMENT)
- PassRefPtr<WebKitPoint> touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document*, ExceptionCode&);
- Node* touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document*, ExceptionCode&);
- PassRefPtr<WebKitPoint> touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document*, ExceptionCode&);
- Node* touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document*, ExceptionCode&);
- PassRefPtr<ClientRect> bestZoomableAreaForTouchPoint(long x, long y, long width, long height, Document*, ExceptionCode&);
+ PassRefPtr<WebKitPoint> touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, ExceptionCode&);
+ Node* touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, ExceptionCode&);
+ PassRefPtr<WebKitPoint> touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, ExceptionCode&);
+ Node* touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, long height, ExceptionCode&);
+ PassRefPtr<ClientRect> bestZoomableAreaForTouchPoint(long x, long y, long width, long height, ExceptionCode&);
#endif
- int lastSpellCheckRequestSequence(Document*, ExceptionCode&);
- int lastSpellCheckProcessedSequence(Document*, ExceptionCode&);
+ int lastSpellCheckRequestSequence(ExceptionCode&);
+ int lastSpellCheckProcessedSequence(ExceptionCode&);
Vector<String> userPreferredLanguages() const;
void setUserPreferredLanguages(const Vector<String>&);
- unsigned wheelEventHandlerCount(Document*, ExceptionCode&);
- unsigned touchEventHandlerCount(Document*, ExceptionCode&);
+ unsigned wheelEventHandlerCount(ExceptionCode&);
+ unsigned touchEventHandlerCount(ExceptionCode&);
PassRefPtr<NodeList> nodesFromRect(Document*, int x, int y, unsigned topPadding, unsigned rightPadding,
unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool allowShadowContent, bool allowChildFrameContent, ExceptionCode&) const;
@@ -180,9 +180,9 @@
void emitInspectorDidBeginFrame();
void emitInspectorDidCancelFrame();
- bool hasSpellingMarker(Document*, int from, int length, ExceptionCode&);
- bool hasGrammarMarker(Document*, int from, int length, ExceptionCode&);
- bool hasAutocorrectedMarker(Document*, int from, int length, ExceptionCode&);
+ bool hasSpellingMarker(int from, int length, ExceptionCode&);
+ bool hasGrammarMarker(int from, int length, ExceptionCode&);
+ bool hasAutocorrectedMarker(int from, int length, ExceptionCode&);
void setContinuousSpellCheckingEnabled(bool enabled, ExceptionCode&);
void setAutomaticQuoteSubstitutionEnabled(bool enabled, ExceptionCode&);
void setAutomaticLinkDetectionEnabled(bool enabled, ExceptionCode&);
@@ -190,23 +190,23 @@
void setAutomaticTextReplacementEnabled(bool enabled, ExceptionCode&);
void setAutomaticSpellingCorrectionEnabled(bool enabled, ExceptionCode&);
- bool isOverwriteModeEnabled(Document*, ExceptionCode&);
- void toggleOverwriteModeEnabled(Document*, ExceptionCode&);
+ bool isOverwriteModeEnabled(ExceptionCode&);
+ void toggleOverwriteModeEnabled(ExceptionCode&);
- unsigned numberOfScrollableAreas(Document*, ExceptionCode&);
+ unsigned numberOfScrollableAreas(ExceptionCode&);
- bool isPageBoxVisible(Document*, int pageNumber, ExceptionCode&);
+ bool isPageBoxVisible(int pageNumber, ExceptionCode&);
static const char* internalsId;
InternalSettings* settings() const;
unsigned workerThreadCount() const;
- void setBatteryStatus(Document*, const String& eventType, bool charging, double chargingTime, double dischargingTime, double level, ExceptionCode&);
+ void setBatteryStatus(const String& eventType, bool charging, double chargingTime, double dischargingTime, double level, ExceptionCode&);
- void setNetworkInformation(Document*, const String& eventType, double bandwidth, bool metered, ExceptionCode&);
+ void setNetworkInformation(const String& eventType, double bandwidth, bool metered, ExceptionCode&);
- void setDeviceProximity(Document*, const String& eventType, double value, double min, double max, ExceptionCode&);
+ void setDeviceProximity(const String& eventType, double value, double min, double max, ExceptionCode&);
enum {
// Values need to be kept in sync with Internals.idl.
@@ -218,22 +218,22 @@
};
String layerTreeAsText(Document*, unsigned flags, ExceptionCode&) const;
String layerTreeAsText(Document*, ExceptionCode&) const;
- String repaintRectsAsText(Document*, ExceptionCode&) const;
- String scrollingStateTreeAsText(Document*, ExceptionCode&) const;
- String mainThreadScrollingReasons(Document*, ExceptionCode&) const;
- PassRefPtr<ClientRectList> nonFastScrollableRects(Document*, ExceptionCode&) const;
+ String repaintRectsAsText(ExceptionCode&) const;
+ String scrollingStateTreeAsText(ExceptionCode&) const;
+ String mainThreadScrollingReasons(ExceptionCode&) const;
+ PassRefPtr<ClientRectList> nonFastScrollableRects(ExceptionCode&) const;
- void garbageCollectDocumentResources(Document*, ExceptionCode&) const;
+ void garbageCollectDocumentResources(ExceptionCode&) const;
void allowRoundingHacks() const;
- void insertAuthorCSS(Document*, const String&, ExceptionCode&) const;
- void insertUserCSS(Document*, const String&, ExceptionCode&) const;
+ void insertAuthorCSS(const String&, ExceptionCode&) const;
+ void insertUserCSS(const String&, ExceptionCode&) const;
#if ENABLE(INSPECTOR)
unsigned numberOfLiveNodes() const;
unsigned numberOfLiveDocuments() const;
- Vector<String> consoleMessageArgumentCounts(Document*) const;
+ Vector<String> consoleMessageArgumentCounts() const;
PassRefPtr<DOMWindow> openDummyInspectorFrontend(const String& url);
void closeDummyInspectorFrontend();
void setInspectorResourcesDataSizeLimits(int maximumResourcesContentSize, int maximumSingleResourceContentSize, ExceptionCode&);
@@ -243,8 +243,8 @@
String counterValue(Element*);
int pageNumber(Element*, float pageWidth = 800, float pageHeight = 600);
- Vector<String> shortcutIconURLs(Document*) const;
- Vector<String> allIconURLs(Document*) const;
+ Vector<String> shortcutIconURLs() const;
+ Vector<String> allIconURLs() const;
int numberOfPages(float pageWidthInPixels = 800, float pageHeightInPixels = 600);
String pageProperty(String, int, ExceptionCode& = ASSERT_NO_EXCEPTION) const;
@@ -252,14 +252,14 @@
void setPageScaleFactor(float scaleFactor, int x, int y, ExceptionCode&);
- void setHeaderHeight(Document*, float);
- void setFooterHeight(Document*, float);
+ void setHeaderHeight(float);
+ void setFooterHeight(float);
#if ENABLE(FULLSCREEN_API)
- void webkitWillEnterFullScreenForElement(Document*, Element*);
- void webkitDidEnterFullScreenForElement(Document*, Element*);
- void webkitWillExitFullScreenForElement(Document*, Element*);
- void webkitDidExitFullScreenForElement(Document*, Element*);
+ void webkitWillEnterFullScreenForElement(Element*);
+ void webkitDidEnterFullScreenForElement(Element*);
+ void webkitWillExitFullScreenForElement(Element*);
+ void webkitDidExitFullScreenForElement(Element*);
#endif
void registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme);
@@ -271,15 +271,15 @@
Vector<String> getReferencedFilePaths() const;
- void startTrackingRepaints(Document*, ExceptionCode&);
- void stopTrackingRepaints(Document*, ExceptionCode&);
+ void startTrackingRepaints(ExceptionCode&);
+ void stopTrackingRepaints(ExceptionCode&);
PassRefPtr<ArrayBuffer> serializeObject(PassRefPtr<SerializedScriptValue>) const;
PassRefPtr<SerializedScriptValue> deserializeBuffer(PassRefPtr<ArrayBuffer>) const;
void setUsesOverlayScrollbars(bool enabled);
- String getCurrentCursorInfo(Document*, ExceptionCode&);
+ String getCurrentCursorInfo(ExceptionCode&);
String markerTextForListItem(Element*, ExceptionCode&);
diff --git a/Source/WebCore/testing/Internals.idl b/Source/WebCore/testing/Internals.idl
index baa41c5..c57c9d8 100644
--- a/Source/WebCore/testing/Internals.idl
+++ b/Source/WebCore/testing/Internals.idl
@@ -56,9 +56,9 @@
// CSS Animation testing.
unsigned long numberOfActiveAnimations();
- [RaisesException] void suspendAnimations(Document document);
- [RaisesException] void resumeAnimations(Document document);
- [RaisesException] boolean animationsAreSuspended(in Document document);
+ [RaisesException] void suspendAnimations();
+ [RaisesException] void resumeAnimations();
+ [RaisesException] boolean animationsAreSuspended();
[RaisesException] boolean pauseAnimationAtTimeOnElement(DOMString animationName, double pauseTime, Element element);
[RaisesException] boolean pauseAnimationAtTimeOnPseudoElement(DOMString animationName, double pauseTime, Element element, DOMString pseudoId);
@@ -79,20 +79,19 @@
[RaisesException] ClientRect boundingBox(Element element);
- [RaisesException] ClientRectList inspectorHighlightRects(Document document);
- [RaisesException] DOMString inspectorHighlightObject(Document document);
+ [RaisesException] ClientRectList inspectorHighlightRects();
+ [RaisesException] DOMString inspectorHighlightObject();
[RaisesException] unsigned long markerCountForNode(Node node, DOMString markerType);
[RaisesException] Range markerRangeForNode(Node node, DOMString markerType, unsigned long index);
[RaisesException] DOMString markerDescriptionForNode(Node node, DOMString markerType, unsigned long index);
void addTextMatchMarker(Range range, boolean isActive);
- [RaisesException] void setScrollViewPosition(Document document, long x, long y);
+ [RaisesException] void setScrollViewPosition(long x, long y);
- [RaisesException] void setPagination(Document document, DOMString mode, long gap, optional long pageLength);
+ [RaisesException] void setPagination(DOMString mode, long gap, optional long pageLength);
- [RaisesException] DOMString configurationForViewport(Document document,
- float devicePixelRatio,
+ [RaisesException] DOMString configurationForViewport(float devicePixelRatio,
long deviceWidth,
long deviceHeight,
long availableWidth,
@@ -105,7 +104,7 @@
[RaisesException] void setEditingValue(Element inputElement, DOMString value);
[RaisesException] void setAutofilled(Element inputElement, boolean enabled);
- [RaisesException] void paintControlTints(Document document);
+ [RaisesException] void paintControlTints();
[RaisesException] void scrollElementToRect(Element element, long x, long y, long w, long h);
@@ -114,23 +113,23 @@
[RaisesException] unsigned long lengthFromRange(Element scope, Range range);
[RaisesException] DOMString rangeAsText(Range range);
- [RaisesException] void setDelegatesScrolling(boolean enabled, Document document);
+ [RaisesException] void setDelegatesScrolling(boolean enabled);
#if defined(ENABLE_TOUCH_ADJUSTMENT) && ENABLE_TOUCH_ADJUSTMENT
- [RaisesException] WebKitPoint touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height, Document document);
- [RaisesException] Node touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height, Document document);
- [RaisesException] WebKitPoint touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document document);
- [RaisesException] Node touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, long height, Document document);
- [RaisesException] ClientRect bestZoomableAreaForTouchPoint(long x, long y, long width, long height, Document document);
+ [RaisesException] WebKitPoint touchPositionAdjustedToBestClickableNode(long x, long y, long width, long height);
+ [RaisesException] Node touchNodeAdjustedToBestClickableNode(long x, long y, long width, long height);
+ [RaisesException] WebKitPoint touchPositionAdjustedToBestContextMenuNode(long x, long y, long width, long height);
+ [RaisesException] Node touchNodeAdjustedToBestContextMenuNode(long x, long y, long width, long height);
+ [RaisesException] ClientRect bestZoomableAreaForTouchPoint(long x, long y, long width, long height);
#endif
- [RaisesException] long lastSpellCheckRequestSequence(Document document);
- [RaisesException] long lastSpellCheckProcessedSequence(Document document);
+ [RaisesException] long lastSpellCheckRequestSequence();
+ [RaisesException] long lastSpellCheckProcessedSequence();
sequence<DOMString> userPreferredLanguages();
void setUserPreferredLanguages(sequence<DOMString> languages);
- [RaisesException] unsigned long wheelEventHandlerCount(Document document);
- [RaisesException] unsigned long touchEventHandlerCount(Document document);
+ [RaisesException] unsigned long wheelEventHandlerCount();
+ [RaisesException] unsigned long touchEventHandlerCount();
[RaisesException] NodeList nodesFromRect(Document document, long x, long y,
unsigned long topPadding, unsigned long rightPadding, unsigned long bottomPadding, unsigned long leftPadding,
@@ -139,9 +138,9 @@
void emitInspectorDidBeginFrame();
void emitInspectorDidCancelFrame();
- [RaisesException] boolean hasSpellingMarker(Document document, long from, long length);
- [RaisesException] boolean hasGrammarMarker(Document document, long from, long length);
- [RaisesException] boolean hasAutocorrectedMarker(Document document, long from, long length);
+ [RaisesException] boolean hasSpellingMarker(long from, long length);
+ [RaisesException] boolean hasGrammarMarker(long from, long length);
+ [RaisesException] boolean hasAutocorrectedMarker(long from, long length);
[RaisesException] void setContinuousSpellCheckingEnabled(boolean enabled);
[RaisesException] void setAutomaticQuoteSubstitutionEnabled(boolean enabled);
[RaisesException] void setAutomaticLinkDetectionEnabled(boolean enabled);
@@ -149,12 +148,12 @@
[RaisesException] void setAutomaticTextReplacementEnabled(boolean enabled);
[RaisesException] void setAutomaticSpellingCorrectionEnabled(boolean enabled);
- [RaisesException] boolean isOverwriteModeEnabled(Document document);
- [RaisesException] void toggleOverwriteModeEnabled(Document document);
+ [RaisesException] boolean isOverwriteModeEnabled();
+ [RaisesException] void toggleOverwriteModeEnabled();
- [RaisesException] unsigned long numberOfScrollableAreas(Document document);
+ [RaisesException] unsigned long numberOfScrollableAreas();
- [RaisesException] boolean isPageBoxVisible(Document document, long pageNumber);
+ [RaisesException] boolean isPageBoxVisible(long pageNumber);
readonly attribute InternalSettings settings;
readonly attribute unsigned long workerThreadCount;
@@ -167,34 +166,34 @@
const unsigned short LAYER_TREE_INCLUDES_CONTENT_LAYERS = 16;
[RaisesException] DOMString layerTreeAsText(Document document, optional unsigned short flags);
- [RaisesException] DOMString scrollingStateTreeAsText(Document document);
- [RaisesException] DOMString mainThreadScrollingReasons(Document document);
- [RaisesException] ClientRectList nonFastScrollableRects(Document document);
+ [RaisesException] DOMString scrollingStateTreeAsText();
+ [RaisesException] DOMString mainThreadScrollingReasons();
+ [RaisesException] ClientRectList nonFastScrollableRects();
- [RaisesException] DOMString repaintRectsAsText(Document document);
+ [RaisesException] DOMString repaintRectsAsText();
- [RaisesException] void garbageCollectDocumentResources(Document document);
+ [RaisesException] void garbageCollectDocumentResources();
void allowRoundingHacks();
- [RaisesException] void insertAuthorCSS(Document document, DOMString css);
- [RaisesException] void insertUserCSS(Document document, DOMString css);
+ [RaisesException] void insertAuthorCSS(DOMString css);
+ [RaisesException] void insertUserCSS(DOMString css);
#if defined(ENABLE_BATTERY_STATUS) && ENABLE_BATTERY_STATUS
- [RaisesException] void setBatteryStatus(Document document, DOMString eventType, boolean charging, double chargingTime, double dischargingTime, double level);
+ [RaisesException] void setBatteryStatus(DOMString eventType, boolean charging, double chargingTime, double dischargingTime, double level);
#endif
#if defined(ENABLE_NETWORK_INFO) && ENABLE_NETWORK_INFO
- [RaisesException] void setNetworkInformation(Document document, DOMString eventType, double bandwidth, boolean metered);
+ [RaisesException] void setNetworkInformation(DOMString eventType, double bandwidth, boolean metered);
#endif
#if defined(ENABLE_PROXIMITY_EVENTS) && ENABLE_PROXIMITY_EVENTS
- [RaisesException] void setDeviceProximity(Document document, DOMString eventType, double value, double min, double max);
+ [RaisesException] void setDeviceProximity(DOMString eventType, double value, double min, double max);
#endif
[Conditional=INSPECTOR] unsigned long numberOfLiveNodes();
[Conditional=INSPECTOR] unsigned long numberOfLiveDocuments();
- [Conditional=INSPECTOR] sequence<DOMString> consoleMessageArgumentCounts(Document document);
+ [Conditional=INSPECTOR] sequence<DOMString> consoleMessageArgumentCounts();
[Conditional=INSPECTOR] DOMWindow openDummyInspectorFrontend(DOMString url);
[Conditional=INSPECTOR] void closeDummyInspectorFrontend();
[Conditional=INSPECTOR, RaisesException] void setInspectorResourcesDataSizeLimits(long maximumResourcesContentSize, long maximumSingleResourceContentSize);
@@ -202,22 +201,22 @@
DOMString counterValue(Element element);
long pageNumber(Element element, optional float pageWidth, optional float pageHeight);
- DOMString[] shortcutIconURLs(Document document);
- DOMString[] allIconURLs(Document document);
+ DOMString[] shortcutIconURLs();
+ DOMString[] allIconURLs();
long numberOfPages(optional double pageWidthInPixels, optional double pageHeightInPixels);
[RaisesException] DOMString pageProperty(DOMString propertyName, long pageNumber);
[RaisesException] DOMString pageSizeAndMarginsInPixels(long pageIndex, long width, long height, long marginTop, long marginRight, long marginBottom, long marginLeft);
[RaisesException] void setPageScaleFactor(float scaleFactor, long x, long y);
- void setHeaderHeight(Document document, float height);
- void setFooterHeight(Document document, float height);
+ void setHeaderHeight(float height);
+ void setFooterHeight(float height);
#if defined(ENABLE_FULLSCREEN_API) && ENABLE_FULLSCREEN_API
- void webkitWillEnterFullScreenForElement(Document document, Element element);
- void webkitDidEnterFullScreenForElement(Document document, Element element);
- void webkitWillExitFullScreenForElement(Document document, Element element);
- void webkitDidExitFullScreenForElement(Document document, Element element);
+ void webkitWillEnterFullScreenForElement(Element element);
+ void webkitDidEnterFullScreenForElement(Element element);
+ void webkitWillExitFullScreenForElement(Element element);
+ void webkitDidExitFullScreenForElement(Element element);
#endif
void registerURLSchemeAsBypassingContentSecurityPolicy(DOMString scheme);
@@ -231,11 +230,11 @@
// These functions both reset the tracked repaint rects. They are inteded to be used in the following order:
// startTrackingRepaints, repaintRectsAsText, stopTrackingRepaints.
- [RaisesException] void startTrackingRepaints(Document document);
- [RaisesException] void stopTrackingRepaints(Document document);
+ [RaisesException] void startTrackingRepaints();
+ [RaisesException] void stopTrackingRepaints();
// Returns a string with information about the mouse cursor used at the specified client location.
- [RaisesException] DOMString getCurrentCursorInfo(Document document);
+ [RaisesException] DOMString getCurrentCursorInfo();
[RaisesException] DOMString markerTextForListItem(Element element);