Fix for regression: only restrict HTML content from event pseudo application. b=75823 sr=hyatt

This commit is contained in:
attinasi%netscape.com 2001-04-14 06:34:50 +00:00
parent 0ae4fdef6a
commit 91b83e404f
2 changed files with 4 additions and 2 deletions

View File

@ -3068,7 +3068,8 @@ static PRBool SelectorMatches(SelectorMatchesData &data,
// When style resolution due to state changes is optimized this
// should go back to QuirksMode only behavour (see also bug 75559)
PRBool isSelectorGlobal = aSelector->mTag==nsnull ? PR_TRUE : PR_FALSE;
if ((!IsEventSensitive(pseudoClass->mAtom, data.mContentTag, isSelectorGlobal))){
if ((data.mIsHTMLContent) &&
(!IsEventSensitive(pseudoClass->mAtom, data.mContentTag, isSelectorGlobal))){
result = localFalse;
} else if (aTestState) {
if (nsCSSAtoms::activePseudo == pseudoClass->mAtom) {

View File

@ -3068,7 +3068,8 @@ static PRBool SelectorMatches(SelectorMatchesData &data,
// When style resolution due to state changes is optimized this
// should go back to QuirksMode only behavour (see also bug 75559)
PRBool isSelectorGlobal = aSelector->mTag==nsnull ? PR_TRUE : PR_FALSE;
if ((!IsEventSensitive(pseudoClass->mAtom, data.mContentTag, isSelectorGlobal))){
if ((data.mIsHTMLContent) &&
(!IsEventSensitive(pseudoClass->mAtom, data.mContentTag, isSelectorGlobal))){
result = localFalse;
} else if (aTestState) {
if (nsCSSAtoms::activePseudo == pseudoClass->mAtom) {