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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserToken.cpp

Issue 2080723003: CSS Variable #0000ee is read as #\30 000ee (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated testcase 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 | « third_party/WebKit/Source/core/css/CSSMarkup.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/parser/CSSParserToken.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserToken.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserToken.cpp
index caa33c1e86feade1e7188686971286be207ffff9..fb46fac538fd0aa9e37306b5ec8bf08bc20efc81 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserToken.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserToken.cpp
@@ -213,10 +213,8 @@ void CSSParserToken::serialize(StringBuilder& builder) const
serializeIdentifier(value().toString(), builder);
break;
case HashToken:
- // This will always serialize as a hash-token with 'id' type instead of
- // preserving the type of the input.
builder.append('#');
- serializeIdentifier(value().toString(), builder);
+ serializeIdentifier(value().toString(), builder, (getHashTokenType() == HashTokenUnrestricted));
break;
case UrlToken:
builder.append("url(");
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSMarkup.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698