Title: [228251] trunk/Source/WebInspectorUI
Revision
228251
Author
mattba...@apple.com
Date
2018-02-07 16:58:25 -0800 (Wed, 07 Feb 2018)

Log Message

Web Inspector: replace isAncestor with Node.contains() in LegacyTabBar
https://bugs.webkit.org/show_bug.cgi?id=182586

Reviewed by Timothy Hatcher.

* UserInterface/Views/LegacyTabBar.js:

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (228250 => 228251)


--- trunk/Source/WebInspectorUI/ChangeLog	2018-02-08 00:39:17 UTC (rev 228250)
+++ trunk/Source/WebInspectorUI/ChangeLog	2018-02-08 00:58:25 UTC (rev 228251)
@@ -1,3 +1,12 @@
+2018-02-07  Matt Baker  <mattba...@apple.com>
+
+        Web Inspector: replace isAncestor with Node.contains() in LegacyTabBar
+        https://bugs.webkit.org/show_bug.cgi?id=182586
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/LegacyTabBar.js:
+
 2018-02-07  Nikita Vasilyev  <nvasil...@apple.com>
 
         Web Inspector: Styles: completion popover doesn't hide when switching panels

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/LegacyTabBar.js (228250 => 228251)


--- trunk/Source/WebInspectorUI/UserInterface/Views/LegacyTabBar.js	2018-02-08 00:39:17 UTC (rev 228250)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/LegacyTabBar.js	2018-02-08 00:58:25 UTC (rev 228251)
@@ -112,7 +112,7 @@
         var nextSibling = this._tabBarItems[index + 1];
         let nextSiblingElement = nextSibling ? nextSibling.element : this._tabBarItems.lastValue.element;
 
-        if (this.element.isAncestor(nextSiblingElement))
+        if (this.element.contains(nextSiblingElement))
             this.element.insertBefore(tabBarItem.element, nextSiblingElement);
         else
             this.element.appendChild(tabBarItem.element);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to