Index: Source/core/css/CSSPrimitiveValue.h |
diff --git a/Source/core/css/CSSPrimitiveValue.h b/Source/core/css/CSSPrimitiveValue.h |
index d52b0548cc6ffb2b6581de80c7660e306efe515a..20b2807dfa8efd6bbdf78ac0e83afc71a856f839 100644 |
--- a/Source/core/css/CSSPrimitiveValue.h |
+++ b/Source/core/css/CSSPrimitiveValue.h |
@@ -157,6 +157,7 @@ public: |
}; |
typedef Vector<double, CSSPrimitiveValue::LengthUnitTypeCount> CSSLengthArray; |
+ static void zeroLengthArray(CSSLengthArray&); |
void accumulateLengthArray(CSSLengthArray&, double multiplier = 1) const; |
// This enum follows the BisonCSSParser::Units enum augmented with UNIT_FREQUENCY for frequencies. |
@@ -191,6 +192,7 @@ public: |
|| m_primitiveUnitType == CSS_REMS |
|| m_primitiveUnitType == CSS_CHS; |
} |
+ bool isViewportPercentageLength() const { return isViewportPercentageLength(m_primitiveUnitType); } |
static bool isViewportPercentageLength(unsigned short type) { return type >= CSS_VW && type <= CSS_VMAX; } |
static bool isLength(unsigned short type) |
{ |