diff --git a/content/html/style/src/nsCSSParser.cpp b/content/html/style/src/nsCSSParser.cpp index e417ef5e2ca0..ccdc25268932 100644 --- a/content/html/style/src/nsCSSParser.cpp +++ b/content/html/style/src/nsCSSParser.cpp @@ -570,7 +570,7 @@ PRBool CSSParserImpl::ParseAtRule(PRInt32& aErrorCode) } PRBool CSSParserImpl::GatherMedia(PRInt32& aErrorCode, nsString& aMedia) -{ // media is acse sensative +{ PRBool first = PR_TRUE; for (;;) { if (!GetToken(aErrorCode, PR_TRUE)) { @@ -580,6 +580,7 @@ PRBool CSSParserImpl::GatherMedia(PRInt32& aErrorCode, nsString& aMedia) PRUnichar symbol = mToken.mSymbol; if (';' == symbol) { UngetToken(); + aMedia.ToLowerCase(); // case insensitive from CSS - must be lower cased return PR_TRUE; } else if (',' != symbol) { UngetToken(); diff --git a/layout/html/style/src/nsCSSParser.cpp b/layout/html/style/src/nsCSSParser.cpp index e417ef5e2ca0..ccdc25268932 100644 --- a/layout/html/style/src/nsCSSParser.cpp +++ b/layout/html/style/src/nsCSSParser.cpp @@ -570,7 +570,7 @@ PRBool CSSParserImpl::ParseAtRule(PRInt32& aErrorCode) } PRBool CSSParserImpl::GatherMedia(PRInt32& aErrorCode, nsString& aMedia) -{ // media is acse sensative +{ PRBool first = PR_TRUE; for (;;) { if (!GetToken(aErrorCode, PR_TRUE)) { @@ -580,6 +580,7 @@ PRBool CSSParserImpl::GatherMedia(PRInt32& aErrorCode, nsString& aMedia) PRUnichar symbol = mToken.mSymbol; if (';' == symbol) { UngetToken(); + aMedia.ToLowerCase(); // case insensitive from CSS - must be lower cased return PR_TRUE; } else if (',' != symbol) { UngetToken(); diff --git a/layout/style/nsCSSParser.cpp b/layout/style/nsCSSParser.cpp index e417ef5e2ca0..ccdc25268932 100644 --- a/layout/style/nsCSSParser.cpp +++ b/layout/style/nsCSSParser.cpp @@ -570,7 +570,7 @@ PRBool CSSParserImpl::ParseAtRule(PRInt32& aErrorCode) } PRBool CSSParserImpl::GatherMedia(PRInt32& aErrorCode, nsString& aMedia) -{ // media is acse sensative +{ PRBool first = PR_TRUE; for (;;) { if (!GetToken(aErrorCode, PR_TRUE)) { @@ -580,6 +580,7 @@ PRBool CSSParserImpl::GatherMedia(PRInt32& aErrorCode, nsString& aMedia) PRUnichar symbol = mToken.mSymbol; if (';' == symbol) { UngetToken(); + aMedia.ToLowerCase(); // case insensitive from CSS - must be lower cased return PR_TRUE; } else if (',' != symbol) { UngetToken();