openbsd-ports/www/firefox36/patches/patch-content_events_src_nsContentEventHandler_cpp

14 lines
669 B
Plaintext
Raw Normal View History

$OpenBSD: patch-content_events_src_nsContentEventHandler_cpp,v 1.3 2011/03/26 10:58:36 landry Exp $
--- content/events/src/nsContentEventHandler.cpp.orig Fri Jun 11 22:40:52 2010
+++ content/events/src/nsContentEventHandler.cpp Thu Jun 24 10:08:30 2010
@@ -928,7 +928,8 @@ nsContentEventHandler::OnSelectionEvent(nsSelectionEve
selPrivate->EndBatchChanges();
NS_ENSURE_SUCCESS(rv, rv);
- nsCOMPtr<nsISelection2>(do_QueryInterface(sel))->ScrollIntoView(
+ nsCOMPtr<nsISelection2> sel2 = do_QueryInterface(sel);
+ sel2->ScrollIntoView(
nsISelectionController::SELECTION_FOCUS_REGION, PR_FALSE, -1, -1);
aEvent->mSucceeded = PR_TRUE;
return NS_OK;