diff options
Diffstat (limited to 'WebCore/css/CSSProperty.h')
-rw-r--r-- | WebCore/css/CSSProperty.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/WebCore/css/CSSProperty.h b/WebCore/css/CSSProperty.h index 0b06da3..7af8348 100644 --- a/WebCore/css/CSSProperty.h +++ b/WebCore/css/CSSProperty.h @@ -45,6 +45,7 @@ public: m_id = other.m_id; m_shorthandID = other.m_shorthandID; m_important = other.m_important; + m_implicit = other.m_implicit; m_value = other.m_value; return *this; } @@ -61,9 +62,9 @@ public: friend bool operator==(const CSSProperty&, const CSSProperty&); - // make sure the following fits in 4 bytes. - int m_id; - int m_shorthandID; // If this property was set as part of a shorthand, gives the shorthand. + // Make sure the following fits in 4 bytes. Really. + int m_id : 15; + int m_shorthandID : 15; // If this property was set as part of a shorthand, gives the shorthand. bool m_important : 1; bool m_implicit : 1; // Whether or not the property was set implicitly as the result of a shorthand. @@ -72,4 +73,9 @@ public: } // namespace WebCore +namespace WTF { + // Properties in Vector can be initialized with memset and moved using memcpy. + template<> struct VectorTraits<WebCore::CSSProperty> : SimpleClassVectorTraits { }; +} + #endif // CSSProperty_h |