| Index: Source/core/css/parser/CSSParserToken.cpp
|
| diff --git a/Source/core/css/parser/CSSParserToken.cpp b/Source/core/css/parser/CSSParserToken.cpp
|
| index e936c08b66315c490096e117ea8c97638617083c..9c7f39f8455bd9a74e61153c3b36c079a819772b 100644
|
| --- a/Source/core/css/parser/CSSParserToken.cpp
|
| +++ b/Source/core/css/parser/CSSParserToken.cpp
|
| @@ -67,41 +67,6 @@ void CSSParserToken::convertToPercentage()
|
| m_unit = CSSPrimitiveValue::CSS_PERCENTAGE;
|
| }
|
|
|
| -// This function is used only for testing
|
| -// FIXME - This doesn't cover all possible Token types, but it's enough for current testing.
|
| -String CSSParserToken::textForUnitTests() const
|
| -{
|
| - if (!m_value.isNull())
|
| - return m_value;
|
| - if (m_type == LeftParenthesisToken)
|
| - return "(";
|
| - if (m_type == RightParenthesisToken)
|
| - return ")";
|
| - if (m_type == ColonToken)
|
| - return ":";
|
| - if (m_type == WhitespaceToken)
|
| - return " ";
|
| - if (m_delimiter)
|
| - return String("'") + m_delimiter + '\'';
|
| -
|
| - if (m_numericValue) {
|
| - String unit;
|
| - if (m_unit == CSSPrimitiveValue::CSS_PERCENTAGE)
|
| - unit = "%";
|
| - else if (m_unit == CSSPrimitiveValue::CSS_PX)
|
| - unit = "px";
|
| - else if (m_unit == CSSPrimitiveValue::CSS_EMS)
|
| - unit = "em";
|
| - else if (m_unit != CSSPrimitiveValue::CSS_NUMBER)
|
| - unit = "other";
|
| - if (m_numericValueType == IntegerValueType)
|
| - return String::number(static_cast<int>(m_numericValue)) + unit;
|
| - const unsigned fractionalDigits = 6;
|
| - return String::numberToStringFixedWidth(m_numericValue, fractionalDigits) + unit;
|
| - }
|
| - return String();
|
| -}
|
| -
|
| UChar CSSParserToken::delimiter() const
|
| {
|
| ASSERT(m_type == DelimiterToken);
|
|
|