+2011-11-16 Andreas Kling <kling@webkit.org>
+
+ CSSValue: isInheritedValue() doesn't need a dedicated bit.
+ <http://webkit.org/b/72514>
+
+ Reviewed by Antti Koivisto.
+
+ Remove CSSValue::m_isInherited and have isInheritedValue() check the
+ class type instead. There's no compelling reason for CSSInheritedValue
+ to have a dedicated bit, since nobody subclasses it anyway.
+
+ * css/CSSValue.h:
+ (WebCore::CSSValue::isInheritedValue):
+ (WebCore::CSSValue::CSSValue):
+
2011-11-16 Robert Hogan <robert@webkit.org>
Fix build on Windows and Mac after r100473
bool isPrimitiveValue() const { return m_isPrimitive; }
bool isValueList() const { return m_isList; }
- bool isInheritedValue() const { return m_isInherited; }
bool isBorderImageValue() const { return m_classType == BorderImageClass; }
bool isBorderImageSliceValue() const { return m_classType == BorderImageSliceClass; }
bool isImageGeneratorValue() const { return m_classType == CanvasClass || m_classType == CrossfadeClass || m_classType == LinearGradientClass || m_classType == RadialGradientClass; }
bool isImageValue() const { return m_classType == ImageClass || m_classType == CursorImageClass; }
bool isImplicitInitialValue() const { return m_classType == InitialClass && m_isImplicit; }
+ bool isInheritedValue() const { return m_classType == InheritedClass; }
bool isInitialValue() const { return m_classType == InitialClass; }
bool isReflectValue() const { return m_classType == ReflectClass; }
bool isShadowValue() const { return m_classType == ShadowClass; }
, m_classType(classType)
, m_isPrimitive(isPrimitiveType(classType))
, m_isList(isListType(classType))
- , m_isInherited(isInheritedType(classType))
{
}
|| type == WebKitCSSTransformClass;
}
- static bool isInheritedType(ClassType type)
- {
- return type == InheritedClass;
- }
-
void destroy();
protected:
unsigned m_classType : 5; // ClassType
bool m_isPrimitive : 1;
bool m_isList : 1;
- bool m_isInherited : 1;
};
} // namespace WebCore