diff --git a/content/html/style/src/nsCSSParser.cpp b/content/html/style/src/nsCSSParser.cpp
index dc79955392f3..b3f57c6762a4 100644
--- a/content/html/style/src/nsCSSParser.cpp
+++ b/content/html/style/src/nsCSSParser.cpp
@@ -1166,13 +1166,7 @@ PRBool CSSParserImpl::ParseSelector(PRInt32& aErrorCode,
}
mToken.AppendToString(aSource);
dataMask |= SEL_MASK_CLASS;
- if (mCaseSensitive) {
- aSelector.AddClass(mToken.mIdent);
- }
- else {
- mToken.mIdent.ToUpperCase(buffer);
- aSelector.AddClass(buffer);
- }
+ aSelector.AddClass(mToken.mIdent); // class always case sensitive
}
else if ((eCSSToken_Symbol == mToken.mType) && (':' == mToken.mSymbol)) { // :pseudo
mToken.AppendToString(aSource);
@@ -1290,9 +1284,6 @@ PRBool CSSParserImpl::ParseSelector(PRInt32& aErrorCode,
if ((eCSSToken_Symbol == mToken.mType) && (']' == mToken.mSymbol)) {
mToken.AppendToString(aSource);
dataMask |= SEL_MASK_ATTRIB;
- if (! mCaseSensitive) {
- value.ToUpperCase();
- }
aSelector.AddAttribute(attr, func, value, mCaseSensitive);
}
else {
diff --git a/layout/html/style/src/nsCSSParser.cpp b/layout/html/style/src/nsCSSParser.cpp
index dc79955392f3..b3f57c6762a4 100644
--- a/layout/html/style/src/nsCSSParser.cpp
+++ b/layout/html/style/src/nsCSSParser.cpp
@@ -1166,13 +1166,7 @@ PRBool CSSParserImpl::ParseSelector(PRInt32& aErrorCode,
}
mToken.AppendToString(aSource);
dataMask |= SEL_MASK_CLASS;
- if (mCaseSensitive) {
- aSelector.AddClass(mToken.mIdent);
- }
- else {
- mToken.mIdent.ToUpperCase(buffer);
- aSelector.AddClass(buffer);
- }
+ aSelector.AddClass(mToken.mIdent); // class always case sensitive
}
else if ((eCSSToken_Symbol == mToken.mType) && (':' == mToken.mSymbol)) { // :pseudo
mToken.AppendToString(aSource);
@@ -1290,9 +1284,6 @@ PRBool CSSParserImpl::ParseSelector(PRInt32& aErrorCode,
if ((eCSSToken_Symbol == mToken.mType) && (']' == mToken.mSymbol)) {
mToken.AppendToString(aSource);
dataMask |= SEL_MASK_ATTRIB;
- if (! mCaseSensitive) {
- value.ToUpperCase();
- }
aSelector.AddAttribute(attr, func, value, mCaseSensitive);
}
else {
diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp
index dc79955392f3..b3f57c6762a4 100644
--- a/layout/style/nsCSSParser.cpp
+++ b/layout/style/nsCSSParser.cpp
@@ -1166,13 +1166,7 @@ PRBool CSSParserImpl::ParseSelector(PRInt32& aErrorCode,
}
mToken.AppendToString(aSource);
dataMask |= SEL_MASK_CLASS;
- if (mCaseSensitive) {
- aSelector.AddClass(mToken.mIdent);
- }
- else {
- mToken.mIdent.ToUpperCase(buffer);
- aSelector.AddClass(buffer);
- }
+ aSelector.AddClass(mToken.mIdent); // class always case sensitive
}
else if ((eCSSToken_Symbol == mToken.mType) && (':' == mToken.mSymbol)) { // :pseudo
mToken.AppendToString(aSource);
@@ -1290,9 +1284,6 @@ PRBool CSSParserImpl::ParseSelector(PRInt32& aErrorCode,
if ((eCSSToken_Symbol == mToken.mType) && (']' == mToken.mSymbol)) {
mToken.AppendToString(aSource);
dataMask |= SEL_MASK_ATTRIB;
- if (! mCaseSensitive) {
- value.ToUpperCase();
- }
aSelector.AddAttribute(attr, func, value, mCaseSensitive);
}
else {