diff --git a/content/base/src/nsSelection.cpp b/content/base/src/nsSelection.cpp index 6265cc422390..fa07a6afdb38 100644 --- a/content/base/src/nsSelection.cpp +++ b/content/base/src/nsSelection.cpp @@ -5239,7 +5239,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes) nsCOMPtr newrange, range = do_QueryInterface(element); if (!range) return NS_ERROR_UNEXPECTED; - +/* // For bug 46554: since the only callers of ContainsNode() is the copy code from document, // I'm altering the semantics of this routine. Now it will consider any node whose // children are all selected to be selected itself. This is to help the user get @@ -5251,7 +5251,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes) rv = PromoteRange(newrange); if (NS_FAILED(rv)) return rv; - +*/ nsCOMPtr content (do_QueryInterface(aNode)); if (content) { diff --git a/layout/base/src/nsSelection.cpp b/layout/base/src/nsSelection.cpp index 6265cc422390..fa07a6afdb38 100644 --- a/layout/base/src/nsSelection.cpp +++ b/layout/base/src/nsSelection.cpp @@ -5239,7 +5239,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes) nsCOMPtr newrange, range = do_QueryInterface(element); if (!range) return NS_ERROR_UNEXPECTED; - +/* // For bug 46554: since the only callers of ContainsNode() is the copy code from document, // I'm altering the semantics of this routine. Now it will consider any node whose // children are all selected to be selected itself. This is to help the user get @@ -5251,7 +5251,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes) rv = PromoteRange(newrange); if (NS_FAILED(rv)) return rv; - +*/ nsCOMPtr content (do_QueryInterface(aNode)); if (content) { diff --git a/layout/generic/nsSelection.cpp b/layout/generic/nsSelection.cpp index 6265cc422390..fa07a6afdb38 100644 --- a/layout/generic/nsSelection.cpp +++ b/layout/generic/nsSelection.cpp @@ -5239,7 +5239,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes) nsCOMPtr newrange, range = do_QueryInterface(element); if (!range) return NS_ERROR_UNEXPECTED; - +/* // For bug 46554: since the only callers of ContainsNode() is the copy code from document, // I'm altering the semantics of this routine. Now it will consider any node whose // children are all selected to be selected itself. This is to help the user get @@ -5251,7 +5251,7 @@ nsDOMSelection::ContainsNode(nsIDOMNode* aNode, PRBool aRecursive, PRBool* aYes) rv = PromoteRange(newrange); if (NS_FAILED(rv)) return rv; - +*/ nsCOMPtr content (do_QueryInterface(aNode)); if (content) {