Bug 930281 - Use nsINode instead of nsIContent. r=smaug, a=bajaj
authorHenri Sivonen <hsivonen@hsivonen.fi>
Mon, 04 Nov 2013 12:24:57 +0200
changeset 119961 5a2f9444ccf5d8c834a3d6409530f56a07512762
parent 119960 3d28e6cbacce6b95306a2675fa57c4e06e5c9c2a
child 119962 7c3cfc0936cacea7739e4ceb639587bf5b5d489d
push id1097
push userryanvm@gmail.com
push dateWed, 13 Nov 2013 14:33:52 +0000
reviewerssmaug, bajaj
bugs930281
milestone18.1
Bug 930281 - Use nsINode instead of nsIContent. r=smaug, a=bajaj
parser/html/nsHtml5TreeOperation.cpp
--- a/parser/html/nsHtml5TreeOperation.cpp
+++ b/parser/html/nsHtml5TreeOperation.cpp
@@ -230,17 +230,17 @@ nsHtml5TreeOperation::Perform(nsHtml5Tre
     case eTreeOpAppend: {
       nsIContent* node = *(mOne.node);
       nsIContent* parent = *(mTwo.node);
       return Append(node, parent, aBuilder);
     }
     case eTreeOpDetach: {
       nsIContent* node = *(mOne.node);
       aBuilder->FlushPendingAppendNotifications();
-      nsCOMPtr<nsIContent> parent = node->GetParent();
+      nsCOMPtr<nsINode> parent = node->GetParentNode();
       if (parent) {
         nsHtml5OtherDocUpdate update(parent->OwnerDoc(),
                                      aBuilder->GetDocument());
         int32_t pos = parent->IndexOf(node);
         NS_ASSERTION((pos >= 0), "Element not found as child of its parent");
         parent->RemoveChildAt(pos, true);
       }
       return NS_OK;