| Index: third_party/WebKit/LayoutTests/compositing/overflow/scrolling-neg-z-index-descendants-should-cause-repaint.html
|
| diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/scrolling-neg-z-index-descendants-should-cause-repaint.html b/third_party/WebKit/LayoutTests/compositing/overflow/scrolling-neg-z-index-descendants-should-cause-repaint.html
|
| deleted file mode 100644
|
| index 89dde4e15f580e1103a1cf264232cbfd2c447ae7..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/compositing/overflow/scrolling-neg-z-index-descendants-should-cause-repaint.html
|
| +++ /dev/null
|
| @@ -1,113 +0,0 @@
|
| -<!DOCTYPE HTML>
|
| -<html>
|
| -<head>
|
| -<script>
|
| - if (window.testRunner)
|
| - window.testRunner.dumpAsText();
|
| -
|
| - if (window.internals) {
|
| - window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
|
| - }
|
| -
|
| - function hasScrollbarRepaint(layerTree)
|
| - {
|
| - return hasScrollbarRepaintHelper(JSON.parse(layerTree));
|
| - }
|
| -
|
| - function hasScrollbarRepaintHelper(jsonLayerTree) {
|
| - var repaintRects = jsonLayerTree["repaintRects"];
|
| - if (repaintRects) {
|
| - for (var i = 0; i < repaintRects.length; ++i) {
|
| - var width = repaintRects[i][2];
|
| - var height = repaintRects[i][3];
|
| - if (width == 15 && height == 285)
|
| - return true;
|
| - }
|
| - }
|
| - var children = jsonLayerTree["children"];
|
| - if (children) {
|
| - for (var i = 0; i < children.length; i++) {
|
| - if (hasScrollbarRepaintHelper(children[i]))
|
| - return true;
|
| - }
|
| - }
|
| - return false;
|
| - }
|
| -
|
| - function testRepaint() {
|
| - var result = "";
|
| - var container = document.getElementById("container");
|
| -
|
| - document.body.offsetTop;
|
| -
|
| - if (window.internals)
|
| - window.internals.startTrackingRepaints(document);
|
| -
|
| - container.scrollTop = 100;
|
| -
|
| - if (window.internals) {
|
| - if (hasScrollbarRepaint(window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_PAINT_INVALIDATIONS)))
|
| - result += "PASS repainted when expected\n";
|
| - else
|
| - result += "FAIL did not repaint when expected\n";
|
| - window.internals.stopTrackingRepaints(document);
|
| - }
|
| -
|
| - var pre = document.createElement('pre');
|
| - document.body.appendChild(pre);
|
| - pre.innerHTML = result;
|
| - if (!window.internals)
|
| - document.getElementById("description").style.display = "block";
|
| - }
|
| -
|
| - window.onload = testRepaint;
|
| -</script>
|
| -<style>
|
| - #container {
|
| - width: 100px;
|
| - height: 300px;
|
| - box-shadow: inset 3px 3px 10px grey;
|
| - overflow: auto;
|
| - border: 1px black solid;
|
| - overflow: scroll;
|
| - position: relative;
|
| - -webkit-backface-visibility: hidden;
|
| - }
|
| -
|
| - #neg-z {
|
| - position: relative;
|
| - z-index: -1;
|
| - }
|
| -
|
| - .scrolled {
|
| - width: 50px;
|
| - height: 50px;
|
| - margin: 10px;
|
| - position: relative;
|
| - background-color: green;
|
| - }
|
| -
|
| - #description {
|
| - display: none;
|
| - }
|
| -</style>
|
| -</head>
|
| -<body>
|
| - <pre id="description">
|
| - This test ensures that the logic for ensuring that we don't repaint when
|
| - scrolling composited layers works correctly in the face of neg z-order
|
| - descendants.
|
| - </pre>
|
| - <div id="container">
|
| - <div id="neg-z">
|
| - <div class="scrolled"></div>
|
| - <div class="scrolled"></div>
|
| - <div class="scrolled"></div>
|
| - <div class="scrolled"></div>
|
| - <div class="scrolled"></div>
|
| - <div class="scrolled"></div>
|
| - <div class="scrolled"></div>
|
| - </div>
|
| - </div>
|
| -</body>
|
| -</html>
|
|
|