Index: Source/core/css/CSSParser.cpp |
diff --git a/Source/core/css/CSSParser.cpp b/Source/core/css/CSSParser.cpp |
index 44e7d48d2ad3c74fd6c6131aa4149bec4aa311e4..d7f5d3c2644e66a2655f6a232611afa68920e45e 100644 |
--- a/Source/core/css/CSSParser.cpp |
+++ b/Source/core/css/CSSParser.cpp |
@@ -10315,23 +10315,13 @@ restartAfterComment: |
} |
m_token = FUNCTION; |
- bool shouldSkipParenthesis = true; |
- if (!hasEscape) { |
- bool detected = detectFunctionTypeToken<SrcCharacterType>(result - tokenStart<SrcCharacterType>()); |
- if (!detected && m_parsingMode == MediaQueryMode) { |
- // ... and(max-width: 480px) ... looks like a function, but in fact it is not, |
- // so run more detection code in the MediaQueryMode. |
- detectMediaQueryToken<SrcCharacterType>(result - tokenStart<SrcCharacterType>()); |
- if (m_token == MEDIA_AND) |
- shouldSkipParenthesis = false; |
- } |
- } |
+ if (!hasEscape) |
+ detectFunctionTypeToken<SrcCharacterType>(result - tokenStart<SrcCharacterType>()); |
- if (LIKELY(shouldSkipParenthesis)) { |
- ++currentCharacter<SrcCharacterType>(); |
- ++result; |
- ++yylval->string.m_length; |
- } |
+ // Skip parenthesis |
+ ++currentCharacter<SrcCharacterType>(); |
+ ++result; |
+ ++yylval->string.m_length; |
if (token() == URI) { |
m_token = FUNCTION; |