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

Unified Diff: LayoutTests/fast/events/touch/touch-rect-crash-on-unpromote-layer.html

Issue 46163008: Revert "Re-land deferred compositing updates with fixed assumptions" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/fast/events/touch/touch-rect-crash-on-unpromote-layer.html
diff --git a/LayoutTests/fast/events/touch/touch-rect-crash-on-unpromote-layer.html b/LayoutTests/fast/events/touch/touch-rect-crash-on-unpromote-layer.html
index 1a65a5d5f9f00ca150c3060063309712eae3c625..95c96cc90b8bfed7445964fdae399c0e3e8ae8c9 100644
--- a/LayoutTests/fast/events/touch/touch-rect-crash-on-unpromote-layer.html
+++ b/LayoutTests/fast/events/touch/touch-rect-crash-on-unpromote-layer.html
@@ -25,12 +25,8 @@
var layer = document.getElementById('layer');
layer.addEventListener('touchstart', function() {});
- // Ensure we've done a layout, updated compositing, and we have a hit rect on this composited layer.
+ // Ensure we've done a layout and we have a hit rect on this composited layer.
var x = layer.offsetTop;
-
- if (window.internals)
- window.internals.forceCompositingUpdate(document);
-
var rects;
if (window.internals) {
rects = window.internals.touchEventTargetLayerRects(document);
@@ -41,8 +37,8 @@
// Make the layer non-composited
layer.className = '';
- // Verify we now have a hit rect on the document.
- // (layout and compositing update are done by touchEventTargetLayerRects().)
+ // Force layout and verify we now have a hit rect on the document.
+ x = layer.offsetTop;
if (window.internals) {
rects = window.internals.touchEventTargetLayerRects(document);
shouldBe("rects.length", "1");

Powered by Google App Engine
This is Rietveld 408576698