Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h

Issue 2058403002: Use an inline capacity for CSSTokenizer's Vector<CSSParserToken> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSTokenizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h b/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h
index 707a1ac6a49b1e1e4b0cdb311e529e63c6993289..2036b6639f012fd1ad22c3f40fb07b29d1483906 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h
@@ -20,7 +20,8 @@ CORE_EXPORT extern const CSSParserToken& staticEOFToken;
class CORE_EXPORT CSSParserTokenRange {
DISALLOW_NEW();
public:
- CSSParserTokenRange(const Vector<CSSParserToken>& vector)
+ template<size_t inlineBuffer>
+ CSSParserTokenRange(const Vector<CSSParserToken, inlineBuffer>& vector)
: m_first(vector.begin())
, m_last(vector.end())
{
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSTokenizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698