diff --git a/gfx/layers/apz/src/APZUtils.h b/gfx/layers/apz/src/APZUtils.h index 5d5c98fec5..37829d1437 100644 --- a/gfx/layers/apz/src/APZUtils.h +++ b/gfx/layers/apz/src/APZUtils.h @@ -8,6 +8,7 @@ #define mozilla_layers_APZUtils_h #include // for uint32_t +#include namespace mozilla { namespace layers { @@ -23,7 +24,7 @@ enum CancelAnimationFlags : uint32_t { ExcludeOverscroll = 1 /* Don't clear overscroll */ }; -enum class ScrollSource { +MOZ_BEGIN_ENUM_CLASS(ScrollSource) // scrollTo() or something similar. DOM, @@ -32,7 +33,7 @@ enum class ScrollSource { // Mouse wheel. Wheel -}; +MOZ_END_ENUM_CLASS(ScrollSource) typedef uint32_t TouchBehaviorFlags;