Index: Source/core/css/CSSParser.cpp |
diff --git a/Source/core/css/CSSParser.cpp b/Source/core/css/CSSParser.cpp |
index b720da65aceae3a078e9da9c50c457c691dbe648..ffd8b513b770ab3be41f6f93c333a5faf3cd48dd 100644 |
--- a/Source/core/css/CSSParser.cpp |
+++ b/Source/core/css/CSSParser.cpp |
@@ -1612,13 +1612,11 @@ bool CSSParser::validUnit(CSSParserValue* value, Units unitflags, CSSParserMode |
case CSSPrimitiveValue::CSS_TURN: |
b = (unitflags & FAngle); |
break; |
-#if ENABLE(RESOLUTION_MEDIA_QUERY) |
case CSSPrimitiveValue::CSS_DPPX: |
case CSSPrimitiveValue::CSS_DPI: |
case CSSPrimitiveValue::CSS_DPCM: |
b = (unitflags & FResolution); |
break; |
-#endif |
case CSSPrimitiveValue::CSS_HZ: |
case CSSPrimitiveValue::CSS_KHZ: |
case CSSPrimitiveValue::CSS_DIMENSION: |
@@ -1640,16 +1638,10 @@ inline PassRefPtr<CSSPrimitiveValue> CSSParser::createPrimitiveNumericValue(CSSP |
return CSSPrimitiveValue::create(m_parsedCalculation.release()); |
} |
-#if ENABLE(RESOLUTION_MEDIA_QUERY) |
ASSERT((value->unit >= CSSPrimitiveValue::CSS_NUMBER && value->unit <= CSSPrimitiveValue::CSS_KHZ) |
|| (value->unit >= CSSPrimitiveValue::CSS_TURN && value->unit <= CSSPrimitiveValue::CSS_CHS) |
|| (value->unit >= CSSPrimitiveValue::CSS_VW && value->unit <= CSSPrimitiveValue::CSS_VMAX) |
|| (value->unit >= CSSPrimitiveValue::CSS_DPPX && value->unit <= CSSPrimitiveValue::CSS_DPCM)); |
-#else |
- ASSERT((value->unit >= CSSPrimitiveValue::CSS_NUMBER && value->unit <= CSSPrimitiveValue::CSS_KHZ) |
- || (value->unit >= CSSPrimitiveValue::CSS_TURN && value->unit <= CSSPrimitiveValue::CSS_CHS) |
- || (value->unit >= CSSPrimitiveValue::CSS_VW && value->unit <= CSSPrimitiveValue::CSS_VMAX)); |
-#endif |
return cssValuePool().createValue(value->fValue, static_cast<CSSPrimitiveValue::UnitTypes>(value->unit)); |
} |
@@ -1697,10 +1689,8 @@ inline PassRefPtr<CSSPrimitiveValue> CSSParser::parseValidPrimitive(int identifi |
return createPrimitiveNumericValue(value); |
if (value->unit >= CSSPrimitiveValue::CSS_VW && value->unit <= CSSPrimitiveValue::CSS_VMAX) |
return createPrimitiveNumericValue(value); |
-#if ENABLE(RESOLUTION_MEDIA_QUERY) |
if (value->unit >= CSSPrimitiveValue::CSS_DPPX && value->unit <= CSSPrimitiveValue::CSS_DPCM) |
return createPrimitiveNumericValue(value); |
-#endif |
if (value->unit == CSSPrimitiveValue::CSS_VARIABLE_NAME) |
return createPrimitiveVariableNameValue(value); |
if (value->unit >= CSSParserValue::Q_EMS) |
@@ -9914,7 +9904,6 @@ inline void CSSParser::detectNumberToken(CharacterType* type, int length) |
case 'd': |
if (length == 3 && isASCIIAlphaCaselessEqual(type[1], 'e') && isASCIIAlphaCaselessEqual(type[2], 'g')) |
m_token = DEGS; |
-#if ENABLE(RESOLUTION_MEDIA_QUERY) |
else if (length > 2 && isASCIIAlphaCaselessEqual(type[1], 'p')) { |
if (length == 4) { |
// There is a discussion about the name of this unit on www-style. |
@@ -9927,7 +9916,6 @@ inline void CSSParser::detectNumberToken(CharacterType* type, int length) |
} else if (length == 3 && isASCIIAlphaCaselessEqual(type[2], 'i')) |
m_token = DPI; |
} |
-#endif |
return; |
case 'e': |