From 3912ca81ab5addb3dc3f72f08d04040733e61d5d Mon Sep 17 00:00:00 2001 From: Ojan Vafai Date: Fri, 13 Feb 2015 21:05:58 -0800 Subject: [PATCH] Get rid of HitTestChildBlockBackground walk. I'm not 100% what this was for, but looking at Blink, it appears that HitTestChildBlockBackground being different from HitTestBlockBackground had something to do with multi-column/regions, which we don't have. I believe this patch doesn't change any behavior. Also added to the elementFromPoint test in order to get more test coverage of the hitTesting code. R=abarth@chromium.org Review URL: https://codereview.chromium.org/924263002 --- .../document-elementFromPoint-expected.txt | 4 ++- .../layout/document-elementFromPoint.sky | 26 +++++++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/tests/layout/document-elementFromPoint-expected.txt b/engine/src/flutter/tests/layout/document-elementFromPoint-expected.txt index ba1c0d2d106..0553acdb3ac 100644 --- a/engine/src/flutter/tests/layout/document-elementFromPoint-expected.txt +++ b/engine/src/flutter/tests/layout/document-elementFromPoint-expected.txt @@ -1,6 +1,8 @@ CONSOLE: unittest-suite-wait-for-done CONSOLE: PASS: should hit test +CONSOLE: PASS: should hit test child and parent +CONSOLE: PASS: should hit test child with layered parent CONSOLE: -CONSOLE: All 1 tests passed. +CONSOLE: All 3 tests passed. CONSOLE: unittest-suite-success DONE diff --git a/engine/src/flutter/tests/layout/document-elementFromPoint.sky b/engine/src/flutter/tests/layout/document-elementFromPoint.sky index 817991a3c85..b08d00a7f3d 100644 --- a/engine/src/flutter/tests/layout/document-elementFromPoint.sky +++ b/engine/src/flutter/tests/layout/document-elementFromPoint.sky @@ -1,9 +1,14 @@ + + Foo bar +