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/CSSParserTokenTest.cpp

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/CSSParserTokenTest.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserTokenTest.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserTokenTest.cpp
index e9204e1b88bedfdf3b99934d924e9379708e3322..fd767cd3afd6287106b37c2e127dec65f5f2aa76 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserTokenTest.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserTokenTest.cpp
@@ -8,18 +8,11 @@
namespace blink {
-static CSSParserString toParserString(const String& string)
-{
- CSSParserString result;
- result.init(string);
- return result;
-}
-
-static CSSParserToken ident(const String& string) { return CSSParserToken(IdentToken, toParserString(string)); }
+static CSSParserToken ident(const String& string) { return CSSParserToken(IdentToken, string); }
static CSSParserToken dimension(double value, const String& unit)
{
CSSParserToken token(NumberToken, value, NumberValueType, NoSign);
- token.convertToDimensionWithUnit(toParserString(unit));
+ token.convertToDimensionWithUnit(unit);
return token;
}

Powered by Google App Engine
This is Rietveld 408576698