mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 966579 - Tweaks to mutation observer usage for fix intermittent chat orange. r=mixedpuppy
This commit is contained in:
parent
c037e812df
commit
3d6a5e08bd
@ -543,17 +543,18 @@ function resizeAndCheckWidths(first, second, third, checks, cb) {
|
|||||||
}
|
}
|
||||||
ok(true, count + ": " + "correct number of chats visible");
|
ok(true, count + ": " + "correct number of chats visible");
|
||||||
info(">> Check " + count);
|
info(">> Check " + count);
|
||||||
resizeAndCheckWidths(first, second, third, checks, cb);
|
executeSoon(function() {
|
||||||
return true;
|
resizeAndCheckWidths(first, second, third, checks, cb);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (!collapsedObserver()) {
|
|
||||||
let m = new MutationObserver(collapsedObserver);
|
|
||||||
m.observe(first, {attributes: true });
|
|
||||||
m.observe(second, {attributes: true });
|
|
||||||
m.observe(third, {attributes: true });
|
|
||||||
}
|
}
|
||||||
|
let m = new MutationObserver(collapsedObserver);
|
||||||
|
m.observe(first, {attributes: true });
|
||||||
|
m.observe(second, {attributes: true });
|
||||||
|
m.observe(third, {attributes: true });
|
||||||
|
// and just in case we are already at the right size, explicitly call the
|
||||||
|
// observer.
|
||||||
|
collapsedObserver(undefined, m);
|
||||||
}, count);
|
}, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user