From 050d131fbc82184e90e4cbaa62f7b3105c274ad8 Mon Sep 17 00:00:00 2001 From: "glazman%netscape.com" Date: Wed, 27 Jun 2001 10:41:49 +0000 Subject: [PATCH] CSS parser drops negations if attached to universal selector and a pseudo-element; b=87999, r=peterv, sr=hyatt --- content/html/style/src/nsCSSParser.cpp | 1 + layout/style/nsCSSParser.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/content/html/style/src/nsCSSParser.cpp b/content/html/style/src/nsCSSParser.cpp index 0266f44e4ae..1ec45a9ab5b 100644 --- a/content/html/style/src/nsCSSParser.cpp +++ b/content/html/style/src/nsCSSParser.cpp @@ -1391,6 +1391,7 @@ static PRBool IsSinglePseudoClass(const nsCSSSelector& aSelector) (aSelector.mIDList == nsnull) && (aSelector.mClassList == nsnull) && (aSelector.mAttrList == nsnull) && + (aSelector.mNegations == nsnull) && (aSelector.mPseudoClassList != nsnull) && (aSelector.mPseudoClassList->mNext == nsnull)); } diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp index 0266f44e4ae..1ec45a9ab5b 100644 --- a/layout/style/nsCSSParser.cpp +++ b/layout/style/nsCSSParser.cpp @@ -1391,6 +1391,7 @@ static PRBool IsSinglePseudoClass(const nsCSSSelector& aSelector) (aSelector.mIDList == nsnull) && (aSelector.mClassList == nsnull) && (aSelector.mAttrList == nsnull) && + (aSelector.mNegations == nsnull) && (aSelector.mPseudoClassList != nsnull) && (aSelector.mPseudoClassList->mNext == nsnull)); }