Chromium Code Reviews| Index: third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h |
| diff --git a/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h b/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h |
| index b48162ca562a0f66823cf1442f46d2d63675c451..52508d4ed6f9b9df7648d6089f3e69c7f7d0be72 100644 |
| --- a/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h |
| +++ b/third_party/WebKit/Source/platform/inspector_protocol/String16WTF.h |
| @@ -39,7 +39,7 @@ public: |
| ~String16() { } |
| static String16 number(int i) { return String::number(i); } |
| - static String16 fromDouble(double number) { return Decimal::fromDouble(number).toString(); } |
| + static String16 fromDouble(double number, int precision = -1) { return precision == -1 ? Decimal::fromDouble(number).toString() : String::numberToStringFixedWidth(number, precision); } |
|
dgozman
2016/04/08 18:18:46
Let's do a separate method fromDoubleFixedWidth.
kozy
2016/04/08 23:56:51
Done.
|
| size_t length() const { return m_impl.length(); } |
| bool isEmpty() const { return m_impl.isEmpty(); } |