mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1240265 - Annotate intentional switch fallthroughs in dom/. r=mrbkap
dom/base/Element.cpp:2920:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/base/Element.cpp:2935:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/base/nsDocument.cpp:6595:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/base/nsDocument.cpp:7631:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/base/nsDocument.cpp:7922:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/base/nsGlobalWindow.cpp:7573:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/base/nsXMLContentSerializer.cpp:1393:7 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/cache/AutoUtils.cpp:487:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/html/HTMLInputElement.cpp:3808:15 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/html/HTMLInputElement.cpp:3836:15 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/storage/DOMStorageDBThread.cpp:224:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels dom/workers/ScriptLoader.cpp:1994:5 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
This commit is contained in:
parent
10f687b922
commit
b3c1b3d962
@ -2915,7 +2915,7 @@ Element::PreHandleEventForLinks(EventChainPreVisitor& aVisitor)
|
||||
// Set the status bar similarly for mouseover and focus
|
||||
case eMouseOver:
|
||||
aVisitor.mEventStatus = nsEventStatus_eConsumeNoDefault;
|
||||
// FALL THROUGH
|
||||
MOZ_FALLTHROUGH;
|
||||
case eFocus: {
|
||||
InternalFocusEvent* focusEvent = aVisitor.mEvent->AsFocusEvent();
|
||||
if (!focusEvent || !focusEvent->isRefocus) {
|
||||
@ -2930,7 +2930,7 @@ Element::PreHandleEventForLinks(EventChainPreVisitor& aVisitor)
|
||||
}
|
||||
case eMouseOut:
|
||||
aVisitor.mEventStatus = nsEventStatus_eConsumeNoDefault;
|
||||
// FALL THROUGH
|
||||
MOZ_FALLTHROUGH;
|
||||
case eBlur:
|
||||
rv = LeaveLink(aVisitor.mPresContext);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
|
@ -6592,6 +6592,7 @@ nsIDocument::ImportNode(nsINode& aNode, bool aDeep, ErrorResult& rv) const
|
||||
if (ShadowRoot::FromNode(imported)) {
|
||||
break;
|
||||
}
|
||||
MOZ_FALLTHROUGH;
|
||||
}
|
||||
case nsIDOMNode::ATTRIBUTE_NODE:
|
||||
case nsIDOMNode::ELEMENT_NODE:
|
||||
@ -7628,6 +7629,7 @@ nsIDocument::AdoptNode(nsINode& aAdoptedNode, ErrorResult& rv)
|
||||
rv.Throw(NS_ERROR_DOM_HIERARCHY_REQUEST_ERR);
|
||||
return nullptr;
|
||||
}
|
||||
MOZ_FALLTHROUGH;
|
||||
}
|
||||
case nsIDOMNode::ELEMENT_NODE:
|
||||
case nsIDOMNode::PROCESSING_INSTRUCTION_NODE:
|
||||
@ -7919,6 +7921,7 @@ nsDocument::GetViewportInfo(const ScreenIntSize& aDisplaySize)
|
||||
mValidMaxScale = !maxScaleStr.IsEmpty() && NS_SUCCEEDED(scaleMaxErrorCode);
|
||||
|
||||
mViewportType = Specified;
|
||||
MOZ_FALLTHROUGH;
|
||||
}
|
||||
case Specified:
|
||||
default:
|
||||
|
@ -7601,6 +7601,7 @@ nsGlobalWindow::RevisePopupAbuseLevel(PopupControlState aControl)
|
||||
case openOverridden:
|
||||
if (PopupWhitelisted())
|
||||
abuse = PopupControlState(abuse - 1);
|
||||
break;
|
||||
case openAllowed: break;
|
||||
default:
|
||||
NS_WARNING("Strange PopupControlState!");
|
||||
|
@ -1429,7 +1429,7 @@ nsXMLContentSerializer::AppendFormatedWrapped_WhitespaceSequence(
|
||||
case ' ':
|
||||
case '\t':
|
||||
sawBlankOrTab = true;
|
||||
// no break
|
||||
MOZ_FALLTHROUGH;
|
||||
case '\n':
|
||||
++aPos;
|
||||
// do not increase mColPos,
|
||||
|
1
dom/cache/AutoUtils.cpp
vendored
1
dom/cache/AutoUtils.cpp
vendored
@ -483,6 +483,7 @@ AutoParentOpResult::~AutoParentOpResult()
|
||||
break;
|
||||
}
|
||||
Unused << PCacheParent::Send__delete__(result.actorParent());
|
||||
break;
|
||||
}
|
||||
default:
|
||||
// other types do not need clean up
|
||||
|
@ -3806,6 +3806,7 @@ HTMLInputElement::PostHandleEvent(EventChainPostVisitor& aVisitor)
|
||||
break; // If we are submitting, do not send click event
|
||||
}
|
||||
// else fall through and treat Space like click...
|
||||
MOZ_FALLTHROUGH;
|
||||
}
|
||||
case NS_FORM_INPUT_BUTTON:
|
||||
case NS_FORM_INPUT_RESET:
|
||||
@ -3834,7 +3835,7 @@ HTMLInputElement::PostHandleEvent(EventChainPostVisitor& aVisitor)
|
||||
case NS_VK_UP:
|
||||
case NS_VK_LEFT:
|
||||
isMovingBack = true;
|
||||
// FALLTHROUGH
|
||||
MOZ_FALLTHROUGH;
|
||||
case NS_VK_DOWN:
|
||||
case NS_VK_RIGHT:
|
||||
// Arrow key pressed, focus+select prev/next radio button
|
||||
|
@ -257,7 +257,7 @@ DOMStorageDBThread::InsertDBOp(DOMStorageDBThread::DBOperation* aOperation)
|
||||
aOperation->Finalize(NS_OK);
|
||||
return NS_OK;
|
||||
}
|
||||
// NO BREAK
|
||||
MOZ_FALLTHROUGH;
|
||||
|
||||
case DBOperation::opGetUsage:
|
||||
if (aOperation->Type() == DBOperation::opPreloadUrgent) {
|
||||
|
@ -1990,7 +1990,7 @@ void ReportLoadError(JSContext* aCx, nsresult aLoadResult)
|
||||
|
||||
case NS_ERROR_MALFORMED_URI:
|
||||
aLoadResult = NS_ERROR_DOM_SYNTAX_ERR;
|
||||
// fall through
|
||||
MOZ_FALLTHROUGH;
|
||||
case NS_ERROR_DOM_SECURITY_ERR:
|
||||
case NS_ERROR_DOM_SYNTAX_ERR:
|
||||
Throw(aCx, aLoadResult);
|
||||
|
Loading…
Reference in New Issue
Block a user