summaryrefslogtreecommitdiff
path: root/widget
diff options
context:
space:
mode:
Diffstat (limited to 'widget')
-rw-r--r--widget/GfxInfoBase.cpp2
-rw-r--r--widget/WidgetEventImpl.cpp2
-rw-r--r--widget/cocoa/nsChildView.mm2
-rw-r--r--widget/cocoa/nsNativeThemeCocoa.mm2
-rw-r--r--widget/gtk/nsNativeThemeGTK.cpp4
-rw-r--r--widget/windows/KeyboardLayout.cpp2
-rw-r--r--widget/windows/nsWindow.cpp4
7 files changed, 9 insertions, 9 deletions
diff --git a/widget/GfxInfoBase.cpp b/widget/GfxInfoBase.cpp
index 9eefa6f372..a9658bbc06 100644
--- a/widget/GfxInfoBase.cpp
+++ b/widget/GfxInfoBase.cpp
@@ -984,7 +984,7 @@ GfxInfoBase::EvaluateDownloadedBlacklist(nsTArray<GfxDriverInfo>& aDriverInfo)
} else {
RemovePrefForDriverVersion();
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case nsIGfxInfo::FEATURE_BLOCKED_MISMATCHED_VERSION:
case nsIGfxInfo::FEATURE_BLOCKED_DEVICE:
diff --git a/widget/WidgetEventImpl.cpp b/widget/WidgetEventImpl.cpp
index 59c80672b1..f529ec7b1a 100644
--- a/widget/WidgetEventImpl.cpp
+++ b/widget/WidgetEventImpl.cpp
@@ -382,7 +382,7 @@ WidgetEvent::IsAllowedToDispatchDOMEvent() const
if (mMessage == eMouseTouchDrag) {
return false;
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case ePointerEventClass:
// We want synthesized mouse moves to cause mouseover and mouseout
// DOM events (EventStateManager::PreHandleEvent), but not mousemove
diff --git a/widget/cocoa/nsChildView.mm b/widget/cocoa/nsChildView.mm
index a3a3bacbf9..f9e27fc82c 100644
--- a/widget/cocoa/nsChildView.mm
+++ b/widget/cocoa/nsChildView.mm
@@ -1723,7 +1723,7 @@ nsChildView::GetInputContext()
break;
}
// If mTextInputHandler is null, set CLOSED instead...
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
default:
mInputContext.mIMEState.mOpen = IMEState::CLOSED;
break;
diff --git a/widget/cocoa/nsNativeThemeCocoa.mm b/widget/cocoa/nsNativeThemeCocoa.mm
index 056c453f2a..882aaee742 100644
--- a/widget/cocoa/nsNativeThemeCocoa.mm
+++ b/widget/cocoa/nsNativeThemeCocoa.mm
@@ -3619,7 +3619,7 @@ nsNativeThemeCocoa::ThemeSupportsWidget(nsPresContext* aPresContext, nsIFrame* a
if (aFrame && aFrame->GetWritingMode().IsVertical()) {
return false;
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case NS_THEME_LISTBOX:
diff --git a/widget/gtk/nsNativeThemeGTK.cpp b/widget/gtk/nsNativeThemeGTK.cpp
index cb4e7debf2..cfb9ef7eda 100644
--- a/widget/gtk/nsNativeThemeGTK.cpp
+++ b/widget/gtk/nsNativeThemeGTK.cpp
@@ -1306,7 +1306,7 @@ nsNativeThemeGTK::GetWidgetBorder(nsDeviceContext* aContext, nsIFrame* aFrame,
// will need to fall through and use the default case as before.
if (IsRegularMenuItem(aFrame))
break;
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
default:
{
WidgetNodeType gtkWidgetType;
@@ -1847,7 +1847,7 @@ nsNativeThemeGTK::ThemeSupportsWidget(nsPresContext* aPresContext,
if (aFrame && aFrame->GetWritingMode().IsVertical()) {
return false;
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case NS_THEME_BUTTON:
case NS_THEME_BUTTON_FOCUS:
diff --git a/widget/windows/KeyboardLayout.cpp b/widget/windows/KeyboardLayout.cpp
index b4801fa19c..c7bb60a675 100644
--- a/widget/windows/KeyboardLayout.cpp
+++ b/widget/windows/KeyboardLayout.cpp
@@ -1890,7 +1890,7 @@ NativeKey::InitKeyEvent(WidgetKeyboardEvent& aKeyEvent,
if (mCharMessageHasGone) {
aKeyEvent.PreventDefaultBeforeDispatch();
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case eKeyDownOnPlugin:
aKeyEvent.mKeyCode = mDOMKeyCode;
// Unique id for this keydown event and its associated keypress.
diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp
index 295518ea26..c636d38700 100644
--- a/widget/windows/nsWindow.cpp
+++ b/widget/windows/nsWindow.cpp
@@ -3525,7 +3525,7 @@ void* nsWindow::GetNativeData(uint32_t aDataType)
if (pseudoIMEContext) {
return pseudoIMEContext;
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
}
case NS_NATIVE_TSF_THREAD_MGR:
case NS_NATIVE_TSF_CATEGORY_MGR:
@@ -7660,7 +7660,7 @@ nsWindow::DealWithPopups(HWND aWnd, UINT aMessage,
// compatibility mouse events will do it instead.
return false;
}
- MOZ_FALLTHROUGH;
+ [[fallthrough]];
case WM_LBUTTONDOWN:
case WM_RBUTTONDOWN:
case WM_MBUTTONDOWN: