Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: LayoutTests/compositing/will-change/gpu-rasterization-hint-added.html

Issue 270383002: Remove will-change: contents GPU rasterization hint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/compositing/will-change/gpu-rasterization-hint-added.html
diff --git a/LayoutTests/compositing/will-change/gpu-rasterization-hint-added.html b/LayoutTests/compositing/will-change/gpu-rasterization-hint-added.html
deleted file mode 100644
index 3aa38dafa88ea9dd0e172392cac2f2e8659e80fc..0000000000000000000000000000000000000000
--- a/LayoutTests/compositing/will-change/gpu-rasterization-hint-added.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <style>
- #container {
- will-change: top;
- position: absolute;
- z-index: 0;
- left: 200px;
- top: 100px;
- width: 100px;
- height: 100px;
- background-color: blue;
- }
-
- #willChangeOpacity {
- position: absolute;
- left: 50px;
- top: 50px;
- width: 75px;
- height: 75px;
- background-color: green;
- will-change: opacity;
- }
- </style>
- <script type="text/javascript">
- if (window.internals) {
- window.internals.settings.setAcceleratedCompositingForGpuRasterizationHintEnabled(true);
- // Force an update of the compositing triggers.
- window.internals.forceCompositingUpdate(document);
- }
-
- function doTest()
- {
- if (window.internals) {
- window.internals.forceCompositingUpdate(document);
- }
- // Adding "will-change: contents" to the container div should
- // stop its child from compositing.
- document.getElementById("container").style.willChange = "contents";
- if (window.testRunner) {
- document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
- testRunner.dumpAsText();
- }
- }
-
- window.addEventListener('load', doTest, false);
- </script>
-</head>
-
-<body>
- <div id="container">
- <div id="willChangeOpacity"></div>
- </div>
-
- <pre id="layertree"></pre>
-</body>
-
-</html>

Powered by Google App Engine
This is Rietveld 408576698