Index: Source/core/css/CSSPrimitiveValue.h |
diff --git a/Source/core/css/CSSPrimitiveValue.h b/Source/core/css/CSSPrimitiveValue.h |
index 5e9f705cd32cbe7ea0f47fadd31bc17ef772527b..c37813bac5ad5f52a2ca896f6fd6ceac03aaae48 100644 |
--- a/Source/core/css/CSSPrimitiveValue.h |
+++ b/Source/core/css/CSSPrimitiveValue.h |
@@ -182,6 +182,11 @@ public: |
bool isDotsPerInch() const { return primitiveType() == CSS_DPI; } |
bool isDotsPerPixel() const { return primitiveType() == CSS_DPPX; } |
bool isDotsPerCentimeter() const { return primitiveType() == CSS_DPCM; } |
+ bool isResolution() const |
+ { |
+ unsigned short type = primitiveType(); |
+ return type >= CSS_DPPX && type <= CSS_DPCM; |
+ } |
bool isVariableName() const { return primitiveType() == CSS_VARIABLE_NAME; } |
bool isViewportPercentageLength() const { return m_primitiveUnitType >= CSS_VW && m_primitiveUnitType <= CSS_VMAX; } |