Unreviewed, fix nits found after landing r210833.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jan 2017 01:35:46 +0000 (01:35 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Jan 2017 01:35:46 +0000 (01:35 +0000)
https://bugs.webkit.org/show_bug.cgi?id=167065

* dom/ContainerNode.cpp:
(WebCore::ContainerNode::replaceAllChildren):
* dom/ContainerNode.h:

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

Source/WebCore/ChangeLog
Source/WebCore/dom/ContainerNode.cpp
Source/WebCore/dom/ContainerNode.h

index d2e53b2..d8aab2c 100644 (file)
@@ -1,3 +1,12 @@
+2017-01-17  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed, fix nits found after landing r210833.
+        https://bugs.webkit.org/show_bug.cgi?id=167065
+
+        * dom/ContainerNode.cpp:
+        (WebCore::ContainerNode::replaceAllChildren):
+        * dom/ContainerNode.h:
+
 2017-01-17  Andreas Kling  <akling@apple.com>
 
         WidthCache should be off while under memory pressure.
index cca660e..68396e1 100644 (file)
@@ -624,7 +624,7 @@ void ContainerNode::replaceAllChildren(Ref<Node>&& node)
     Ref<ContainerNode> protectedThis(*this);
     ChildListMutationScope mutation(*this);
 
-    // If node is not null, adopt node into parents node document.
+    // If node is not null, adopt node into parent's node document.
     treeScope().adoptIfNeeded(node);
 
     // Remove all parent's children, in tree order.
index cbf3542..b0beb6c 100644 (file)
@@ -128,7 +128,7 @@ private:
 
     enum class ReplacedAllChildren { No, Yes };
     void updateTreeAfterInsertion(Node& child, ReplacedAllChildren = ReplacedAllChildren::No);
-    static ChildChange changeForChildInsertion(Node&, ChildChangeSource, ReplacedAllChildren = ReplacedAllChildren::No);
+    static ChildChange changeForChildInsertion(Node& child, ChildChangeSource, ReplacedAllChildren = ReplacedAllChildren::No);
     void rebuildSVGExtensionsElementsIfNecessary();
 
     bool isContainerNode() const = delete;