Title: [108595] trunk/Source/WebCore
Revision
108595
Author
[email protected]
Date
2012-02-22 19:01:11 -0800 (Wed, 22 Feb 2012)

Log Message

Remove obsolete FIXMEs from ContainerNode
https://bugs.webkit.org/show_bug.cgi?id=79295

Reviewed by Ryosuke Niwa.

Each of these three identical FIXMEs has since been fixed by adding
"RefPtr<Node> protect(this)" at the top of each method.

* dom/ContainerNode.cpp:
(WebCore::ContainerNode::insertBefore):
(WebCore::ContainerNode::replaceChild):
(WebCore::ContainerNode::removeChild):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (108594 => 108595)


--- trunk/Source/WebCore/ChangeLog	2012-02-23 02:51:20 UTC (rev 108594)
+++ trunk/Source/WebCore/ChangeLog	2012-02-23 03:01:11 UTC (rev 108595)
@@ -1,3 +1,18 @@
+2012-02-22  Adam Klein  <[email protected]>
+
+        Remove obsolete FIXMEs from ContainerNode
+        https://bugs.webkit.org/show_bug.cgi?id=79295
+
+        Reviewed by Ryosuke Niwa.
+
+        Each of these three identical FIXMEs has since been fixed by adding
+        "RefPtr<Node> protect(this)" at the top of each method.
+
+        * dom/ContainerNode.cpp:
+        (WebCore::ContainerNode::insertBefore):
+        (WebCore::ContainerNode::replaceChild):
+        (WebCore::ContainerNode::removeChild):
+
 2012-02-22  Dmitry Lomov  <[email protected]>
 
         [JSC] Implement ArrayBuffer and typed array cloning in JSC

Modified: trunk/Source/WebCore/dom/ContainerNode.cpp (108594 => 108595)


--- trunk/Source/WebCore/dom/ContainerNode.cpp	2012-02-23 02:51:20 UTC (rev 108594)
+++ trunk/Source/WebCore/dom/ContainerNode.cpp	2012-02-23 03:01:11 UTC (rev 108595)
@@ -158,11 +158,6 @@
         if (ec)
             return false;
 
-        // FIXME: After sending the mutation events, "this" could be destroyed.
-        // We can prevent that by doing a "ref", but first we have to make sure
-        // that no callers call with ref count == 0 and parent = 0 (as of this
-        // writing, there are definitely callers who call that way).
-
         // Due to arbitrary code running in response to a DOM mutation event it's
         // possible that "next" is no longer a child of "this".
         // It's also possible that "child" has been inserted elsewhere.
@@ -293,11 +288,6 @@
     if (ec)
         return false;
 
-    // FIXME: After sending the mutation events, "this" could be destroyed.
-    // We can prevent that by doing a "ref", but first we have to make sure
-    // that no callers call with ref count == 0 and parent = 0 (as of this
-    // writing, there are definitely callers who call that way).
-
     bool isFragment = newChild->nodeType() == DOCUMENT_FRAGMENT_NODE && !newChild->isShadowRoot();
 
     // Add the new child(ren)
@@ -469,11 +459,6 @@
         return false;
     }
 
-    // FIXME: After sending the mutation events, "this" could be destroyed.
-    // We can prevent that by doing a "ref", but first we have to make sure
-    // that no callers call with ref count == 0 and parent = 0 (as of this
-    // writing, there are definitely callers who call that way).
-
     Node* prev = child->previousSibling();
     Node* next = child->nextSibling();
     removeBetween(prev, next, child.get());
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to