Fixed: <rdar://problem/3954842> Forward/reply to an HTML email can result in nothing...
authorcblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Feb 2005 01:39:20 +0000 (01:39 +0000)
committercblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Feb 2005 01:39:20 +0000 (01:39 +0000)
        Reviewed by john.

        * khtml/xml/dom_nodeimpl.cpp:
        (NodeBaseImpl::addChild): don't call insertedIntoDocument on the added child if "this" itself is not in the document.

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

WebCore/ChangeLog-2005-08-23
WebCore/khtml/xml/dom_nodeimpl.cpp

index 25fceca3fb8618a7bf89dd7d49438aa9a64bfda8..e79e8ebb19acacff4edeafb1b2bd045b7b00f976 100644 (file)
@@ -1,3 +1,12 @@
+2005-02-16  Chris Blumenberg  <cblu@apple.com>
+       
+       Fixed: <rdar://problem/3954842> Forward/reply to an HTML email can result in nothing (in cases with <link> tags for CSS)
+
+        Reviewed by john.
+
+        * khtml/xml/dom_nodeimpl.cpp:
+        (NodeBaseImpl::addChild): don't call insertedIntoDocument on the added child if "this" itself is not in the document.
+
 2005-02-16  John Sullivan  <sullivan@apple.com>
 
         Written by Darin, reviewed by Maciej and me
index aa0a049deeade880dd66efe1b6454a794ec29493..702fa782593d206eec16348de3e64cfd5ee1df8f 100644 (file)
@@ -1915,7 +1915,8 @@ NodeImpl *NodeBaseImpl::addChild(NodeImpl *newChild)
         _first = _last = newChild;
     }
 
-    newChild->insertedIntoDocument();
+    if (inDocument())
+        newChild->insertedIntoDocument();
     childrenChanged();
 
     if(newChild->nodeType() == Node::ELEMENT_NODE)