mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 04:03:47 +00:00
Fix for regression: only restrict HTML content from event pseudo application. b=75823 sr=hyatt
This commit is contained in:
parent
0ae4fdef6a
commit
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user