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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="stylesheet" href="compositor-touch-hit-rects.css">
5 <style>
6 html {
7 font-size: 10px;
8 }
9 .testcase, .testcase * {
10 border: 1px solid red;
11 padding: 5px;
12 }
13
14 </style>
15 </head>
16 <body id='tests'>
17 <br><br>
18 <div id='child' class='testcase'>
19 Div inside iframe
20 </div>
21 <br><br><br>
22 <script>
23 if (window.testRunner)
24 document.documentElement.setAttribute('dumpRenderTree', 'true');
25
26 function handler() {};
27 frameElement.addHandlers = function() {
28 document.getElementById('child').addEventListener('touchstart', handler, fal se);
29 }
30 frameElement.removeHandlers = function() {
31 document.getElementById('child').removeEventListener('touchstart', handler, false);
32 }
33 // Scroll so the div is just slighly clipped.
34 document.body.scrollTop = 40;
35 </script>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698