Bug 637621, allow selection collapse more often, r+a=jst, bustage fix
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Tue, 29 Mar 2011 20:20:13 +0300
changeset 27382 fbb2dfda1784cbce2f2e0a078286f9869e94af5c
parent 27381 74fd63b96277529a73ce0f138b2bfa2efb9c371a
child 27383 2b48d65b67c97682eec68b4f80e5ec78a5fe619a
push id2704
push useropettay@mozilla.com
push dateTue, 29 Mar 2011 17:21:25 +0000
bugs637621
milestone1.9.1.19pre
Bug 637621, allow selection collapse more often, r+a=jst, bustage fix
layout/generic/nsSelection.cpp
--- a/layout/generic/nsSelection.cpp
+++ b/layout/generic/nsSelection.cpp
@@ -5515,17 +5515,17 @@ nsTypedSelection::RemoveRange(nsIDOMRang
 NS_IMETHODIMP
 nsTypedSelection::Collapse(nsIDOMNode* aParentNode, PRInt32 aOffset)
 {
   if (!aParentNode)
     return NS_ERROR_INVALID_ARG;
   if (!mFrameSelection)
     return NS_ERROR_NOT_INITIALIZED; // Can't do selection
 
-  nsCOMPtr<nsINode> kungfuDeathGrip = aParentNode;
+  nsCOMPtr<nsIDOMNode> kungfuDeathGrip = aParentNode;
 
   mFrameSelection->InvalidateDesiredX();
   if (!IsValidSelectionPoint(mFrameSelection, aParentNode))
     return NS_ERROR_FAILURE;
   nsresult result;
   // Delete all of the current ranges
   nsCOMPtr<nsPresContext>  presContext;
   GetPresContext(getter_AddRefs(presContext));