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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.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/CSSTokenizerInputStream.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.h b/third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.h
index b8a2f480df9071103c9bfae8978b5d7d2d3cce6c..be79cc381a17d249434763cc40b42e0eaa80b9c0 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSTokenizerInputStream.h
@@ -5,12 +5,11 @@
#ifndef CSSTokenizerInputStream_h
#define CSSTokenizerInputStream_h
+#include "wtf/text/StringView.h"
#include "wtf/text/WTFString.h"
namespace blink {
-struct CSSParserString;
-
class CSSTokenizerInputStream {
WTF_MAKE_NONCOPYABLE(CSSTokenizerInputStream);
USING_FAST_MALLOC(CSSTokenizerInputStream);
@@ -46,7 +45,7 @@ public:
}
unsigned offset() const { return std::min(m_offset, m_stringLength); }
- CSSParserString rangeAsCSSParserString(unsigned start, unsigned length) const;
+ StringView rangeAt(unsigned start, unsigned length) const;
private:
size_t m_offset;

Powered by Google App Engine
This is Rietveld 408576698