mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-04 16:15:25 +00:00
Bug 620167 nsEventStateManager::SetContentState inconsistently handles mPresContext [@ nsEventStateManager::EnsureDocument | nsEventStateManager::SetContentState]
r=smaug
This commit is contained in:
parent
e142ae22ad
commit
429de097ad
@ -4354,7 +4354,7 @@ nsEventStateManager::SetContentState(nsIContent *aContent, nsEventStates aState)
|
||||
if (aState.HasState(NS_EVENT_STATE_HOVER) && aContent != mHoverContent) {
|
||||
oldHover = mHoverContent;
|
||||
|
||||
if (!mPresContext || mPresContext->IsDynamic()) {
|
||||
if (mPresContext->IsDynamic()) {
|
||||
newHover = aContent;
|
||||
} else {
|
||||
NS_ASSERTION(!aContent ||
|
||||
|
Loading…
Reference in New Issue
Block a user