[VizHitTesting] Fix hit test result mismatch due to iframe's padding
Input event on the padding / border of an iframe should be claimed by its parent frame. See example here: https://jsbin.com/xozuwil/quiet. However, clicking on the padding is considered as clicking the iframe according to blink hit test. When VizHitTesting asks blink for hit test target, it gets the iframe which is inconsistent with VizHitTesting result where the parent frame is considered as the target. This patch takes the padding and border into account when asking blink for the hit test result and only accepts iframe as the target if the hit test point is inside the content box of the iframe. Note that fixing the inconsistency between blink hit test and viz hite test is tracked via crbug.com/753124. Bug: 977180 Change-Id: Ia0c36b68ef0428a19f7ae94f2ae9bf575f55f0b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1699589 Commit-Queue: Yi Gu <yigu@chromium.org> Reviewed-by:Mike Pinkerton <pinkerton@chromium.org> Reviewed-by:
Sadrul Chowdhury <sadrul@chromium.org> Cr-Commit-Position: refs/heads/master@{#678499}
Showing
Please register or sign in to comment