[TextLayer] Hide the text layer when it's created in order to avoid reflows (fix #15844)

This commit is contained in:
Calixte Denizet 2022-12-16 17:24:40 +01:00
parent cb212b24fd
commit c3a3ba2ebe

View File

@ -59,6 +59,7 @@ class TextLayerBuilder {
this.div = document.createElement("div"); this.div = document.createElement("div");
this.div.className = "textLayer"; this.div.className = "textLayer";
this.hide();
} }
#finishRendering() { #finishRendering() {