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

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

Issue 1920583002: NOT FOR LANDING: Hack up CSSParser for speed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing consts. Created 4 years, 8 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
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..afb57e71218960f206bd3294ceb74ffc95417804 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserTokenRange.h
@@ -20,9 +20,9 @@ CORE_EXPORT extern const CSSParserToken& staticEOFToken;
class CORE_EXPORT CSSParserTokenRange {
DISALLOW_NEW();
public:
- CSSParserTokenRange(const Vector<CSSParserToken>& vector)
esprehn 2016/04/22 23:30:57 We could also use a template I suppose to allow in
Timothy Loh 2016/04/27 06:52:05 IIRC I set it up so that once you have a CSSParser
- : m_first(vector.begin())
- , m_last(vector.end())
+ CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last)
+ : m_first(first)
+ , m_last(last)
{
}
@@ -71,11 +71,6 @@ public:
static void initStaticEOFToken();
private:
- CSSParserTokenRange(const CSSParserToken* first, const CSSParserToken* last)
- : m_first(first)
- , m_last(last)
- { }
-
const CSSParserToken* m_first;
const CSSParserToken* m_last;
};

Powered by Google App Engine
This is Rietveld 408576698