зеркало из https://github.com/mozilla/gecko-dev.git
Fix for regression: only restrict HTML content from event pseudo application. b=75823 sr=hyatt
This commit is contained in:
Родитель
0ae4fdef6a
Коммит
91b83e404f
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче