Chromium Code Reviews| Index: Source/core/css/CSSProperty.h |
| diff --git a/Source/core/css/CSSProperty.h b/Source/core/css/CSSProperty.h |
| index 7b12f9bd1febe05c4fa3cf7e8cec3326fe41a28a..82be79c8d1d7460e73571203736dc68bf226307a 100644 |
| --- a/Source/core/css/CSSProperty.h |
| +++ b/Source/core/css/CSSProperty.h |
| @@ -41,6 +41,11 @@ struct StylePropertyMetadata { |
| { |
| } |
| + StylePropertyMetadata(uint32_t data) |
| + { |
| + memcpy(this, &data, sizeof(StylePropertyMetadata)); |
|
Jeffrey Yasskin
2013/06/21 19:56:27
memcpy is dangerous because of endian-ness issues,
|
| + } |
| + |
| CSSPropertyID shorthandID() const; |
| unsigned m_propertyID : 10; |
|
Jeffrey Yasskin
2013/06/21 19:56:27
If you change the type of these fields to uint16_t
|