mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Backing out one line from the previous checkin in order to fix #24344 ("Crash when displaying a list box").
This commit is contained in:
parent
afa4a1dd4e
commit
bf96114107
@ -1427,7 +1427,7 @@ nsListControlFrame::SetContentSelected(PRInt32 aIndex, PRBool aSelected)
|
|||||||
if (aSelected) {
|
if (aSelected) {
|
||||||
DisplaySelected(content);
|
DisplaySelected(content);
|
||||||
// Now that it is selected scroll to it
|
// Now that it is selected scroll to it
|
||||||
nsCOMPtr<nsIContent> content(do_QueryInterface(content));
|
// nsCOMPtr<nsIContent> content(do_QueryInterface(content));
|
||||||
if (content) {
|
if (content) {
|
||||||
ScrollToFrame(content);
|
ScrollToFrame(content);
|
||||||
}
|
}
|
||||||
|
@ -1427,7 +1427,7 @@ nsListControlFrame::SetContentSelected(PRInt32 aIndex, PRBool aSelected)
|
|||||||
if (aSelected) {
|
if (aSelected) {
|
||||||
DisplaySelected(content);
|
DisplaySelected(content);
|
||||||
// Now that it is selected scroll to it
|
// Now that it is selected scroll to it
|
||||||
nsCOMPtr<nsIContent> content(do_QueryInterface(content));
|
// nsCOMPtr<nsIContent> content(do_QueryInterface(content));
|
||||||
if (content) {
|
if (content) {
|
||||||
ScrollToFrame(content);
|
ScrollToFrame(content);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user