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

Unified Diff: LayoutTests/platform/chromium/compositing/fixed-body-background-positioned.html

Issue 13462003: Add support for accelerated fixed root background (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@background-attachment-fixed2
Patch Set: Adding a FIXME for a bit that'll need fixing. Created 7 years, 8 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/platform/chromium/compositing/fixed-body-background-positioned.html
diff --git a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-positioned.html b/LayoutTests/platform/chromium/compositing/fixed-body-background-positioned.html
similarity index 74%
copy from LayoutTests/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-positioned.html
copy to LayoutTests/platform/chromium/compositing/fixed-body-background-positioned.html
index cb28d5f15937dafba4bf2c5a7f00746cc4d2ca65..8ea1c1080a76a18fac6908839e3136b40ee7e319 100644
--- a/LayoutTests/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-positioned.html
+++ b/LayoutTests/platform/chromium/compositing/fixed-body-background-positioned.html
@@ -1,12 +1,11 @@
<!DOCTYPE html>
-
<html>
<head>
<style>
body {
margin: 100px;
height: 3500px;
- background-image: url('../../../../compositing/resources/simple_image.png');
+ background-image: url('../../../compositing/resources/simple_image.png');
background-size: 200px 200px;
background-attachment: fixed;
background-repeat: no-repeat;
@@ -25,15 +24,18 @@
}
</style>
<script>
- if (window.testRunner)
+ if (window.testRunner) {
testRunner.dumpAsText(true);
+ window.internals.settings.setForceCompositingMode(true);
+ window.internals.settings.setAcceleratedCompositingForFixedRootBackgroundEnabled(true);
+ }
function doTest()
{
window.scrollTo(0, 200);
if (window.internals)
- document.getElementById('layers').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_TILE_CACHES);
+ document.getElementById('layers').innerText = internals.layerTreeAsText(document);
}
window.addEventListener('load', doTest, false);

Powered by Google App Engine
This is Rietveld 408576698