| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |