Web Inspector: rename shadowRootPushed parameter to match protocol
authormattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jun 2019 05:44:02 +0000 (05:44 +0000)
committermattbaker@apple.com <mattbaker@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jun 2019 05:44:02 +0000 (05:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=199098

Reviewed by Devin Rousso.

* UserInterface/Protocol/DOMObserver.js:
(WI.DOMObserver.prototype.shadowRootPushed):

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

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Protocol/DOMObserver.js

index 8a47811..5a960b9 100644 (file)
@@ -1,3 +1,13 @@
+2019-06-20  Matt Baker  <mattbaker@apple.com>
+
+        Web Inspector: rename shadowRootPushed parameter to match protocol
+        https://bugs.webkit.org/show_bug.cgi?id=199098
+
+        Reviewed by Devin Rousso.
+
+        * UserInterface/Protocol/DOMObserver.js:
+        (WI.DOMObserver.prototype.shadowRootPushed):
+
 2019-06-20  Devin Rousso  <drousso@apple.com>
 
         Web Inspector: Error "null is not an object (evaluating 'syntaxTree.containersOfPosition')" when setting a breakpoint
index 73cbef3..7eaad21 100644 (file)
@@ -37,9 +37,9 @@ WI.DOMObserver = class DOMObserver
         WI.domManager.inspectElement(nodeId);
     }
 
-    setChildNodes(parentId, payloads)
+    setChildNodes(parentId, nodes)
     {
-        WI.domManager._setChildNodes(parentId, payloads);
+        WI.domManager._setChildNodes(parentId, nodes);
     }
 
     attributeModified(nodeId, name, value)
@@ -67,9 +67,9 @@ WI.DOMObserver = class DOMObserver
         WI.domManager._childNodeCountUpdated(nodeId, childNodeCount);
     }
 
-    childNodeInserted(parentNodeId, previousNodeId, payload)
+    childNodeInserted(parentNodeId, previousNodeId, node)
     {
-        WI.domManager._childNodeInserted(parentNodeId, previousNodeId, payload);
+        WI.domManager._childNodeInserted(parentNodeId, previousNodeId, node);
     }
 
     childNodeRemoved(parentNodeId, nodeId)
@@ -77,14 +77,14 @@ WI.DOMObserver = class DOMObserver
         WI.domManager._childNodeRemoved(parentNodeId, nodeId);
     }
 
-    shadowRootPushed(parentNodeId, nodeId)
+    shadowRootPushed(hostId, root)
     {
-        WI.domManager._childNodeInserted(parentNodeId, 0, nodeId);
+        WI.domManager._childNodeInserted(hostId, 0, root);
     }
 
-    shadowRootPopped(parentNodeId, nodeId)
+    shadowRootPopped(hostId, rootId)
     {
-        WI.domManager._childNodeRemoved(parentNodeId, nodeId);
+        WI.domManager._childNodeRemoved(hostId, rootId);
     }
 
     customElementStateChanged(nodeId, customElementState)