| 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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 return propertyName(m_value.propertyID); | 819 return propertyName(m_value.propertyID); |
| 820 default: | 820 default: |
| 821 break; | 821 break; |
| 822 } | 822 } |
| 823 | 823 |
| 824 return String(); | 824 return String(); |
| 825 } | 825 } |
| 826 | 826 |
| 827 static String formatNumber(double number, const char* suffix, unsigned suffixLen
gth) | 827 static String formatNumber(double number, const char* suffix, unsigned suffixLen
gth) |
| 828 { | 828 { |
| 829 #if OS(WIN) | 829 #if OS(WIN) && _MSC_VER < 1900 |
| 830 unsigned oldFormat = _set_output_format(_TWO_DIGIT_EXPONENT); | 830 unsigned oldFormat = _set_output_format(_TWO_DIGIT_EXPONENT); |
| 831 #endif | 831 #endif |
| 832 String result = String::format("%.6g", number); | 832 String result = String::format("%.6g", number); |
| 833 #if OS(WIN) | 833 #if OS(WIN) && _MSC_VER < 1900 |
| 834 _set_output_format(oldFormat); | 834 _set_output_format(oldFormat); |
| 835 #endif | 835 #endif |
| 836 result.append(suffix, suffixLength); | 836 result.append(suffix, suffixLength); |
| 837 return result; | 837 return result; |
| 838 } | 838 } |
| 839 | 839 |
| 840 template <unsigned characterCount> | 840 template <unsigned characterCount> |
| 841 ALWAYS_INLINE static String formatNumber(double number, const char (&characters)
[characterCount]) | 841 ALWAYS_INLINE static String formatNumber(double number, const char (&characters)
[characterCount]) |
| 842 { | 842 { |
| 843 return formatNumber(number, characters, characterCount - 1); | 843 return formatNumber(number, characters, characterCount - 1); |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1135 visitor->trace(m_value.shape); | 1135 visitor->trace(m_value.shape); |
| 1136 break; | 1136 break; |
| 1137 default: | 1137 default: |
| 1138 break; | 1138 break; |
| 1139 } | 1139 } |
| 1140 #endif | 1140 #endif |
| 1141 CSSValue::traceAfterDispatch(visitor); | 1141 CSSValue::traceAfterDispatch(visitor); |
| 1142 } | 1142 } |
| 1143 | 1143 |
| 1144 } // namespace blink | 1144 } // namespace blink |
| OLD | NEW |