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

Unified Diff: third_party/WebKit/LayoutTests/hittesting/culled-inline-crash.html

Issue 1630793002: Stop hit testing culled inlines when a match is found (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simpler approach, but duplicated code Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/HitTestResult.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/hittesting/culled-inline-crash.html
diff --git a/third_party/WebKit/LayoutTests/hittesting/culled-inline-crash.html b/third_party/WebKit/LayoutTests/hittesting/culled-inline-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..09da680b498faff864e1de4ab76179078f708361
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/hittesting/culled-inline-crash.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<style>
+* {
+ line-height: 12px;
+}
+li {
+ position: relative;
+ padding-top: 0.3px;
+}
+</style>
+<div id="container">
+<ul>
+<li><a href="#">HoverHoverHoverHover</a></li>
+<li><a href="#">HoverHoverHoverHover</a></li>
+<li><a href="#">HoverHoverHoverHover</a></li>
+<li><a href="#">HoverHoverHoverHover</a></li>
+<li><a href="#">HoverHoverHoverHover</a></li>
+<li><a href="#">HoverHoverHoverHover</a></li>
+<li><a href="#">HoverHoverHoverHover</a></li>
+<li><a href="#">HoverHoverHoverHover</a></li>
+</ul>
+</div>
+<div id="log"></div>
+<script>
+test(function(t)
+{
+ assert_equals(document.elementFromPoint(139, 49).tagName, 'A');
+}, "This test passes if it does not crash.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/HitTestResult.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698