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

Unified Diff: LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe-doc.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-doc.html
diff --git a/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe-doc.html b/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe-doc.html
new file mode 100644
index 0000000000000000000000000000000000000000..f012a4e344079340c3fd71afe006264d629f3d49
--- /dev/null
+++ b/LayoutTests/fast/events/touch/resources/compositor-touch-hit-rects-iframe-doc.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="compositor-touch-hit-rects.css">
+<style>
+html {
+ font-size: 10px;
+}
+#tests {
+ /* Make sure the html/body nodes have 0 height */
+ position: absolute;
+}
+</style>
+</head>
+<body>
+ <div id='tests'>
+ Document with touch handlers.
+ <br><br>
+ <br><br><br>
+ </div>
+ <script>
+ if (window.testRunner)
+ document.documentElement.setAttribute('dumpRenderTree', 'true');
+
+ function handler() {};
+ frameElement.addHandlers = function() {
+ document.addEventListener('touchstart', handler, false);
+ }
+ frameElement.removeHandlers = function() {
+ document.removeEventListener('touchstart', handler, false);
+ }
+ </script>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698