attempting to fix vc6 windows bustage, r=pkasting

This commit is contained in:
darin%meer.net 2006-06-27 01:39:14 +00:00
parent 1fef26785d
commit 3c4de3e5d1

View File

@ -5095,7 +5095,8 @@ already_AddRefed<nsIDOMElement>
nsDocument::CheckAncestryAndGetFrame(nsIDocument* aDocument) const
{
nsIDocument* parentDoc;
for (parentDoc = aDocument->GetParentDocument(); parentDoc != this;
for (parentDoc = aDocument->GetParentDocument();
parentDoc != NS_STATIC_CAST(const nsIDocument* const, this);
parentDoc = parentDoc->GetParentDocument()) {
if (!parentDoc) {
return nsnull;