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
Родитель 0ae4fdef6a
Коммит 91b83e404f
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

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

Просмотреть файл

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