Move internals.settings.setPageScaleFactor to internals.setPageScaleFactor
authortony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Nov 2012 22:14:03 +0000 (22:14 +0000)
committertony@chromium.org <tony@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Nov 2012 22:14:03 +0000 (22:14 +0000)
commitd8a0175e4f33c58bfe58c1072529e687c73a4396
tree4abfb349a0fc8c077021cc5bce640bdbafb5ac65
parent3daf4d49bb0da052441834108bb11ad13a81f787
Move internals.settings.setPageScaleFactor to internals.setPageScaleFactor
https://bugs.webkit.org/show_bug.cgi?id=103559

Reviewed by Jochen Eisinger.

Source/WebCore:

This method doesn't alter the Settings object, so move it to internals.

No new tests, this is a refactor.

* testing/InternalSettings.cpp: Remove.
* testing/InternalSettings.h: Remove.
* testing/InternalSettings.idl: Remove.
* testing/Internals.cpp:
(WebCore::Internals::resetToConsistentState): Add reset code.
(WebCore::Internals::setPageScaleFactor): Add method.
* testing/Internals.h: Add method.
* testing/Internals.idl: Add method.

LayoutTests:

This method doesn't alter the Settings object, so move it to internals.
Update the tests to call the right version.

* compositing/geometry/fixed-position-composited-page-scale-down.html:
* compositing/geometry/fixed-position-composited-page-scale-scroll.html:
* compositing/geometry/fixed-position-composited-page-scale.html:
* compositing/geometry/fixed-position-iframe-composited-page-scale-down.html:
* compositing/geometry/fixed-position-iframe-composited-page-scale.html:
* compositing/geometry/fixed-position-transform-composited-page-scale-down.html:
* compositing/geometry/fixed-position-transform-composited-page-scale.html:
* compositing/overflow/overflow-scaled-descendant-overlapping.html:
* compositing/repaint/page-scale-repaint.html:
* compositing/scaling/tiled-layer-recursion.html:
* fast/dom/Element/scale-page-bounding-client-rect-in-frame.html:
* fast/dom/Element/scale-page-bounding-client-rect.html:
* fast/dom/Element/scale-page-client-rects-in-frame.html:
* fast/dom/Element/scale-page-client-rects.html:
* fast/dom/Range/scale-page-bounding-client-rect.html:
* fast/dom/Range/scale-page-client-rects.html:
* fast/dom/elementFromPoint-scaled-scrolled.html:
* fast/dom/iframe-inner-size-scaling.html:
* fast/dom/window-inner-size-scaling.html:
* fast/dom/window-scroll-scaling.html:
* fast/events/scale-and-scroll-body.html:
* fast/events/scale-and-scroll-iframe-body.html:
* fast/events/scale-and-scroll-iframe-window.html:
* fast/events/scale-and-scroll-window.html:
* fast/events/script-tests/page-scaled-mouse-click-iframe.js:
(iframeLoaded):
* fast/events/script-tests/page-scaled-mouse-click.js:
* fast/events/scroll-in-scaled-page-with-overflow-hidden.html:
* fast/events/touch/page-scaled-touch-gesture-click.html:
* fast/events/touch/touch-scaled-scrolled.html:
* fast/frames/frame-set-rotation-hit.html:
* fast/frames/frame-set-scaling-hit.html:
* fast/frames/iframe-double-scale-contents.html:
* fast/repaint/background-scaling.html:
* fast/repaint/scale-page-shrink.html:
* fast/text/descent-clip-in-scaled-page-expected.html:
* fast/text/descent-clip-in-scaled-page.html:
* fast/transforms/selection-bounds-in-transformed-view.html:
* inspector/elements/highlight-node-scaled.html:
* platform/chromium-linux/compositing/gestures/gesture-tapHighlight-simple-scaled-document.html:
* svg/as-image/image-respects-pageScaleFactor-change.html:
* svg/as-image/image-respects-pageScaleFactor.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@136055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
49 files changed:
LayoutTests/ChangeLog
LayoutTests/compositing/geometry/fixed-position-composited-page-scale-down.html
LayoutTests/compositing/geometry/fixed-position-composited-page-scale-scroll.html
LayoutTests/compositing/geometry/fixed-position-composited-page-scale.html
LayoutTests/compositing/geometry/fixed-position-iframe-composited-page-scale-down.html
LayoutTests/compositing/geometry/fixed-position-iframe-composited-page-scale.html
LayoutTests/compositing/geometry/fixed-position-transform-composited-page-scale-down.html
LayoutTests/compositing/geometry/fixed-position-transform-composited-page-scale.html
LayoutTests/compositing/overflow/overflow-scaled-descendant-overlapping.html
LayoutTests/compositing/repaint/page-scale-repaint.html
LayoutTests/compositing/scaling/tiled-layer-recursion.html
LayoutTests/fast/dom/Element/scale-page-bounding-client-rect-in-frame.html
LayoutTests/fast/dom/Element/scale-page-bounding-client-rect.html
LayoutTests/fast/dom/Element/scale-page-client-rects-in-frame.html
LayoutTests/fast/dom/Element/scale-page-client-rects.html
LayoutTests/fast/dom/Range/scale-page-bounding-client-rect.html
LayoutTests/fast/dom/Range/scale-page-client-rects.html
LayoutTests/fast/dom/elementFromPoint-scaled-scrolled.html
LayoutTests/fast/dom/iframe-inner-size-scaling.html
LayoutTests/fast/dom/window-inner-size-scaling.html
LayoutTests/fast/dom/window-scroll-scaling.html
LayoutTests/fast/events/scale-and-scroll-body.html
LayoutTests/fast/events/scale-and-scroll-iframe-body.html
LayoutTests/fast/events/scale-and-scroll-iframe-window.html
LayoutTests/fast/events/scale-and-scroll-window.html
LayoutTests/fast/events/script-tests/page-scaled-mouse-click-iframe.js
LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js
LayoutTests/fast/events/scroll-in-scaled-page-with-overflow-hidden.html
LayoutTests/fast/events/touch/page-scaled-touch-gesture-click.html
LayoutTests/fast/events/touch/touch-scaled-scrolled.html
LayoutTests/fast/frames/frame-set-rotation-hit.html
LayoutTests/fast/frames/frame-set-scaling-hit.html
LayoutTests/fast/frames/iframe-double-scale-contents.html
LayoutTests/fast/repaint/background-scaling.html
LayoutTests/fast/repaint/scale-page-shrink.html
LayoutTests/fast/text/descent-clip-in-scaled-page-expected.html
LayoutTests/fast/text/descent-clip-in-scaled-page.html
LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html
LayoutTests/inspector/elements/highlight-node-scaled.html
LayoutTests/platform/chromium-linux/compositing/gestures/gesture-tapHighlight-simple-scaled-document.html
LayoutTests/svg/as-image/image-respects-pageScaleFactor-change.html
LayoutTests/svg/as-image/image-respects-pageScaleFactor.html
Source/WebCore/ChangeLog
Source/WebCore/testing/InternalSettings.cpp
Source/WebCore/testing/InternalSettings.h
Source/WebCore/testing/InternalSettings.idl
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl