Fix Linux bustage. r-joki

This commit is contained in:
hyatt%netscape.com 2000-09-15 06:58:32 +00:00
parent 5560a52f03
commit 13315c2869
2 changed files with 6 additions and 6 deletions

View File

@ -2332,7 +2332,7 @@ nsEventStateManager::GetContentState(nsIContent *aContent, PRInt32& aState)
nsCOMPtr<nsIContent> parent = mHoverContent;
nsIContent* child;
while (parent) {
if (aContent == parent) {
if (aContent == parent.get()) {
aState |= NS_EVENT_STATE_HOVER;
break;
}
@ -2533,7 +2533,7 @@ nsEventStateManager::SetContentState(nsIContent *aContent, PRInt32 aState)
parent->GetParent(*getter_AddRefs(newHover));
if (newHover && newHover != commonHoverParent) {
newHover->GetParent(*getter_AddRefs(parent));
document->ContentStatesChanged(newHover, parent == commonHoverParent ? nsnull : parent);
document->ContentStatesChanged(newHover, parent.get() == commonHoverParent ? nsnull : parent);
}
else {
break;
@ -2549,7 +2549,7 @@ nsEventStateManager::SetContentState(nsIContent *aContent, PRInt32 aState)
parent->GetParent(*getter_AddRefs(oldHover));
if (oldHover && oldHover != commonHoverParent) {
oldHover->GetParent(*getter_AddRefs(parent));
document->ContentStatesChanged(oldHover, parent == commonHoverParent ? nsnull : parent);
document->ContentStatesChanged(oldHover, parent.get() == commonHoverParent ? nsnull : parent);
}
else {
break;

View File

@ -2332,7 +2332,7 @@ nsEventStateManager::GetContentState(nsIContent *aContent, PRInt32& aState)
nsCOMPtr<nsIContent> parent = mHoverContent;
nsIContent* child;
while (parent) {
if (aContent == parent) {
if (aContent == parent.get()) {
aState |= NS_EVENT_STATE_HOVER;
break;
}
@ -2533,7 +2533,7 @@ nsEventStateManager::SetContentState(nsIContent *aContent, PRInt32 aState)
parent->GetParent(*getter_AddRefs(newHover));
if (newHover && newHover != commonHoverParent) {
newHover->GetParent(*getter_AddRefs(parent));
document->ContentStatesChanged(newHover, parent == commonHoverParent ? nsnull : parent);
document->ContentStatesChanged(newHover, parent.get() == commonHoverParent ? nsnull : parent);
}
else {
break;
@ -2549,7 +2549,7 @@ nsEventStateManager::SetContentState(nsIContent *aContent, PRInt32 aState)
parent->GetParent(*getter_AddRefs(oldHover));
if (oldHover && oldHover != commonHoverParent) {
oldHover->GetParent(*getter_AddRefs(parent));
document->ContentStatesChanged(oldHover, parent == commonHoverParent ? nsnull : parent);
document->ContentStatesChanged(oldHover, parent.get() == commonHoverParent ? nsnull : parent);
}
else {
break;