зеркало из https://github.com/mozilla/gecko-dev.git
Checking in null check and assertion to handle the crashing on imagemap part of the Mac regression.
This commit is contained in:
Родитель
8575f082e8
Коммит
7a1bff7611
|
@ -833,8 +833,13 @@ nsImageFrame::HandleEvent(nsIPresContext& aPresContext,
|
|||
docURL = doc->GetDocumentURL();
|
||||
NS_RELEASE(doc);
|
||||
}
|
||||
PRBool inside = map->IsInside(x, y, docURL, absURL, target, altText,
|
||||
|
||||
NS_ASSERTION(nsnull != docURL, "nsIDocument->GetDocumentURL() returning nsnull");
|
||||
PRBool inside = PR_FALSE;
|
||||
if (nsnull != docURL) {
|
||||
inside = map->IsInside(x, y, docURL, absURL, target, altText,
|
||||
&suppress);
|
||||
}
|
||||
NS_IF_RELEASE(docURL);
|
||||
if (inside) {
|
||||
// We hit a clickable area. Time to go somewhere...
|
||||
|
|
|
@ -833,8 +833,13 @@ nsImageFrame::HandleEvent(nsIPresContext& aPresContext,
|
|||
docURL = doc->GetDocumentURL();
|
||||
NS_RELEASE(doc);
|
||||
}
|
||||
PRBool inside = map->IsInside(x, y, docURL, absURL, target, altText,
|
||||
|
||||
NS_ASSERTION(nsnull != docURL, "nsIDocument->GetDocumentURL() returning nsnull");
|
||||
PRBool inside = PR_FALSE;
|
||||
if (nsnull != docURL) {
|
||||
inside = map->IsInside(x, y, docURL, absURL, target, altText,
|
||||
&suppress);
|
||||
}
|
||||
NS_IF_RELEASE(docURL);
|
||||
if (inside) {
|
||||
// We hit a clickable area. Time to go somewhere...
|
||||
|
|
Загрузка…
Ссылка в новой задаче