Commit 3f1ac05f authored by Morten Stenshorne's avatar Morten Stenshorne Committed by Commit Bot

Avoid LazyReattachIfAttached in SetIsInTopLayer().

Use SetForceReattachLayoutTree() instead.

Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
Change-Id: I47811d822eafeac54fecc6aaecc275ce0c0e4954
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1541792Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Commit-Queue: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#645329}
parent 881c23f6
...@@ -4596,7 +4596,7 @@ void Element::SetIsInTopLayer(bool in_top_layer) { ...@@ -4596,7 +4596,7 @@ void Element::SetIsInTopLayer(bool in_top_layer) {
if (!isConnected()) if (!isConnected())
return; return;
if (!GetDocument().InStyleRecalc()) if (!GetDocument().InStyleRecalc())
LazyReattachIfAttached(); SetForceReattachLayoutTree();
} }
void Element::requestPointerLock() { void Element::requestPointerLock() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment