Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/parser/CSSTokenizer.h |
| diff --git a/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h b/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h |
| index 41fa90e32fc17a841cf61dacc7d42c326266a52d..53eda66437026a5f525d0c76523b79d367c71a6a 100644 |
| --- a/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h |
| +++ b/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h |
| @@ -35,7 +35,7 @@ public: |
| private: |
| void storeString(const String& string) { m_stringPool.append(string); } |
| - Vector<CSSParserToken> m_tokens; |
| + Vector<CSSParserToken, 32> m_tokens; |
|
esprehn
2016/04/22 23:30:58
Lots of malloc in the profiles. By using inline ca
|
| // We only allocate strings when escapes are used. |
| Vector<String> m_stringPool; |
| String m_string; |
| @@ -80,7 +80,7 @@ private: |
| using CodePoint = CSSParserToken (CSSTokenizer::*)(UChar); |
| static const CodePoint codePoints[]; |
| - Vector<CSSParserTokenType> m_blockStack; |
| + Vector<CSSParserTokenType, 8> m_blockStack; |
|
esprehn
2016/04/22 23:30:58
ditto
|
| CSSParserToken whiteSpace(UChar); |
| CSSParserToken leftParenthesis(UChar); |