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

Unified Diff: LayoutTests/compositing/absolute-inside-out-of-view-fixed.html

Issue 191693002: Delay scrollContents until the next paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix nit Created 6 years, 9 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/iframes/resources/fixed-position-transformed-subframe.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/absolute-inside-out-of-view-fixed.html
diff --git a/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html b/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html
index dcacd295ca2577aebbbefdfc987319d10089a8ce..93cecb3635dfc1f587e90fff474bf80e9975db9f 100644
--- a/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html
+++ b/LayoutTests/compositing/absolute-inside-out-of-view-fixed.html
@@ -2,6 +2,7 @@
<html>
<head>
+ <script src="../resources/run-after-display.js"></script>
<style>
body {
margin: 0;
@@ -29,18 +30,24 @@
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
- if (window.internals)
- window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
+ }
+ if (window.internals) {
+ window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
}
function doScroll()
{
window.setTimeout(function() {
window.scrollTo(0, 200);
- if (window.internals) {
- document.getElementById('results').innerText = internals.layerTreeAsText(document);
- testRunner.notifyDone();
- }
+
+ runAfterDisplay(function() {
+ if (window.internals) {
+ document.getElementById('results').innerText = internals.layerTreeAsText(document);
+ if (window.testRunner) {
+ testRunner.notifyDone();
+ }
+ }
+ });
}, 10);
}
« no previous file with comments | « no previous file | LayoutTests/compositing/iframes/resources/fixed-position-transformed-subframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698