Index: Source/core/css/parser/CSSTokenizer-in.cpp |
diff --git a/Source/core/css/parser/CSSTokenizer-in.cpp b/Source/core/css/parser/CSSTokenizer-in.cpp |
index 37692f38085c65e5e4d63b138fc143753e41b808..ca09bd9697e747dcb337a3b46da195fbfe971396 100644 |
--- a/Source/core/css/parser/CSSTokenizer-in.cpp |
+++ b/Source/core/css/parser/CSSTokenizer-in.cpp |
@@ -1239,28 +1239,23 @@ restartAfterComment: |
break; |
} |
- // Use SVG parser for numbers on SVG presentation attributes. |
- if (isSVGNumberParsingEnabledForMode(m_parser.m_context.mode())) { |
- // We need to take care of units like 'em' or 'ex'. |
- SrcCharacterType* character = currentCharacter<SrcCharacterType>(); |
- if (isASCIIAlphaCaselessEqual(*character, 'e')) { |
- ASSERT(character - tokenStart<SrcCharacterType>() > 0); |
+ // We need to take care of units like 'em' or 'ex'. |
+ SrcCharacterType* character = currentCharacter<SrcCharacterType>(); |
+ if (isASCIIAlphaCaselessEqual(*character, 'e')) { |
+ ASSERT(character - tokenStart<SrcCharacterType>() > 0); |
+ ++character; |
+ if (*character == '-' || *character == '+' || isASCIIDigit(*character)) { |
++character; |
- if (*character == '-' || *character == '+' || isASCIIDigit(*character)) { |
+ while (isASCIIDigit(*character)) |
++character; |
- while (isASCIIDigit(*character)) |
- ++character; |
- // Use FLOATTOKEN if the string contains exponents. |
- dotSeen = true; |
- currentCharacter<SrcCharacterType>() = character; |
- } |
+ // Use FLOATTOKEN if the string contains exponents. |
+ dotSeen = true; |
+ currentCharacter<SrcCharacterType>() = character; |
} |
- if (!parseSVGNumber(tokenStart<SrcCharacterType>(), character - tokenStart<SrcCharacterType>(), yylval->number)) |
- break; |
- } else { |
- yylval->number = charactersToDouble(tokenStart<SrcCharacterType>(), currentCharacter<SrcCharacterType>() - tokenStart<SrcCharacterType>()); |
} |
+ yylval->number = charactersToDouble(tokenStart<SrcCharacterType>(), currentCharacter<SrcCharacterType>() - tokenStart<SrcCharacterType>()); |
+ |
// Type of the function. |
if (isIdentifierStart<SrcCharacterType>()) { |
SrcCharacterType* type = currentCharacter<SrcCharacterType>(); |