| Index: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientation.cpp
|
| diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientation.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientation.cpp
|
| index 2fa03ae3bfc42851057da60fdda0e556527880c6..e0afb0835ab114aa80cdad1dc7fbd081582a2ab4 100644
|
| --- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientation.cpp
|
| +++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientation.cpp
|
| @@ -16,12 +16,13 @@
|
| #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h"
|
|
|
| // This code assumes that WebScreenOrientationType values are included in WebScreenOrientationLockType.
|
| -#define STATIC_ASSERT_MATCHING_ENUM(enum1, enum2) \
|
| - static_assert(static_cast<unsigned>(blink::enum1) == static_cast<unsigned>(blink::enum2), "mismatching enum values")
|
| -STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationPortraitPrimary, WebScreenOrientationLockPortraitPrimary);
|
| -STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationPortraitSecondary, WebScreenOrientationLockPortraitSecondary);
|
| -STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationLandscapePrimary, WebScreenOrientationLockLandscapePrimary);
|
| -STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationLandscapeSecondary, WebScreenOrientationLockLandscapeSecondary);
|
| +#define STATIC_ASSERT_ENUM(a, b) \
|
| + static_assert(static_cast<int>(a) == static_cast<int>(b), \
|
| + "mismatching enum: " #a)
|
| +STATIC_ASSERT_ENUM(blink::WebScreenOrientationPortraitPrimary, blink::WebScreenOrientationLockPortraitPrimary);
|
| +STATIC_ASSERT_ENUM(blink::WebScreenOrientationPortraitSecondary, blink::WebScreenOrientationLockPortraitSecondary);
|
| +STATIC_ASSERT_ENUM(blink::WebScreenOrientationLandscapePrimary, blink::WebScreenOrientationLockLandscapePrimary);
|
| +STATIC_ASSERT_ENUM(blink::WebScreenOrientationLandscapeSecondary, blink::WebScreenOrientationLockLandscapeSecondary);
|
|
|
| namespace blink {
|
|
|
|
|