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

Unified Diff: LayoutTests/compositing/layer-creation/translatez-removed.html

Issue 324363003: Remove straggling references to forceCompositingMode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/compositing/layer-creation/translatez-removed-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/layer-creation/translatez-removed.html
diff --git a/LayoutTests/compositing/layer-creation/translatez-removed.html b/LayoutTests/compositing/layer-creation/translatez-removed.html
index de9d0e45b9f11bffe4182b42ad5a5a7403a0ddc9..2a990faa618a4073305c8833359c365ead7b79ac 100644
--- a/LayoutTests/compositing/layer-creation/translatez-removed.html
+++ b/LayoutTests/compositing/layer-creation/translatez-removed.html
@@ -1,52 +1,36 @@
<!DOCTYPE html>
+<style>
+.box {
+ height: 200px;
+ width: 200px;
+ margin: 10px;
+ padding: 5px;
+ background-color: blue;
+}
-<html>
-<head>
- <style type="text/css" media="screen">
- .box {
- height: 200px;
- width: 200px;
- margin: 10px;
- padding: 5px;
- background-color: blue;
- }
-
- .composited {
- -webkit-transform: translateZ(0);
- }
+.composited {
+ -webkit-transform: translateZ(0);
+}
- #trigger {
- width: 20px;
- height: 20px;
- background-color: silver;
- }
+#trigger {
+ width: 20px;
+ height: 20px;
+ background-color: silver;
+}
+</style>
+<script>
+if (window.testRunner)
+ window.testRunner.dumpAsText();
- </style>
- <script type="text/javascript" charset="utf-8">
- if (window.testRunner) {
- window.testRunner.dumpAsText();
- }
-
- function doTest()
- {
- document.getElementById('test').className = 'box';
- if (window.testRunner) {
+function doTest()
+{
+ document.getElementById('test').classList.remove('composited');
ojan 2014/06/11 17:57:56 This is a minor change. Explicitly remove the comp
+ if (window.testRunner)
document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
- }
- }
- window.addEventListener('load', doTest, false);
- </script>
-</head>
-<body>
- <!-- This test div starts out with a 3d transform, but should be
- de-promoted from a composited layer before the test completes. -->
- <div id="test" class="composited box">
- </div>
- <!-- This div exists to keep blink in compositing mode until
- ForceCompositingMode is always on. -->
- <div id="trigger" class="composited">
ojan 2014/06/11 17:57:56 The only real change here is to remove this div.
- </div>
-
- <pre id="layers">Layer tree appears here in DRT.</pre>
-</body>
-</html>
+}
+window.addEventListener('load', doTest, false);
+</script>
+<!-- This test div starts out with a 3d transform, but should be
+ de-promoted from a composited layer before the test completes. -->
+<div id="test" class="composited box"></div>
+<pre id="layers">Layer tree appears here in DRT.</pre>
« no previous file with comments | « no previous file | LayoutTests/compositing/layer-creation/translatez-removed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698