Index: Source/core/css/MediaQueryExp.cpp |
diff --git a/Source/core/css/MediaQueryExp.cpp b/Source/core/css/MediaQueryExp.cpp |
index 334f596c71250a0221b189ac7d67abbfdb1b9154..89a08d09cb7397d1cb4613fb203e6e36073d12ee 100644 |
--- a/Source/core/css/MediaQueryExp.cpp |
+++ b/Source/core/css/MediaQueryExp.cpp |
@@ -34,7 +34,7 @@ |
#include "core/css/CSSParserValues.h" |
#include "core/css/CSSPrimitiveValue.h" |
#include "core/html/parser/HTMLParserIdioms.h" |
-#include "wtf/DecimalNumber.h" |
+#include "platform/Decimal.h" |
#include "wtf/text/StringBuffer.h" |
#include "wtf/text/StringBuilder.h" |
@@ -298,12 +298,9 @@ String MediaQueryExp::serialize() const |
return result.toString(); |
} |
-static String printNumber(double number) |
+static inline String printNumber(double number) |
{ |
- DecimalNumber decimal(number); |
- StringBuffer<LChar> buffer(decimal.bufferLengthForStringDecimal()); |
- decimal.toStringDecimal(buffer.characters(), buffer.length()); |
- return String::adopt(buffer); |
+ return Decimal::fromDouble(number).toString(); |
} |
String MediaQueryExpValue::cssText() const |