Index: Source/core/css/CSSPrimitiveValue.h |
diff --git a/Source/core/css/CSSPrimitiveValue.h b/Source/core/css/CSSPrimitiveValue.h |
index 65b1cfbf66fc01fc790977fe852e49e9d5570b7e..0316b94a591e69c814a328a6f68d0039bf4398e7 100644 |
--- a/Source/core/css/CSSPrimitiveValue.h |
+++ b/Source/core/css/CSSPrimitiveValue.h |
@@ -144,7 +144,6 @@ public: |
UAngle, |
UTime, |
UFrequency, |
- UViewportPercentageLength, |
UResolution, |
UOther |
}; |
@@ -170,7 +169,7 @@ public: |
bool isLength() const |
{ |
unsigned short type = primitiveType(); |
- return (type >= CSS_EMS && type <= CSS_PC) || type == CSS_REMS || type == CSS_CHS; |
+ return (type >= CSS_EMS && type <= CSS_PC) || type == CSS_REMS || type == CSS_CHS || isViewportPercentageLength(); |
} |
bool isNumber() const { return primitiveType() == CSS_NUMBER; } |
bool isPercentage() const { return primitiveType() == CSS_PERCENTAGE; } |
@@ -315,8 +314,6 @@ public: |
void addSubresourceStyleURLs(ListHashSet<KURL>&, const StyleSheetContents*) const; |
- Length viewportPercentageLength(); |
- |
PassRefPtr<CSSPrimitiveValue> cloneForCSSOM() const; |
void setCSSOMSafe() { m_isCSSOMSafe = true; } |