| 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" | 5 #include "sky/engine/config.h" |
| 6 #include "sky/engine/bindings2/exception_messages.h" | 6 #include "sky/engine/bindings/exception_messages.h" |
| 7 | 7 |
| 8 #include "sky/engine/platform/Decimal.h" | 8 #include "sky/engine/platform/Decimal.h" |
| 9 #include "sky/engine/wtf/MathExtras.h" | 9 #include "sky/engine/wtf/MathExtras.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 String ExceptionMessages::failedToConstruct(const char* type, | 13 String ExceptionMessages::failedToConstruct(const char* type, |
| 14 const String& detail) { | 14 const String& detail) { |
| 15 return "Failed to construct '" + String(type) + | 15 return "Failed to construct '" + String(type) + |
| 16 (!detail.isEmpty() ? String("': " + detail) : String("'")); | 16 (!detail.isEmpty() ? String("': " + detail) : String("'")); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 String ExceptionMessages::formatNumber<float>(float number) { | 157 String ExceptionMessages::formatNumber<float>(float number) { |
| 158 return formatPotentiallyNonFiniteNumber(number); | 158 return formatPotentiallyNonFiniteNumber(number); |
| 159 } | 159 } |
| 160 | 160 |
| 161 template <> | 161 template <> |
| 162 String ExceptionMessages::formatNumber<double>(double number) { | 162 String ExceptionMessages::formatNumber<double>(double number) { |
| 163 return formatPotentiallyNonFiniteNumber(number); | 163 return formatPotentiallyNonFiniteNumber(number); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace blink | 166 } // namespace blink |
| OLD | NEW |