summaryrefslogtreecommitdiff
path: root/widget
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-11 14:27:03 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-11 14:27:03 +0100
commit734f0957fb8bc06ae6e5105d878f1b7007ce8b5d (patch)
treedf73c5d270de365b4035aff74ef703c9f922bd30 /widget
parentc789882a294d29b3e5450a972ad67c4839c75e23 (diff)
downloaduxp-734f0957fb8bc06ae6e5105d878f1b7007ce8b5d.tar.gz
Issue #2343 - replace MOZ_FALLTHROUGH with [[fallthrough]]
Basically a S&R. Removed the macro and adjusts IDL codegen accordingly.
Diffstat (limited to 'widget')
-rw-r--r--widget/GfxInfoBase.cpp2
-rw-r--r--widget/WidgetEventImpl.cpp2
-rw-r--r--widget/gtk/nsNativeThemeGTK.cpp4
-rw-r--r--widget/windows/KeyboardLayout.cpp2
-rw-r--r--widget/windows/nsWindow.cpp4
5 files changed, 7 insertions, 7 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/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: