Web Inspector: Fix typo "vritualized"
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Sep 2018 19:51:19 +0000 (19:51 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Sep 2018 19:51:19 +0000 (19:51 +0000)
https://bugs.webkit.org/show_bug.cgi?id=189511

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2018-09-11
Reviewed by Devin Rousso.

* UserInterface/Views/TreeOutline.js:
(WI.TreeOutline):
(WI.TreeOutline.prototype.registerScrollVirtualizer):
(WI.TreeOutline.prototype.updateVirtualizedElements):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235912 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Views/TreeOutline.js

index b2f23f6..beed0a4 100644 (file)
@@ -1,3 +1,15 @@
+2018-09-11  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: Fix typo "vritualized"
+        https://bugs.webkit.org/show_bug.cgi?id=189511
+
+        Reviewed by Devin Rousso.
+
+        * UserInterface/Views/TreeOutline.js:
+        (WI.TreeOutline):
+        (WI.TreeOutline.prototype.registerScrollVirtualizer):
+        (WI.TreeOutline.prototype.updateVirtualizedElements):
+
 2018-09-10  Joseph Pecoraro  <pecoraro@apple.com>
 
         Web Inspector: Address some ESLint warnings
index 4a1bfeb..eb63ab0 100644 (file)
@@ -55,7 +55,7 @@ WI.TreeOutline = class TreeOutline extends WI.Object
         this._customIndent = false;
         this._selectable = selectable;
 
-        this._vritualizedCurrentMiddleItem = NaN;
+        this._virtualizedCurrentMiddleItem = NaN;
         this._virtualizedScrollContainer = null;
         this._virtualizedTreeItemHeight = NaN;
         this._virtualizedTopSpacer = null;
@@ -662,7 +662,7 @@ WI.TreeOutline = class TreeOutline extends WI.Object
         this._virtualizedScrollContainer.addEventListener("scroll", (event) => {
             let {numberVisible, extraRows, firstItem} = this._calculateVirtualizedValues();
 
-            if (Math.abs(firstItem + (numberVisible / 2) - this._vritualizedCurrentMiddleItem) >= extraRows)
+            if (Math.abs(firstItem + (numberVisible / 2) - this._virtualizedCurrentMiddleItem) >= extraRows)
                 this.updateVirtualizedElements();
         });
     }
@@ -735,7 +735,7 @@ WI.TreeOutline = class TreeOutline extends WI.Object
         if (shouldScroll)
             this._virtualizedScrollContainer.scrollTop = (firstItem + extraRows) * this._virtualizedTreeItemHeight;
 
-        this._vritualizedCurrentMiddleItem = firstItem + (numberVisible / 2);
+        this._virtualizedCurrentMiddleItem = firstItem + (numberVisible / 2);
     }
 
     // Protected