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

Unified Diff: LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe.html

Issue 17471008: Rework compositor touch hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: CR feedback - accumulate LayoutRects instead of IntRects, disable when page isn't composited. Also… Created 7 years, 5 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/fast/events/touch/resources/compositor-touch-hit-rects-iframe.html
diff --git a/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe.html b/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..99956dfd79a6234de319e24a1ce19e777f55d56b
--- /dev/null
+++ b/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="compositor-touch-hit-rects.css">
+<style>
+html {
+ font-size: 10px;
+}
+.testcase, .testcase * {
+ border: 1px solid red;
+ padding: 5px;
+}
+
+</style>
+</head>
+<body id='tests'>
+ <br><br>
+ <div id='child' class='testcase'>
+ Div inside iframe
+ </div>
+ <br><br><br>
+ <script>
+ if (window.testRunner)
+ document.documentElement.setAttribute('dumpRenderTree', 'true');
+
+ function handler() {};
+ frameElement.addHandlers = function() {
+ document.getElementById('child').addEventListener('touchstart', handler, false);
+ }
+ frameElement.removeHandlers = function() {
+ document.getElementById('child').removeEventListener('touchstart', handler, false);
+ }
+ // Scroll so the div is just slighly clipped.
+ document.body.scrollTop = 40;
+ </script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698