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

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

Issue 16183002: Unprefix CSS Variables (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« Source/core/css/CSSParser.cpp ('K') | « Source/core/css/CSSParser.cpp ('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 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 case CSS_VH: 1024 case CSS_VH:
1025 text = formatNumber(m_value.num, "vh"); 1025 text = formatNumber(m_value.num, "vh");
1026 break; 1026 break;
1027 case CSS_VMIN: 1027 case CSS_VMIN:
1028 text = formatNumber(m_value.num, "vmin"); 1028 text = formatNumber(m_value.num, "vmin");
1029 break; 1029 break;
1030 case CSS_VMAX: 1030 case CSS_VMAX:
1031 text = formatNumber(m_value.num, "vmax"); 1031 text = formatNumber(m_value.num, "vmax");
1032 break; 1032 break;
1033 case CSS_VARIABLE_NAME: 1033 case CSS_VARIABLE_NAME:
1034 text = "-webkit-var(" + String(m_value.string) + ")"; 1034 text = "var(" + String(m_value.string) + ")";
1035 break; 1035 break;
1036 } 1036 }
1037 1037
1038 ASSERT(!cssTextCache().contains(this)); 1038 ASSERT(!cssTextCache().contains(this));
1039 cssTextCache().set(this, text); 1039 cssTextCache().set(this, text);
1040 m_hasCachedCSSText = true; 1040 m_hasCachedCSSText = true;
1041 return text; 1041 return text;
1042 } 1042 }
1043 1043
1044 String CSSPrimitiveValue::customSerializeResolvingVariables(const HashMap<Atomic String, String>& variables) const 1044 String CSSPrimitiveValue::customSerializeResolvingVariables(const HashMap<Atomic String, String>& variables) const
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 break; 1282 break;
1283 case CSS_CALC: 1283 case CSS_CALC:
1284 info.addMember(m_value.calc, "value.calc"); 1284 info.addMember(m_value.calc, "value.calc");
1285 break; 1285 break;
1286 default: 1286 default:
1287 break; 1287 break;
1288 } 1288 }
1289 } 1289 }
1290 1290
1291 } // namespace WebCore 1291 } // namespace WebCore
OLDNEW
« Source/core/css/CSSParser.cpp ('K') | « Source/core/css/CSSParser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698