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

Unified Diff: LayoutTests/compositing/layer-creation/main-thread-scrolling-for-non-composited-fixed-position.html

Issue 465333004: Non-composited, fixed position should trigger main thread scrolling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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/layer-creation/main-thread-scrolling-for-non-composited-fixed-position.html
diff --git a/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html b/LayoutTests/compositing/layer-creation/main-thread-scrolling-for-non-composited-fixed-position.html
similarity index 68%
copy from LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html
copy to LayoutTests/compositing/layer-creation/main-thread-scrolling-for-non-composited-fixed-position.html
index 001b23ca020bd85c878b7a93b4c65574b790b28d..b01c2205c911d203b7d83f54408f20dcf790ae35 100644
--- a/LayoutTests/compositing/layer-creation/no-compositing-for-fixed-position-under-transform.html
+++ b/LayoutTests/compositing/layer-creation/main-thread-scrolling-for-non-composited-fixed-position.html
@@ -2,11 +2,6 @@
<html>
<head>
<style>
- .transform {
- width: 100px;
- height: 30px;
- -webkit-transform: translateZ(0);
- }
.fixed {
position: fixed;
left: 10px;
@@ -14,9 +9,9 @@
}
</style>
- <script type="text/javascript">
+ <script>
if (window.internals)
- window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
+ window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(false);
if (window.testRunner) {
testRunner.dumpAsText();
@@ -30,10 +25,7 @@
</head>
<body>
- <div class="transform">
- <!-- This element should neither be composited nor force main thread scrolling. -->
- <div class="fixed">TEST</div>
- </div>
+ <div class="fixed">TEST</div>
<pre id="layerTree"></pre>
<pre id="mainThreadScrollingReasons"></pre>

Powered by Google App Engine
This is Rietveld 408576698