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

Side by Side Diff: Source/core/css/CSSPrimitiveValue.cpp

Issue 1090423007: Serialize <string> with double quotes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 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 unified diff | Download patch
« no previous file with comments | « LayoutTests/http/tests/misc/extract-http-content-language-multiple-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 case CSS_FR: 1055 case CSS_FR:
1056 case CSS_VW: 1056 case CSS_VW:
1057 case CSS_VH: 1057 case CSS_VH:
1058 case CSS_VMIN: 1058 case CSS_VMIN:
1059 case CSS_VMAX: 1059 case CSS_VMAX:
1060 text = formatNumber(m_value.num, unitTypeToString((UnitType)m_primit iveUnitType)); 1060 text = formatNumber(m_value.num, unitTypeToString((UnitType)m_primit iveUnitType));
1061 break; 1061 break;
1062 case CSS_CUSTOM_IDENT: 1062 case CSS_CUSTOM_IDENT:
1063 text = quoteCSSStringIfNeeded(m_value.string); 1063 text = quoteCSSStringIfNeeded(m_value.string);
1064 break; 1064 break;
1065 case CSS_STRING: 1065 case CSS_STRING: {
1066 text = quoteCSSString(m_value.string); 1066 StringBuilder result;
1067 serializeString(m_value.string, result);
1068 text = result.toString();
1067 break; 1069 break;
1070 }
1068 case CSS_URI: 1071 case CSS_URI:
1069 text = "url(" + quoteCSSURLIfNeeded(m_value.string) + ")"; 1072 text = "url(" + quoteCSSURLIfNeeded(m_value.string) + ")";
1070 break; 1073 break;
1071 case CSS_VALUE_ID: 1074 case CSS_VALUE_ID:
1072 text = valueName(m_value.valueID); 1075 text = valueName(m_value.valueID);
1073 break; 1076 break;
1074 case CSS_PROPERTY_ID: 1077 case CSS_PROPERTY_ID:
1075 text = propertyName(m_value.propertyID); 1078 text = propertyName(m_value.propertyID);
1076 break; 1079 break;
1077 case CSS_ATTR: { 1080 case CSS_ATTR: {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 visitor->trace(m_value.shape); 1227 visitor->trace(m_value.shape);
1225 break; 1228 break;
1226 default: 1229 default:
1227 break; 1230 break;
1228 } 1231 }
1229 #endif 1232 #endif
1230 CSSValue::traceAfterDispatch(visitor); 1233 CSSValue::traceAfterDispatch(visitor);
1231 } 1234 }
1232 1235
1233 } // namespace blink 1236 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/misc/extract-http-content-language-multiple-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698