mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-26 10:10:31 +00:00
attempting to fix vc6 windows bustage, r=pkasting
This commit is contained in:
parent
1fef26785d
commit
3c4de3e5d1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user