mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 22:44:13 +00:00
Fix Linux bustage. r-joki
This commit is contained in:
parent
5560a52f03
commit
13315c2869
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user