Loading content/base/src/nsContentIterator.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -185,7 +185,7 @@ nsresult nsContentIterator::Init(nsIDOMRange* aRange) aRange->GetStartParent(getter_AddRefs(dN)); if (!dN) return NS_ERROR_ILLEGAL_VALUE; cN = dN; cN = do_QueryInterface(dN); if (!cN) return NS_ERROR_FAILURE; Loading Loading @@ -232,7 +232,7 @@ nsresult nsContentIterator::Init(nsIDOMRange* aRange) aRange->GetEndParent(getter_AddRefs(dN)); if (!dN) return NS_ERROR_ILLEGAL_VALUE; cN = dN; cN = do_QueryInterface(dN); if (!cN) return NS_ERROR_FAILURE; Loading Loading @@ -507,7 +507,7 @@ nsresult nsContentSubtreeIterator::Init(nsIDOMRange* aRange) aRange->GetStartParent(getter_AddRefs(dN)); if (!dN) return NS_ERROR_ILLEGAL_VALUE; cN = dN; cN = do_QueryInterface(dN); if (!cN) return NS_ERROR_FAILURE; Loading Loading @@ -572,7 +572,7 @@ nsresult nsContentSubtreeIterator::Init(nsIDOMRange* aRange) aRange->GetEndParent(getter_AddRefs(dN)); if (!dN) return NS_ERROR_ILLEGAL_VALUE; cN = dN; cN = do_QueryInterface(dN); if (!cN) return NS_ERROR_FAILURE; Loading content/base/src/nsGenericDOMDataNode.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -501,8 +501,8 @@ nsGenericDOMDataNode::ConvertContentToXIF(nsXIFConverter& aConverter) const nsCOMPtr<nsIContent> startContent; nsCOMPtr<nsIContent> endContent; startContent = startNode; endContent = endNode; startContent = do_QueryInterface(startNode); endContent = do_QueryInterface(endNode); nsString buffer; Loading content/base/src/nsRange.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -218,7 +218,7 @@ PRBool GetNodeBracketPoints(nsIContent* aNode, // end of the root node, becasue it has no parent. // so instead represent it by (node,0) and (node,numChildren) *outParent = aNode; nsCOMPtr<nsIContent> cN(*outParent); nsCOMPtr<nsIContent> cN(do_QueryInterface(*outParent)); if (!cN) return false; cN->ChildCount(indx); Loading @@ -229,7 +229,7 @@ PRBool GetNodeBracketPoints(nsIContent* aNode, } else { nsCOMPtr<nsIContent> cN(*outParent); nsCOMPtr<nsIContent> cN(do_QueryInterface(*outParent)); if (!NS_SUCCEEDED(cN->IndexOf(aNode, indx))) return false; *outStartOffset = indx; Loading Loading @@ -1251,7 +1251,7 @@ nsRange::CloneSibsAndParents(nsCOMPtr<nsIDOMNode> parentNode, PRInt32 nodeOffset // Make clone of parent: if (parentNode == commonParent || !parentNode) { parentClone = docfrag; parentClone = do_QueryInterface(docfrag); } else { Loading layout/base/nsCaret.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -255,14 +255,14 @@ void nsCaret::DrawCaret() domSelection->GetFocusNodeAndOffset(getter_doesnt_AddRef(focusNode), &focusOffset); // is this a text node? nsCOMPtr<nsIDOMCharacterData> nodeAsText(focusNode); nsCOMPtr<nsIDOMCharacterData> nodeAsText(do_QueryInterface(focusNode)); if (nodeAsText) { PRInt32 contentOffset = focusOffset; if (focusNode) { nsCOMPtr<nsIContent>contentNode(focusNode); nsCOMPtr<nsIContent>contentNode(do_QueryInterface(focusNode)); if (contentNode) { Loading layout/base/src/nsCaret.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -255,14 +255,14 @@ void nsCaret::DrawCaret() domSelection->GetFocusNodeAndOffset(getter_doesnt_AddRef(focusNode), &focusOffset); // is this a text node? nsCOMPtr<nsIDOMCharacterData> nodeAsText(focusNode); nsCOMPtr<nsIDOMCharacterData> nodeAsText(do_QueryInterface(focusNode)); if (nodeAsText) { PRInt32 contentOffset = focusOffset; if (focusNode) { nsCOMPtr<nsIContent>contentNode(focusNode); nsCOMPtr<nsIContent>contentNode(do_QueryInterface(focusNode)); if (contentNode) { Loading Loading
content/base/src/nsContentIterator.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -185,7 +185,7 @@ nsresult nsContentIterator::Init(nsIDOMRange* aRange) aRange->GetStartParent(getter_AddRefs(dN)); if (!dN) return NS_ERROR_ILLEGAL_VALUE; cN = dN; cN = do_QueryInterface(dN); if (!cN) return NS_ERROR_FAILURE; Loading Loading @@ -232,7 +232,7 @@ nsresult nsContentIterator::Init(nsIDOMRange* aRange) aRange->GetEndParent(getter_AddRefs(dN)); if (!dN) return NS_ERROR_ILLEGAL_VALUE; cN = dN; cN = do_QueryInterface(dN); if (!cN) return NS_ERROR_FAILURE; Loading Loading @@ -507,7 +507,7 @@ nsresult nsContentSubtreeIterator::Init(nsIDOMRange* aRange) aRange->GetStartParent(getter_AddRefs(dN)); if (!dN) return NS_ERROR_ILLEGAL_VALUE; cN = dN; cN = do_QueryInterface(dN); if (!cN) return NS_ERROR_FAILURE; Loading Loading @@ -572,7 +572,7 @@ nsresult nsContentSubtreeIterator::Init(nsIDOMRange* aRange) aRange->GetEndParent(getter_AddRefs(dN)); if (!dN) return NS_ERROR_ILLEGAL_VALUE; cN = dN; cN = do_QueryInterface(dN); if (!cN) return NS_ERROR_FAILURE; Loading
content/base/src/nsGenericDOMDataNode.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -501,8 +501,8 @@ nsGenericDOMDataNode::ConvertContentToXIF(nsXIFConverter& aConverter) const nsCOMPtr<nsIContent> startContent; nsCOMPtr<nsIContent> endContent; startContent = startNode; endContent = endNode; startContent = do_QueryInterface(startNode); endContent = do_QueryInterface(endNode); nsString buffer; Loading
content/base/src/nsRange.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -218,7 +218,7 @@ PRBool GetNodeBracketPoints(nsIContent* aNode, // end of the root node, becasue it has no parent. // so instead represent it by (node,0) and (node,numChildren) *outParent = aNode; nsCOMPtr<nsIContent> cN(*outParent); nsCOMPtr<nsIContent> cN(do_QueryInterface(*outParent)); if (!cN) return false; cN->ChildCount(indx); Loading @@ -229,7 +229,7 @@ PRBool GetNodeBracketPoints(nsIContent* aNode, } else { nsCOMPtr<nsIContent> cN(*outParent); nsCOMPtr<nsIContent> cN(do_QueryInterface(*outParent)); if (!NS_SUCCEEDED(cN->IndexOf(aNode, indx))) return false; *outStartOffset = indx; Loading Loading @@ -1251,7 +1251,7 @@ nsRange::CloneSibsAndParents(nsCOMPtr<nsIDOMNode> parentNode, PRInt32 nodeOffset // Make clone of parent: if (parentNode == commonParent || !parentNode) { parentClone = docfrag; parentClone = do_QueryInterface(docfrag); } else { Loading
layout/base/nsCaret.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -255,14 +255,14 @@ void nsCaret::DrawCaret() domSelection->GetFocusNodeAndOffset(getter_doesnt_AddRef(focusNode), &focusOffset); // is this a text node? nsCOMPtr<nsIDOMCharacterData> nodeAsText(focusNode); nsCOMPtr<nsIDOMCharacterData> nodeAsText(do_QueryInterface(focusNode)); if (nodeAsText) { PRInt32 contentOffset = focusOffset; if (focusNode) { nsCOMPtr<nsIContent>contentNode(focusNode); nsCOMPtr<nsIContent>contentNode(do_QueryInterface(focusNode)); if (contentNode) { Loading
layout/base/src/nsCaret.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -255,14 +255,14 @@ void nsCaret::DrawCaret() domSelection->GetFocusNodeAndOffset(getter_doesnt_AddRef(focusNode), &focusOffset); // is this a text node? nsCOMPtr<nsIDOMCharacterData> nodeAsText(focusNode); nsCOMPtr<nsIDOMCharacterData> nodeAsText(do_QueryInterface(focusNode)); if (nodeAsText) { PRInt32 contentOffset = focusOffset; if (focusNode) { nsCOMPtr<nsIContent>contentNode(focusNode); nsCOMPtr<nsIContent>contentNode(do_QueryInterface(focusNode)); if (contentNode) { Loading