| Index: third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp b/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
|
| index a6a9a698d8d03dcd90e0e31e0df5405243469220..15c362c803e2cc11114bec420e21c2762d6084cd 100644
|
| --- a/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/properties/SVGAnimatedProperty.cpp
|
| @@ -40,7 +40,10 @@ SVGAnimatedPropertyBase::SVGAnimatedPropertyBase(
|
| const QualifiedName& attributeName,
|
| CSSPropertyID cssPropertyId)
|
| : m_type(type),
|
| - m_cssPropertyId(cssPropertyId),
|
| + // Cast to avoid warnings about unsafe bitfield truncations of the CSS
|
| + // property enum. CSS properties that don't fit in this bitfield are never
|
| + // used here. See static_assert in header.
|
| + m_cssPropertyId(static_cast<unsigned>(cssPropertyId)),
|
| m_contextElement(contextElement),
|
| m_attributeName(attributeName) {
|
| DCHECK(m_contextElement);
|
|
|