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

Unified Diff: LayoutTests/fast/events/touch/compositor-touch-hit-rects-iframes.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/compositor-touch-hit-rects-iframes.html
diff --git a/LayoutTests/fast/events/touch/compositor-touch-hit-rects-iframes.html b/LayoutTests/fast/events/touch/compositor-touch-hit-rects-iframes.html
new file mode 100644
index 0000000000000000000000000000000000000000..cfca4d652e6627d3f61d069904c105186dda4598
--- /dev/null
+++ b/LayoutTests/fast/events/touch/compositor-touch-hit-rects-iframes.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="resources/compositor-touch-hit-rects.css">
+<style>
+iframe {
+ height: 25px;
+ width: 400px;
+ overflow-x: hidden;
+}
+#iframe-nested {
+ height: 35px;
+}
+#iframe-transform {
+ -webkit-transform: scale(1.1) rotate(1grad);
+ margin: 10px 30px;
+}
+</style>
+</head>
+<body>
+<p id="description">
+This tests verifies the hit test regions given to the compositor when non-composited iframes are involved.
+It can only be run in DumpRenderTree. The outputted rects should cover the hit test regions of all the listed elements. Enable visualize mode to quickly validate graphically.</p>
+
+<div id="tests">
+ <iframe id="iframe" src="resources/compositor-touch-hit-rects-iframe.html"></iframe>
+ <iframe id="iframe-nested" src="resources/compositor-touch-hit-rects-iframe-nested.html"></iframe>
+ <iframe id="iframe-transform" src="resources/compositor-touch-hit-rects-iframe.html"></iframe>
+ <iframe id="iframe-doc" src="resources/compositor-touch-hit-rects-iframe-doc.html"></iframe>
+</div>
+
+<div id="console"></div>
+<script src="resources/compositor-touch-hit-rects.js"></script>
+<script>
+function runIFrameTest(id) {
+ var elem = document.getElementById(id);
+ if (!elem.addHandlers) {
+ log('FAIL - child iframe has not setup handlers in parent.');
+ return;
+ }
+
+ elem.addHandlers();
+ logRects(id);
+ elem.removeHandlers();
+}
+function additionalTests() {
+ runIFrameTest('iframe');
+ runIFrameTest('iframe-nested');
+ runIFrameTest('iframe-transform');
+ runIFrameTest('iframe-doc');
+}
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698