Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / rendering / style / GridLength.h
index cbb37f8..6fd8a3a 100644 (file)
@@ -45,7 +45,6 @@ public:
         , m_flex(0)
         , m_type(LengthType)
     {
-        ASSERT(!length.isUndefined());
     }
 
     explicit GridLength(double flex)
@@ -61,6 +60,8 @@ public:
 
     double flex() const { ASSERT(isFlex()); return m_flex; }
 
+    bool isPercentage() const { return m_type == LengthType && m_length.isPercent(); }
+
     bool operator==(const GridLength& o) const
     {
         return m_length == o.m_length && m_flex == o.m_flex && m_type == o.m_type;