зеркало из https://github.com/mozilla/pjs.git
added #ifdef XP_PC in nsSelectControlFrame::GetProperty to fix MAC crash
on www.city.net
This commit is contained in:
Родитель
a4ae6f94b8
Коммит
3237d4791e
|
@ -1140,7 +1140,7 @@ NS_IMETHODIMP nsSelectControlFrame::SetProperty(nsIAtom* aName, const nsString&
|
||||||
|
|
||||||
NS_IMETHODIMP nsSelectControlFrame::GetProperty(nsIAtom* aName, nsString& aValue)
|
NS_IMETHODIMP nsSelectControlFrame::GetProperty(nsIAtom* aName, nsString& aValue)
|
||||||
{
|
{
|
||||||
|
#ifdef XP_PC
|
||||||
// Get the selected value of option from local cache (optimization vs. widget)
|
// Get the selected value of option from local cache (optimization vs. widget)
|
||||||
if (nsHTMLAtoms::selected == aName) {
|
if (nsHTMLAtoms::selected == aName) {
|
||||||
PRInt32 error = 0;
|
PRInt32 error = 0;
|
||||||
|
@ -1183,5 +1183,6 @@ NS_IMETHODIMP nsSelectControlFrame::GetProperty(nsIAtom* aName, nsString& aValue
|
||||||
} else {
|
} else {
|
||||||
return nsFormControlFrame::GetProperty(aName, aValue);
|
return nsFormControlFrame::GetProperty(aName, aValue);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче