| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sky/engine/config.h" | |
| 6 #include "sky/engine/bindings/exception_messages.h" | 5 #include "sky/engine/bindings/exception_messages.h" |
| 7 | 6 |
| 8 #include "sky/engine/platform/Decimal.h" | 7 #include "sky/engine/platform/Decimal.h" |
| 9 #include "sky/engine/wtf/MathExtras.h" | 8 #include "sky/engine/wtf/MathExtras.h" |
| 10 | 9 |
| 11 namespace blink { | 10 namespace blink { |
| 12 | 11 |
| 13 String ExceptionMessages::failedToConstruct(const char* type, | 12 String ExceptionMessages::failedToConstruct(const char* type, |
| 14 const String& detail) { | 13 const String& detail) { |
| 15 return "Failed to construct '" + String(type) + | 14 return "Failed to construct '" + String(type) + |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 String ExceptionMessages::formatNumber<float>(float number) { | 156 String ExceptionMessages::formatNumber<float>(float number) { |
| 158 return formatPotentiallyNonFiniteNumber(number); | 157 return formatPotentiallyNonFiniteNumber(number); |
| 159 } | 158 } |
| 160 | 159 |
| 161 template <> | 160 template <> |
| 162 String ExceptionMessages::formatNumber<double>(double number) { | 161 String ExceptionMessages::formatNumber<double>(double number) { |
| 163 return formatPotentiallyNonFiniteNumber(number); | 162 return formatPotentiallyNonFiniteNumber(number); |
| 164 } | 163 } |
| 165 | 164 |
| 166 } // namespace blink | 165 } // namespace blink |
| OLD | NEW |