Don't return text node from WebViewImpl::BestTapNode()
In cases like <div style="display: contents; cursor: pointer">Text</div>, previously WebViewImpl::BestTapNode() returned the text node, which caused crash in LinkHighlightImpl::Paint() because a text node can't have paint properties. Let WebViewImpl::BestTapNode() return nullptr in the case because a text node can't have touch actions, to fix the crash. Bug: 1052650, 1016587 Change-Id: If9f6d3f8c7368649e00ea804e9d48a17eef3fbc0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2063770 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by:Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#742465}
Showing
Please register or sign in to comment