mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 06:22:33 +00:00
PR_FALSE is not nsnull!
This commit is contained in:
parent
077db86ded
commit
fb91ab1cfe
@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
|
||||
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
|
||||
NS_RELEASE(content);
|
||||
if (NS_FAILED(rv) || (nsnull == tc)) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
PRBool isws = PR_FALSE;
|
||||
tc->IsOnlyWhitespace(&isws);
|
||||
NS_RELEASE(tc);
|
||||
if (!isws) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
firstChild->GetNextSibling(&firstChild);
|
||||
}
|
||||
|
@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
|
||||
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
|
||||
NS_RELEASE(content);
|
||||
if (NS_FAILED(rv) || (nsnull == tc)) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
PRBool isws = PR_FALSE;
|
||||
tc->IsOnlyWhitespace(&isws);
|
||||
NS_RELEASE(tc);
|
||||
if (!isws) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
firstChild->GetNextSibling(&firstChild);
|
||||
}
|
||||
|
@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
|
||||
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
|
||||
NS_RELEASE(content);
|
||||
if (NS_FAILED(rv) || (nsnull == tc)) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
PRBool isws = PR_FALSE;
|
||||
tc->IsOnlyWhitespace(&isws);
|
||||
NS_RELEASE(tc);
|
||||
if (!isws) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
firstChild->GetNextSibling(&firstChild);
|
||||
}
|
||||
|
@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
|
||||
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
|
||||
NS_RELEASE(content);
|
||||
if (NS_FAILED(rv) || (nsnull == tc)) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
PRBool isws = PR_FALSE;
|
||||
tc->IsOnlyWhitespace(&isws);
|
||||
NS_RELEASE(tc);
|
||||
if (!isws) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
firstChild->GetNextSibling(&firstChild);
|
||||
}
|
||||
|
@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
|
||||
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
|
||||
NS_RELEASE(content);
|
||||
if (NS_FAILED(rv) || (nsnull == tc)) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
PRBool isws = PR_FALSE;
|
||||
tc->IsOnlyWhitespace(&isws);
|
||||
NS_RELEASE(tc);
|
||||
if (!isws) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
firstChild->GetNextSibling(&firstChild);
|
||||
}
|
||||
|
@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
|
||||
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
|
||||
NS_RELEASE(content);
|
||||
if (NS_FAILED(rv) || (nsnull == tc)) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
PRBool isws = PR_FALSE;
|
||||
tc->IsOnlyWhitespace(&isws);
|
||||
NS_RELEASE(tc);
|
||||
if (!isws) {
|
||||
return PR_FALSE;
|
||||
return nsnull;
|
||||
}
|
||||
firstChild->GetNextSibling(&firstChild);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user