[Refactoring][Internals] Should have InternalSettings
authormorrita@google.com <morrita@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jan 2012 19:04:10 +0000 (19:04 +0000)
committermorrita@google.com <morrita@google.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jan 2012 19:04:10 +0000 (19:04 +0000)
commitec31ed15f34e4b992d3f094aec73b5c9b33b7fc2
tree7032d1bfaa022e31afb37678973cf6a8cd9dab0e
parentb8ae6e7855ec9d39fd75423eb789f1d27a7429b4
[Refactoring][Internals] Should have InternalSettings
https://bugs.webkit.org/show_bug.cgi?id=76424

Source/WebCore:

Reviewed by Kent Tamura.

This change extracted setting related method from window.internals
to window.internals.settings object.
- Invoked Internals::reset() in the constructor to employ Document object.
- Moved setting and configuration related Internals methods to
  newly introduced InternalSettings object.

No new tests, covered by existing tests.

* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.am:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.gyp/WebCore.gyp:
* WebCore.gypi:
* WebCore.vcproj/WebCoreTestSupport.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* testing/InternalSettings.cpp: Added.
(WebCore::InternalSettings::create):
(WebCore::InternalSettings::~InternalSettings):
(WebCore::InternalSettings::InternalSettings):
(WebCore::InternalSettings::settings):
(WebCore::InternalSettings::document):
(WebCore::InternalSettings::page):
(WebCore::InternalSettings::setInspectorResourcesDataSizeLimits):
(WebCore::InternalSettings::setForceCompositingMode):
(WebCore::InternalSettings::setAcceleratedFiltersEnabled):
(WebCore::InternalSettings::setEnableCompositingForFixedPosition):
(WebCore::InternalSettings::setEnableCompositingForScrollableFrames):
(WebCore::InternalSettings::setAcceleratedDrawingEnabled):
(WebCore::InternalSettings::setEnableScrollAnimator):
(WebCore::InternalSettings::setZoomAnimatorTransform):
(WebCore::InternalSettings::setZoomParameters):
(WebCore::InternalSettings::setMockScrollbarsEnabled):
(WebCore::InternalSettings::setPasswordEchoEnabled):
(WebCore::InternalSettings::setPasswordEchoDurationInSeconds):
(WebCore::InternalSettings::setShouldLayoutFixedElementsRelativeToFrame):
(WebCore::InternalSettings::setUnifiedTextCheckingEnabled):
(WebCore::InternalSettings::unifiedTextCheckingEnabled):
(WebCore::InternalSettings::pageScaleFactor):
(WebCore::InternalSettings::setPageScaleFactor):
(WebCore::InternalSettings::setPerTileDrawingEnabled):
* testing/InternalSettings.h: Added.
* testing/InternalSettings.idl: Added.
* testing/Internals.cpp:
(WebCore::Internals::create):
(WebCore::Internals::Internals):
(WebCore::Internals::reset):
* testing/Internals.h:
(WebCore::Internals::settings):
* testing/Internals.idl:
* testing/js/WebCoreTestSupport.cpp:
(WebCoreTestSupport::injectInternalsObject):
* testing/v8/WebCoreTestSupport.cpp:
(WebCoreTestSupport::injectInternalsObject):

Tools:

Reviewed by Kent Tamura.

* GNUmakefile.am: Added so new files.

LayoutTests:

Updated to follow API receiver change.

Reviewed by Kent Tamura.

* compositing/geometry/fixed-position-composited-page-scale-down.html:
* compositing/geometry/fixed-position-composited-page-scale.html:
* compositing/geometry/fixed-position-composited-switch.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/iframes/resources/scrollgrandchild-inner.html:
* compositing/resources/mock_scrollbars.js:
* compositing/scaling/tiled-layer-recursion.html:
* editing/input/resources/password-echo.js:
(init):
* editing/spelling/spellcheck-async-mutation.html:
* editing/spelling/spellcheck-async.html:
* editing/spelling/spelling-unified-emulation.html:
* fast/dom/Element/scale-page-bounding-client-rect.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/iframe-inner-size-scaling.html:
* fast/dom/window-inner-size-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/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/fixed-in-page-scale.html:
* fast/repaint/fixed-right-bottom-in-page-scale.html:
* fast/repaint/fixed-right-in-page-scale.html:
* fast/repaint/scale-page-shrink.html:
* fast/transforms/selection-bounds-in-transformed-view.html:
* http/tests/inspector/network-test.js:
(resetInspectorResourcesData):
* http/tests/inspector/network/network-content-replacement-embed.html:
* http/tests/inspector/network/network-content-replacement-xhr.html:
* platform/chromium/compositing/accelerated-drawing/alpha.html:
* platform/chromium/compositing/accelerated-drawing/svg-filters.html:
* platform/chromium/compositing/force-compositing-mode/force-composite-empty.html:
* platform/chromium/compositing/force-compositing-mode/no-overflow-iframe-layer.html:
* platform/chromium/compositing/force-compositing-mode/overflow-hidden-iframe-layer.html:
* platform/chromium/compositing/force-compositing-mode/overflow-iframe-enter-compositing.html:
* platform/chromium/compositing/force-compositing-mode/overflow-iframe-layer.html:
* platform/chromium/compositing/force-compositing-mode/overflow-iframe-leave-compositing.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@105900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
69 files changed:
LayoutTests/ChangeLog
LayoutTests/compositing/geometry/fixed-position-composited-page-scale-down.html
LayoutTests/compositing/geometry/fixed-position-composited-page-scale.html
LayoutTests/compositing/geometry/fixed-position-composited-switch.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/iframes/resources/scrollgrandchild-inner.html
LayoutTests/compositing/resources/mock_scrollbars.js
LayoutTests/compositing/scaling/tiled-layer-recursion.html
LayoutTests/editing/input/resources/password-echo.js
LayoutTests/editing/spelling/spellcheck-async-mutation.html
LayoutTests/editing/spelling/spellcheck-async.html
LayoutTests/editing/spelling/spelling-unified-emulation.html
LayoutTests/fast/dom/Element/scale-page-bounding-client-rect.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/iframe-inner-size-scaling.html
LayoutTests/fast/dom/window-inner-size-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/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/fixed-in-page-scale.html
LayoutTests/fast/repaint/fixed-right-bottom-in-page-scale.html
LayoutTests/fast/repaint/fixed-right-in-page-scale.html
LayoutTests/fast/repaint/scale-page-shrink.html
LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html
LayoutTests/http/tests/inspector/network-test.js
LayoutTests/http/tests/inspector/network/network-content-replacement-embed.html
LayoutTests/http/tests/inspector/network/network-content-replacement-xhr.html
LayoutTests/platform/chromium/compositing/accelerated-drawing/alpha.html
LayoutTests/platform/chromium/compositing/accelerated-drawing/svg-filters.html
LayoutTests/platform/chromium/compositing/force-compositing-mode/force-composite-empty.html
LayoutTests/platform/chromium/compositing/force-compositing-mode/no-overflow-iframe-layer.html
LayoutTests/platform/chromium/compositing/force-compositing-mode/overflow-hidden-iframe-layer.html
LayoutTests/platform/chromium/compositing/force-compositing-mode/overflow-iframe-enter-compositing.html
LayoutTests/platform/chromium/compositing/force-compositing-mode/overflow-iframe-layer.html
LayoutTests/platform/chromium/compositing/force-compositing-mode/overflow-iframe-leave-compositing.html
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make
Source/WebCore/DerivedSources.pri
Source/WebCore/GNUmakefile.am
Source/WebCore/GNUmakefile.list.am
Source/WebCore/Target.pri
Source/WebCore/WebCore.gyp/WebCore.gyp
Source/WebCore/WebCore.gypi
Source/WebCore/WebCore.vcproj/WebCoreTestSupport.vcproj
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/testing/InternalSettings.cpp [new file with mode: 0644]
Source/WebCore/testing/InternalSettings.h [new file with mode: 0644]
Source/WebCore/testing/InternalSettings.idl [new file with mode: 0644]
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl
Source/WebCore/testing/js/WebCoreTestSupport.cpp
Source/WebCore/testing/v8/WebCoreTestSupport.cpp
Tools/ChangeLog
Tools/GNUmakefile.am