Bug 1647455 [wpt PR 24295] - Use the correct layout invalidation root in StyleEngine...
commit1ffe6f33837b20eaf0a1c234a59269bd2b37fb27
authorXiaocheng Hu <xiaochengh@chromium.org>
Tue, 23 Jun 2020 21:52:24 +0000 (23 21:52 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 24 Jun 2020 14:11:25 +0000 (24 14:11 +0000)
treec5f001ca9861f1da7b5eaaad036b85081c950b00
parentf51600d1c407167705d5fbbb616a6309b526b7ae
Bug 1647455 [wpt PR 24295] - Use the correct layout invalidation root in StyleEngine::InvalidateStyleAndLayoutForFontUpdates, a=testonly

Automatic update from web-platform-tests
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/+/2255738
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#781132}

--

wpt-commits: 80aec473c19f40c879df56657c9c4ee6ed8959ca
wpt-pr: 24295
testing/web-platform/tests/css/css-font-loading/fontface-load-in-modal-dialog.html [new file with mode: 0644]