Bug 620167 nsEventStateManager::SetContentState inconsistently handles mPresContext [@ nsEventStateManager::EnsureDocument | nsEventStateManager::SetContentState]

r=smaug
This commit is contained in:
timeless@mozdev.org 2011-03-22 15:12:30 -04:00
parent e142ae22ad
commit 429de097ad

View File

@ -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 ||