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

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

Issue 2024373002: Replace CSSParserString with StringView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Match arguments to equalStringView. Created 4 years, 7 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/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..c40240d5df689310908a021a35359ba27e795a66 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h
@@ -9,6 +9,7 @@
#include "core/css/parser/CSSParserToken.h"
#include "core/html/parser/InputStreamPreprocessor.h"
#include "wtf/Allocator.h"
+#include "wtf/text/StringView.h"
#include "wtf/text/WTFString.h"
#include <climits>
@@ -17,7 +18,6 @@ namespace blink {
class CSSTokenizerInputStream;
class CSSParserObserverWrapper;
-struct CSSParserString;
class CSSParserTokenRange;
class CORE_EXPORT CSSTokenizer {
@@ -65,7 +65,7 @@ private:
void consumeUntilCommentEndFound();
bool consumeIfNext(UChar);
- CSSParserString consumeName();
+ StringView consumeName();
UChar32 consumeEscape();
bool nextTwoCharsAreValidEscape();
@@ -74,7 +74,7 @@ private:
bool nextCharsAreIdentifier(UChar);
bool nextCharsAreIdentifier();
CSSParserToken blockStart(CSSParserTokenType);
- CSSParserToken blockStart(CSSParserTokenType blockType, CSSParserTokenType, CSSParserString);
+ CSSParserToken blockStart(CSSParserTokenType blockType, CSSParserTokenType, StringView);
CSSParserToken blockEnd(CSSParserTokenType, CSSParserTokenType startType);
using CodePoint = CSSParserToken (CSSTokenizer::*)(UChar);
@@ -110,7 +110,7 @@ private:
CSSParserToken stringStart(UChar);
CSSParserToken endOfFile(UChar);
- CSSParserString registerString(const String&);
+ StringView registerString(const String&);
CSSTokenizerInputStream& m_input;
Scope& m_scope;

Powered by Google App Engine
This is Rietveld 408576698