Bug 1546338 - Follow-up: fix some more instances. rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Fri, 24 May 2019 01:05:43 +0200
changeset 35675 2b1b73b8c5d7239ec32be81e337ec3b46e813473
parent 35674 6b0fd637981a4690419588abb44ae08274758cd8
child 35676 03a1c48e8e694ac51f444d7e6eeb138a6f110bb7
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersbustage-fix
bugs1546338
Bug 1546338 - Follow-up: fix some more instances. rs=bustage-fix
calendar/base/content/calendar-multiday-base-view.js
--- a/calendar/base/content/calendar-multiday-base-view.js
+++ b/calendar/base/content/calendar-multiday-base-view.js
@@ -133,17 +133,17 @@
                 topbox.lastChild.remove();
             }
 
             const orient = topbox.getAttribute("orient");
             const timeFormatter = cal.getDateFormatter();
             const jsTime = new Date();
 
             this.getSections().forEach(([startMinute, duration]) => {
-                const box = document.createElement("div");
+                const box = document.createXULElement("div");
                 box.setAttribute("orient", orient);
 
                 // Calculate duration pixel as the difference between
                 // start pixel and end pixel to avoid rounding errors.
                 const startPix = Math.round(startMinute * this.mPixPerMin);
                 const endPix = Math.round((startMinute + duration) * this.mPixPerMin);
                 const durPix = endPix - startPix;
 
@@ -155,17 +155,17 @@
                 if (duration == 60) {
                     jsTime.setHours(hour, 0, 0);
 
                     const dateTime = cal.dtz.jsDateToDateTime(jsTime, cal.dtz.floating);
 
                     timeString = timeFormatter.formatTime(dateTime);
                 }
 
-                const label = document.createElement("label");
+                const label = document.createXULElement("label");
                 label.setAttribute("value", timeString);
                 label.setAttribute("class", "calendar-time-bar-label");
                 label.setAttribute("align", "center");
                 box.appendChild(label);
 
                 // Set up workweek hours.
                 if (hour < this.mDayStartHour || hour >= this.mDayEndHour) {
                     box.setAttribute("off-time", "true");