[scroll-to-text-fragment] Fix TextFragmentAnchor CSS :target DCHECK
In crrev.com/c/1965273 we started setting the CSS :target on the document to the found match. However, this dirties style and may require a lifecycle update, causing the computation of the highlight and scroll rects to DCHECK. This patch adds a call to UpdateStyleAndLayout after setting the target. Bug: 1045117 Change-Id: Ic6648665ef7e7d1e9fba47a6bac0741803257269 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2017562Reviewed-by:David Bokan <bokan@chromium.org> Commit-Queue: Nick Burris <nburris@chromium.org> Cr-Commit-Position: refs/heads/master@{#736621}
Showing
Please register or sign in to comment