diff --git a/content/base/src/nsDOMSerializer.cpp b/content/base/src/nsDOMSerializer.cpp index ebc9bb5d8bfe..b5cf435e9fb0 100644 --- a/content/base/src/nsDOMSerializer.cpp +++ b/content/base/src/nsDOMSerializer.cpp @@ -38,7 +38,6 @@ #include "nsDOMSerializer.h" #include "nsIDOMNode.h" -#include "nsIDOMRange.h" #include "nsIDOMClassInfo.h" #include "nsIOutputStream.h" #include "nsIDocument.h" @@ -54,9 +53,6 @@ #include "nsICodebasePrincipal.h" #include "nsIURI.h" -#include "nsLayoutCID.h" // XXX Need range CID -static NS_DEFINE_CID(kRangeCID,NS_RANGE_CID); - nsDOMSerializer::nsDOMSerializer() { } @@ -117,11 +113,7 @@ static nsresult SetUpEncoder(nsIDOMNode *aRoot, const char* aCharset, nsIDocumen // If we are working on the entire document we do not need to specify which part to serialize if (!entireDocument) { - nsCOMPtr range(do_CreateInstance(kRangeCID)); - rv = range->SelectNode(aRoot); - if (NS_SUCCEEDED(rv)) { - rv = encoder->SetRange(range); - } + rv = encoder->SetNode(aRoot); } if (NS_SUCCEEDED(rv)) {