| Index: PerformanceTests/PaintInvalidation/shift-rectangle-translateX-invalidate.html
|
| diff --git a/PerformanceTests/PaintInvalidation/shift-rectangle-translateX-invalidate.html b/PerformanceTests/PaintInvalidation/shift-rectangle-translateX-invalidate.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..1598c8e4f3e5ccf628a81487d7d82696a20260a9
|
| --- /dev/null
|
| +++ b/PerformanceTests/PaintInvalidation/shift-rectangle-translateX-invalidate.html
|
| @@ -0,0 +1,44 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<style>
|
| +.test {
|
| + height: 100px;
|
| + width: 100px;
|
| + background-color: navy;
|
| +}
|
| +
|
| +.shifted {
|
| + transform: translateX(100px);
|
| +}
|
| +</style>
|
| +<script src="../resources/runner.js"></script>
|
| +</head>
|
| +<body>
|
| + <div class="test"></div>
|
| + <div class="test shifted"></div>
|
| + <div class="test"></div>
|
| + <div class="test shifted"></div>
|
| + <div class="test"></div>
|
| + <div class="test shifted"></div>
|
| + <div class="test"></div>
|
| + <div class="test shifted"></div>
|
| + <div class="test"></div>
|
| + <div class="test shifted"></div>
|
| + <script>
|
| + if (!window.internals) {
|
| + alert("This test has to be run under DumpRenderTree");
|
| + } else {
|
| + var elements = document.getElementsByClassName("test");
|
| + internals.forceCompositingUpdate(document);
|
| +
|
| + PerfTestRunner.measureRunsPerSecond({run: function() {
|
| + for (var i = 0; i < elements.length; ++i)
|
| + elements[i].classList.toggle("translated");
|
| +
|
| + internals.forceCompositingUpdate(document);
|
| + }});
|
| + }
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|