Title: [249554] trunk/Tools
Revision
249554
Author
[email protected]
Date
2019-09-05 16:37:15 -0700 (Thu, 05 Sep 2019)

Log Message

results.webkit.org: Assign notifyRerender before calling
https://bugs.webkit.org/show_bug.cgi?id=201510

Reviewed by Aakash Jain.

Timelines should define notifyRerender to an empty function,
rename notifiyRerender to notifyRerender.

* resultsdbpy/resultsdbpy/view/static/js/timeline.js:
* resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:
* resultsdbpy/resultsdbpy/view/templates/search.html:
* resultsdbpy/resultsdbpy/view/templates/suite_results.html:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (249553 => 249554)


--- trunk/Tools/ChangeLog	2019-09-05 23:21:37 UTC (rev 249553)
+++ trunk/Tools/ChangeLog	2019-09-05 23:37:15 UTC (rev 249554)
@@ -1,5 +1,20 @@
 2019-09-05  Jonathan Bedard  <[email protected]>
 
+        results.webkit.org: Assign notifyRerender before calling
+        https://bugs.webkit.org/show_bug.cgi?id=201510
+
+        Reviewed by Aakash Jain.
+
+        Timelines should define notifyRerender to an empty function,
+        rename notifiyRerender to notifyRerender.
+
+        * resultsdbpy/resultsdbpy/view/static/js/timeline.js:
+        * resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js:
+        * resultsdbpy/resultsdbpy/view/templates/search.html:
+        * resultsdbpy/resultsdbpy/view/templates/suite_results.html:
+
+2019-09-05  Jonathan Bedard  <[email protected]>
+
         results.webkit.org: Fix prepending search result on empty list 
         https://bugs.webkit.org/show_bug.cgi?id=201512
 

Modified: trunk/Tools/resultsdbpy/resultsdbpy/view/static/js/timeline.js (249553 => 249554)


--- trunk/Tools/resultsdbpy/resultsdbpy/view/static/js/timeline.js	2019-09-05 23:21:37 UTC (rev 249553)
+++ trunk/Tools/resultsdbpy/resultsdbpy/view/static/js/timeline.js	2019-09-05 23:37:15 UTC (rev 249554)
@@ -380,6 +380,7 @@
         this.updates = [];
         this.xaxisUpdates = [];
         this.timelineUpdate = null;
+        this.notifyRerender = () => {};
         this.repositories = [];
 
         const self = this;
@@ -766,7 +767,7 @@
             top = false;
         });
 
-        const composer = FP.composer(FP.currying((updateTimeline, notifiyRerender) => {
+        const composer = FP.composer(FP.currying((updateTimeline, notifyRerender) => {
             self.timelineUpdate = (xAxises) => {
                 children.splice(0, 1);
                 if (self.repositories.length > 1)
@@ -782,7 +783,7 @@
                 });
                 updateTimeline(children);
             };
-            self.notifiyRerender = notifiyRerender;
+            self.notifyRerender = notifyRerender;
         }));
         return Timeline.CanvasContainer(composer, ...children);
     }

Modified: trunk/Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js (249553 => 249554)


--- trunk/Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js	2019-09-05 23:21:37 UTC (rev 249553)
+++ trunk/Tools/resultsdbpy/resultsdbpy/view/static/library/js/components/TimelineComponents.js	2019-09-05 23:37:15 UTC (rev 249554)
@@ -157,7 +157,7 @@
                                 scrollEventStream.replayLast();
                             },
                             /**
-                            * Notifiy Re-render
+                            * Notify Re-render
                             * @param width {number} r if undefined, it will auto detact the width change
                             */
                             (width) => {
@@ -512,7 +512,7 @@
                 element.children[1].style.display = 'none';
                 element.children[2].style.display = 'block';
             }
-            // Notifiy inside of the provider that we may changed the layout size because of expanded / unexpanded.
+            // Notify inside of the provider that we may changed the layout size because of expanded / unexpanded.
             layoutSizeMayChangeEvent.add();
         }
     });
@@ -897,13 +897,13 @@
         return {headers, serieses};
     };
     const {headers, serieses} = upackChildren(children);
-    let composer = FP.composer(FP.currying((updateHeaders, updateSerieses, notifiyRerender) => {
+    let composer = FP.composer(FP.currying((updateHeaders, updateSerieses, notifyRerender) => {
         if (exporter)
             exporter((newChildren) => {
                 const {headers, serieses} = upackChildren(newChildren);
                 updateHeaders(headers);
                 updateSerieses(serieses);
-            }, notifiyRerender);
+            }, notifyRerender);
     }));
     return (
         `<div class="timeline">

Modified: trunk/Tools/resultsdbpy/resultsdbpy/view/templates/search.html (249553 => 249554)


--- trunk/Tools/resultsdbpy/resultsdbpy/view/templates/search.html	2019-09-05 23:21:37 UTC (rev 249553)
+++ trunk/Tools/resultsdbpy/resultsdbpy/view/templates/search.html	2019-09-05 23:37:15 UTC (rev 249554)
@@ -206,9 +206,9 @@
     toString() {
         return `<div ref="${this.ref}"></div>`;
     }
-    notifiyTimelinesRender() {
+    notifyTimelinesRender() {
         this.ref.state.children.forEach(child => {
-            child.timeline.notifiyRerender();
+            child.timeline.notifyRerender();
         });
     }
 }
@@ -216,7 +216,7 @@
 let view = new SearchView();
 const _onLayoutChange_ = new EventStream();
 onLayoutChange.action(() => {
-    view.notifiyTimelinesRender();
+    view.notifyTimelinesRender();
 });
 window._onpopstate_ = event => {view.reload();};
 window._onpushstate_ = event => {view.reload();};

Modified: trunk/Tools/resultsdbpy/resultsdbpy/view/templates/suite_results.html (249553 => 249554)


--- trunk/Tools/resultsdbpy/resultsdbpy/view/templates/suite_results.html	2019-09-05 23:21:37 UTC (rev 249553)
+++ trunk/Tools/resultsdbpy/resultsdbpy/view/templates/suite_results.html	2019-09-05 23:37:15 UTC (rev 249554)
@@ -152,9 +152,9 @@
                 </div><br>`;
         }).join('');
     }
-    notifiyTimelinesRender() {
+    notifyTimelinesRender() {
         for (let suite in this.children) {
-            this.children[suite].notifiyRerender();
+            this.children[suite].notifyRerender();
         }
     }
 }
@@ -162,7 +162,7 @@
 let view = new MainView();
 const _onLayoutChange_ = new EventStream();
 onLayoutChange.action(() => {
-    view.notifiyTimelinesRender();
+    view.notifyTimelinesRender();
 });
 
 DOM.inject(document.getElementById('app'), `${ToolTip}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to