Use the correct layout invalidation root in StyleEngine::InvalidateStyleAndLayoutForFontUpdates
The function currently uses the LayoutObject of the documentElement as the layout invalidation root, which is incorrect because there can be objects not in its subtree. For example, a modal dialog. This patch fixes it by using the LayoutView, the root of the layout tree, as the layout invalidation root. Bug: 1092411 Change-Id: Ic2475fe1fc9fd9029699a410b4f03a9f3812e240 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2255738Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#781132}
Showing
Please register or sign in to comment