Move layerTreeAsText to window.internals
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Oct 2012 21:55:10 +0000 (21:55 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 8 Oct 2012 21:55:10 +0000 (21:55 +0000)
commit877457bc82ed5fda6fd79a955f02a18c991c7c50
tree24e0fb658e662f9e500b78837095213875f87083
parentdfe8010c512301ec1eae8502cf441aeaa7231568
Move layerTreeAsText to window.internals
https://bugs.webkit.org/show_bug.cgi?id=98690

Reviewed by James Robinson.

Add window.internals.layerTreeAsText(document), and change the tests to use it.
I'll remove testRunner.layerTreeAsText() in a later patch.

Source/WebCore:

* testing/Internals.cpp:
(WebCore::Internals::layerTreeAsText):
* testing/Internals.h:
(Internals):
* testing/Internals.idl:

LayoutTests:

* compositing/animation/animation-compositing.html:
* compositing/backing/no-backing-for-clip-overlap.html:
* compositing/backing/no-backing-for-clip.html:
* compositing/backing/no-backing-for-perspective.html:
* compositing/bounds-in-flipped-writing-mode.html:
* compositing/clip-child-by-non-stacking-ancestor.html:
* compositing/columns/composited-in-paginated.html:
* compositing/geometry/ancestor-overflow-change.html:
* compositing/geometry/bounds-clipped-composited-child.html:
* compositing/geometry/bounds-ignores-hidden-composited-descendant.html:
* compositing/geometry/bounds-ignores-hidden-dynamic-negzindex.html:
* compositing/geometry/bounds-ignores-hidden-dynamic.html:
* compositing/geometry/bounds-ignores-hidden.html:
* compositing/geometry/clip.html:
* compositing/geometry/composited-in-columns.html:
* compositing/geometry/fixed-position-composited-switch.html:
* compositing/geometry/flipped-writing-mode.html:
* compositing/geometry/foreground-layer.html:
* compositing/geometry/layer-due-to-layer-children-deep-switch.html:
* compositing/geometry/layer-due-to-layer-children-switch.html:
* compositing/geometry/limit-layer-bounds-clipping-ancestor.html:
* compositing/geometry/limit-layer-bounds-fixed-positioned.html:
* compositing/geometry/limit-layer-bounds-opacity-transition.html:
* compositing/geometry/limit-layer-bounds-overflow-root.html:
* compositing/geometry/limit-layer-bounds-positioned-transition.html:
* compositing/geometry/limit-layer-bounds-positioned.html:
* compositing/geometry/limit-layer-bounds-transformed-overflow.html:
* compositing/geometry/limit-layer-bounds-transformed.html:
* compositing/geometry/preserve-3d-switching.html:
* compositing/iframes/become-composited-nested-iframes.html:
* compositing/iframes/become-overlapped-iframe.html:
* compositing/iframes/composited-parent-iframe.html:
* compositing/iframes/connect-compositing-iframe-delayed.html:
* compositing/iframes/connect-compositing-iframe.html:
* compositing/iframes/connect-compositing-iframe2.html:
* compositing/iframes/connect-compositing-iframe3.html:
* compositing/iframes/enter-compositing-iframe.html:
* compositing/iframes/iframe-resize.html:
* compositing/iframes/iframe-size-from-zero.html:
* compositing/iframes/iframe-size-to-zero.html:
* compositing/iframes/iframe-src-change.html:
* compositing/iframes/invisible-nested-iframe-hide.html:
* compositing/iframes/invisible-nested-iframe-show.html:
* compositing/iframes/leave-compositing-iframe.html:
* compositing/iframes/overlapped-iframe-iframe.html:
* compositing/iframes/overlapped-iframe.html:
* compositing/iframes/overlapped-nested-iframes.html:
* compositing/iframes/page-cache-layer-tree.html:
* compositing/iframes/resizer.html:
* compositing/iframes/scrolling-iframe.html:
* compositing/images/clip-on-directly-composited-image.html:
* compositing/layer-creation/animation-overlap-with-children.html:
* compositing/layer-creation/fixed-position-and-transform.html:
* compositing/layer-creation/fixed-position-out-of-view.html:
* compositing/layer-creation/fixed-position-under-transform.html:
* compositing/layer-creation/no-compositing-for-preserve-3d.html:
* compositing/layer-creation/overflow-scroll-overlap.html:
* compositing/layer-creation/overlap-animation.html:
* compositing/layer-creation/overlap-child-layer.html:
* compositing/layer-creation/overlap-clipping.html:
* compositing/layer-creation/overlap-transformed-and-clipped.html:
* compositing/layer-creation/overlap-transformed-layer.html:
* compositing/layer-creation/overlap-transforms.html:
* compositing/layer-creation/rotate3d-overlap.html:
* compositing/layer-creation/scroll-partial-update.html:
* compositing/layer-creation/spanOverlapsCanvas.html:
* compositing/layer-creation/stacking-context-overlap-nested.html:
* compositing/layer-creation/stacking-context-overlap.html:
* compositing/layer-creation/translatez-overlap.html:
* compositing/overflow-trumps-transform-style.html:
* compositing/overflow/clip-descendents.html:
* compositing/overflow/content-gains-scrollbars.html:
* compositing/overflow/content-loses-scrollbars.html:
* compositing/overflow/overflow-auto-with-touch-no-overflow.html:
* compositing/overflow/overflow-auto-with-touch-toggle.html:
* compositing/overflow/overflow-auto-with-touch.html:
* compositing/overflow/overflow-hidden-with-touch.html:
* compositing/overflow/overflow-overlay-with-touch-no-overflow.html:
* compositing/overflow/overflow-overlay-with-touch.html:
* compositing/overflow/overflow-scroll-with-touch-no-overflow.html:
* compositing/overflow/overflow-scrollbar-layers.html:
* compositing/overflow/overflow-visible-with-touch.html:
* compositing/overflow/resize-painting.html:
* compositing/overflow/scrolling-content-clip-to-viewport.html:
* compositing/overflow/textarea-scroll-touch.html:
* compositing/plugins/1x1-composited-plugin.html:
* compositing/plugins/large-to-small-composited-plugin.html:
* compositing/plugins/no-backing-store.html:
* compositing/plugins/small-to-large-composited-plugin.html:
* compositing/rtl/rtl-absolute-overflow-scrolled.html:
* compositing/rtl/rtl-absolute-overflow.html:
* compositing/rtl/rtl-absolute.html:
* compositing/rtl/rtl-fixed-overflow-scrolled.html:
* compositing/rtl/rtl-fixed-overflow.html:
* compositing/rtl/rtl-fixed.html:
* compositing/rtl/rtl-iframe-absolute-overflow-scrolled.html:
* compositing/rtl/rtl-iframe-absolute-overflow.html:
* compositing/rtl/rtl-iframe-absolute.html:
* compositing/rtl/rtl-iframe-fixed-overflow-scrolled.html:
* compositing/rtl/rtl-iframe-fixed-overflow.html:
* compositing/rtl/rtl-iframe-fixed.html:
* compositing/rtl/rtl-iframe-relative.html:
* compositing/rtl/rtl-relative.html:
* compositing/tiled-layers-hidpi.html:
* compositing/tiling/crash-reparent-tiled-layer.html:
* compositing/tiling/huge-layer-add-remove-child.html-disabled:
* compositing/tiling/huge-layer-img.html-disabled:
* compositing/tiling/huge-layer-resize.html-disabled:
* compositing/tiling/huge-layer-with-layer-children-resize.html-disabled:
* compositing/tiling/huge-layer-with-layer-children.html-disabled:
* compositing/tiling/huge-layer.html-disabled:
* compositing/video/video-poster.html:
* compositing/visibility/layer-visible-content.html:
* compositing/visibility/visibility-image-layers-dynamic.html:
* css3/compositing/should-have-compositing-layer.html:
* css3/filters/composited-during-animation-layertree.html:
* css3/filters/composited-during-transition-layertree.html:
* css3/filters/filtered-compositing-descendant.html:
* css3/filters/should-not-have-compositing-layer.html:
* platform/chromium-android/compositing/layer-creation/overflow-scrolling-touch.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:
* platform/mac/compositing/canvas/accelerated-canvas-compositing.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@130689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
132 files changed:
LayoutTests/ChangeLog
LayoutTests/compositing/animation/animation-compositing.html
LayoutTests/compositing/backing/no-backing-for-clip-overlap.html
LayoutTests/compositing/backing/no-backing-for-clip.html
LayoutTests/compositing/backing/no-backing-for-perspective.html
LayoutTests/compositing/bounds-in-flipped-writing-mode.html
LayoutTests/compositing/clip-child-by-non-stacking-ancestor.html
LayoutTests/compositing/columns/composited-in-paginated.html
LayoutTests/compositing/geometry/ancestor-overflow-change.html
LayoutTests/compositing/geometry/bounds-clipped-composited-child.html
LayoutTests/compositing/geometry/bounds-ignores-hidden-composited-descendant.html
LayoutTests/compositing/geometry/bounds-ignores-hidden-dynamic-negzindex.html
LayoutTests/compositing/geometry/bounds-ignores-hidden-dynamic.html
LayoutTests/compositing/geometry/bounds-ignores-hidden.html
LayoutTests/compositing/geometry/clip.html
LayoutTests/compositing/geometry/composited-in-columns.html
LayoutTests/compositing/geometry/fixed-position-composited-switch.html
LayoutTests/compositing/geometry/flipped-writing-mode.html
LayoutTests/compositing/geometry/foreground-layer.html
LayoutTests/compositing/geometry/layer-due-to-layer-children-deep-switch.html
LayoutTests/compositing/geometry/layer-due-to-layer-children-switch.html
LayoutTests/compositing/geometry/limit-layer-bounds-clipping-ancestor.html
LayoutTests/compositing/geometry/limit-layer-bounds-fixed-positioned.html
LayoutTests/compositing/geometry/limit-layer-bounds-opacity-transition.html
LayoutTests/compositing/geometry/limit-layer-bounds-overflow-root.html
LayoutTests/compositing/geometry/limit-layer-bounds-positioned-transition.html
LayoutTests/compositing/geometry/limit-layer-bounds-positioned.html
LayoutTests/compositing/geometry/limit-layer-bounds-transformed-overflow.html
LayoutTests/compositing/geometry/limit-layer-bounds-transformed.html
LayoutTests/compositing/geometry/preserve-3d-switching.html
LayoutTests/compositing/iframes/become-composited-nested-iframes.html
LayoutTests/compositing/iframes/become-overlapped-iframe.html
LayoutTests/compositing/iframes/composited-parent-iframe.html
LayoutTests/compositing/iframes/connect-compositing-iframe-delayed.html
LayoutTests/compositing/iframes/connect-compositing-iframe.html
LayoutTests/compositing/iframes/connect-compositing-iframe2.html
LayoutTests/compositing/iframes/connect-compositing-iframe3.html
LayoutTests/compositing/iframes/enter-compositing-iframe.html
LayoutTests/compositing/iframes/iframe-resize.html
LayoutTests/compositing/iframes/iframe-size-from-zero.html
LayoutTests/compositing/iframes/iframe-size-to-zero.html
LayoutTests/compositing/iframes/iframe-src-change.html
LayoutTests/compositing/iframes/invisible-nested-iframe-hide.html
LayoutTests/compositing/iframes/invisible-nested-iframe-show.html
LayoutTests/compositing/iframes/leave-compositing-iframe.html
LayoutTests/compositing/iframes/overlapped-iframe-iframe.html
LayoutTests/compositing/iframes/overlapped-iframe.html
LayoutTests/compositing/iframes/overlapped-nested-iframes.html
LayoutTests/compositing/iframes/page-cache-layer-tree.html
LayoutTests/compositing/iframes/resizer.html
LayoutTests/compositing/iframes/scrolling-iframe.html
LayoutTests/compositing/images/clip-on-directly-composited-image.html
LayoutTests/compositing/layer-creation/animation-overlap-with-children.html
LayoutTests/compositing/layer-creation/fixed-position-and-transform.html
LayoutTests/compositing/layer-creation/fixed-position-out-of-view.html
LayoutTests/compositing/layer-creation/fixed-position-under-transform.html
LayoutTests/compositing/layer-creation/no-compositing-for-preserve-3d.html
LayoutTests/compositing/layer-creation/overflow-scroll-overlap.html
LayoutTests/compositing/layer-creation/overlap-animation.html
LayoutTests/compositing/layer-creation/overlap-child-layer.html
LayoutTests/compositing/layer-creation/overlap-clipping.html
LayoutTests/compositing/layer-creation/overlap-transformed-and-clipped.html
LayoutTests/compositing/layer-creation/overlap-transformed-layer.html
LayoutTests/compositing/layer-creation/overlap-transforms.html
LayoutTests/compositing/layer-creation/rotate3d-overlap.html
LayoutTests/compositing/layer-creation/scroll-partial-update.html
LayoutTests/compositing/layer-creation/spanOverlapsCanvas.html
LayoutTests/compositing/layer-creation/stacking-context-overlap-nested.html
LayoutTests/compositing/layer-creation/stacking-context-overlap.html
LayoutTests/compositing/layer-creation/translatez-overlap.html
LayoutTests/compositing/overflow-trumps-transform-style.html
LayoutTests/compositing/overflow/clip-descendents.html
LayoutTests/compositing/overflow/content-gains-scrollbars.html
LayoutTests/compositing/overflow/content-loses-scrollbars.html
LayoutTests/compositing/overflow/overflow-auto-with-touch-no-overflow.html
LayoutTests/compositing/overflow/overflow-auto-with-touch-toggle.html
LayoutTests/compositing/overflow/overflow-auto-with-touch.html
LayoutTests/compositing/overflow/overflow-hidden-with-touch.html
LayoutTests/compositing/overflow/overflow-overlay-with-touch-no-overflow.html
LayoutTests/compositing/overflow/overflow-overlay-with-touch.html
LayoutTests/compositing/overflow/overflow-scroll-with-touch-no-overflow.html
LayoutTests/compositing/overflow/overflow-scrollbar-layers.html
LayoutTests/compositing/overflow/overflow-visible-with-touch.html
LayoutTests/compositing/overflow/resize-painting.html
LayoutTests/compositing/overflow/scrolling-content-clip-to-viewport.html
LayoutTests/compositing/overflow/textarea-scroll-touch.html
LayoutTests/compositing/plugins/1x1-composited-plugin.html
LayoutTests/compositing/plugins/large-to-small-composited-plugin.html
LayoutTests/compositing/plugins/no-backing-store.html
LayoutTests/compositing/plugins/small-to-large-composited-plugin.html
LayoutTests/compositing/rtl/rtl-absolute-overflow-scrolled.html
LayoutTests/compositing/rtl/rtl-absolute-overflow.html
LayoutTests/compositing/rtl/rtl-absolute.html
LayoutTests/compositing/rtl/rtl-fixed-overflow-scrolled.html
LayoutTests/compositing/rtl/rtl-fixed-overflow.html
LayoutTests/compositing/rtl/rtl-fixed.html
LayoutTests/compositing/rtl/rtl-iframe-absolute-overflow-scrolled.html
LayoutTests/compositing/rtl/rtl-iframe-absolute-overflow.html
LayoutTests/compositing/rtl/rtl-iframe-absolute.html
LayoutTests/compositing/rtl/rtl-iframe-fixed-overflow-scrolled.html
LayoutTests/compositing/rtl/rtl-iframe-fixed-overflow.html
LayoutTests/compositing/rtl/rtl-iframe-fixed.html
LayoutTests/compositing/rtl/rtl-iframe-relative.html
LayoutTests/compositing/rtl/rtl-relative.html
LayoutTests/compositing/tiled-layers-hidpi.html
LayoutTests/compositing/tiling/crash-reparent-tiled-layer.html
LayoutTests/compositing/tiling/huge-layer-add-remove-child.html-disabled
LayoutTests/compositing/tiling/huge-layer-img.html-disabled
LayoutTests/compositing/tiling/huge-layer-resize.html-disabled
LayoutTests/compositing/tiling/huge-layer-with-layer-children-resize.html-disabled
LayoutTests/compositing/tiling/huge-layer-with-layer-children.html-disabled
LayoutTests/compositing/tiling/huge-layer.html-disabled
LayoutTests/compositing/video/video-poster.html
LayoutTests/compositing/visibility/layer-visible-content.html
LayoutTests/compositing/visibility/visibility-image-layers-dynamic.html
LayoutTests/css3/compositing/should-have-compositing-layer.html
LayoutTests/css3/filters/composited-during-animation-layertree.html
LayoutTests/css3/filters/composited-during-transition-layertree.html
LayoutTests/css3/filters/filtered-compositing-descendant.html
LayoutTests/css3/filters/should-not-have-compositing-layer.html
LayoutTests/platform/chromium-android/compositing/layer-creation/overflow-scrolling-touch.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
LayoutTests/platform/mac/compositing/canvas/accelerated-canvas-compositing.html
Source/WebCore/ChangeLog
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl