Backing out one line from the previous checkin in order to fix #24344 ("Crash when displaying a list box").
git-svn-id: svn://10.0.0.236/trunk@58240 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1427,7 +1427,7 @@ nsListControlFrame::SetContentSelected(PRInt32 aIndex, PRBool aSelected)
|
||||
if (aSelected) {
|
||||
DisplaySelected(content);
|
||||
// Now that it is selected scroll to it
|
||||
nsCOMPtr<nsIContent> content(do_QueryInterface(content));
|
||||
// nsCOMPtr<nsIContent> content(do_QueryInterface(content));
|
||||
if (content) {
|
||||
ScrollToFrame(content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user