icecat: add release icecat-140.10.1-1gnu1 for ecne

This commit is contained in:
Ark74 2026-05-04 16:58:41 -06:00
parent a5f93cb214
commit ff85d7c623
1256 changed files with 63469 additions and 24141 deletions

View file

@ -507,14 +507,20 @@ struct ParamTraits<mozilla::WidgetKeyboardEvent> {
}
};
template <>
struct ParamTraits<mozilla::TextRangeStyle::LineStyle>
: ContiguousEnumSerializerInclusive<
mozilla::TextRangeStyle::LineStyle,
mozilla::TextRangeStyle::LineStyle::None,
mozilla::TextRangeStyle::LineStyle::Wavy> {};
template <>
struct ParamTraits<mozilla::TextRangeStyle> {
using paramType = mozilla::TextRangeStyle;
static void Write(MessageWriter* aWriter, const paramType& aParam) {
WriteParam(aWriter, aParam.mDefinedStyles);
WriteParam(aWriter, static_cast<mozilla::TextRangeStyle::LineStyleType>(
aParam.mLineStyle));
WriteParam(aWriter, aParam.mLineStyle);
WriteParam(aWriter, aParam.mIsBoldLine);
WriteParam(aWriter, aParam.mForegroundColor);
WriteParam(aWriter, aParam.mBackgroundColor);
@ -522,20 +528,21 @@ struct ParamTraits<mozilla::TextRangeStyle> {
}
static bool Read(MessageReader* aReader, paramType* aResult) {
mozilla::TextRangeStyle::LineStyleType lineStyle;
if (!ReadParam(aReader, &aResult->mDefinedStyles) ||
!ReadParam(aReader, &lineStyle) ||
!ReadParam(aReader, &aResult->mIsBoldLine) ||
!ReadParam(aReader, &aResult->mForegroundColor) ||
!ReadParam(aReader, &aResult->mBackgroundColor) ||
!ReadParam(aReader, &aResult->mUnderlineColor)) {
return false;
}
aResult->mLineStyle = mozilla::TextRangeStyle::ToLineStyle(lineStyle);
return true;
return ReadParam(aReader, &aResult->mDefinedStyles) &&
ReadParam(aReader, &aResult->mLineStyle) &&
ReadParam(aReader, &aResult->mIsBoldLine) &&
ReadParam(aReader, &aResult->mForegroundColor) &&
ReadParam(aReader, &aResult->mBackgroundColor) &&
ReadParam(aReader, &aResult->mUnderlineColor);
}
};
template <>
struct ParamTraits<mozilla::TextRangeType>
: ContiguousEnumSerializerInclusive<
mozilla::TextRangeType, mozilla::TextRangeType::eUninitialized,
mozilla::TextRangeType::eSelectedClause> {};
template <>
struct ParamTraits<mozilla::TextRange> {
using paramType = mozilla::TextRange;
@ -543,20 +550,15 @@ struct ParamTraits<mozilla::TextRange> {
static void Write(MessageWriter* aWriter, const paramType& aParam) {
WriteParam(aWriter, aParam.mStartOffset);
WriteParam(aWriter, aParam.mEndOffset);
WriteParam(aWriter, mozilla::ToRawTextRangeType(aParam.mRangeType));
WriteParam(aWriter, aParam.mRangeType);
WriteParam(aWriter, aParam.mRangeStyle);
}
static bool Read(MessageReader* aReader, paramType* aResult) {
mozilla::RawTextRangeType rawTextRangeType;
if (ReadParam(aReader, &aResult->mStartOffset) &&
ReadParam(aReader, &aResult->mEndOffset) &&
ReadParam(aReader, &rawTextRangeType) &&
ReadParam(aReader, &aResult->mRangeStyle)) {
aResult->mRangeType = mozilla::ToTextRangeType(rawTextRangeType);
return true;
}
return false;
return ReadParam(aReader, &aResult->mStartOffset) &&
ReadParam(aReader, &aResult->mEndOffset) &&
ReadParam(aReader, &aResult->mRangeType) &&
ReadParam(aReader, &aResult->mRangeStyle);
}
};
@ -668,19 +670,6 @@ struct ParamTraits<mozilla::WidgetSelectionEvent> {
}
};
template <>
struct ParamTraits<mozilla::widget::IMENotificationRequests> {
using paramType = mozilla::widget::IMENotificationRequests;
static void Write(MessageWriter* aWriter, const paramType& aParam) {
WriteParam(aWriter, aParam.mWantUpdates);
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, &aResult->mWantUpdates);
}
};
template <>
struct ParamTraits<mozilla::widget::NativeIMEContext> {
using paramType = mozilla::widget::NativeIMEContext;
@ -775,13 +764,22 @@ struct ParamTraits<mozilla::widget::IMENotification::MouseButtonEventData> {
}
};
template <>
struct ParamTraits<mozilla::widget::IMEMessage>
: ContiguousEnumSerializerInclusive<
mozilla::widget::IMEMessage,
// FYI: mozilla::widget::NOTIFY_IME_OF_NOTHING is the actual lowest
// value, but it shouldn't be set at crossing the process boundary
// since it's odd to notify the process of "nothing happened".
mozilla::widget::NOTIFY_IME_OF_FOCUS,
mozilla::widget::REQUEST_TO_CANCEL_COMPOSITION> {};
template <>
struct ParamTraits<mozilla::widget::IMENotification> {
using paramType = mozilla::widget::IMENotification;
static void Write(MessageWriter* aWriter, const paramType& aParam) {
WriteParam(aWriter,
static_cast<mozilla::widget::IMEMessageType>(aParam.mMessage));
WriteParam(aWriter, aParam.mMessage);
switch (aParam.mMessage) {
case mozilla::widget::NOTIFY_IME_OF_SELECTION_CHANGE:
WriteParam(aWriter, aParam.mSelectionChangeData);
@ -798,21 +796,29 @@ struct ParamTraits<mozilla::widget::IMENotification> {
}
static bool Read(MessageReader* aReader, paramType* aResult) {
mozilla::widget::IMEMessageType IMEMessage = 0;
if (!ReadParam(aReader, &IMEMessage)) {
if (!ReadParam(aReader, &aResult->mMessage)) {
return false;
}
aResult->mMessage = static_cast<mozilla::widget::IMEMessage>(IMEMessage);
switch (aResult->mMessage) {
case mozilla::widget::NOTIFY_IME_OF_NOTHING:
MOZ_MAKE_COMPILER_ASSUME_IS_UNREACHABLE(
"NOTIFY_IME_OF_NOTHING shouldn't cross the process boundary");
return false;
case mozilla::widget::NOTIFY_IME_OF_SELECTION_CHANGE:
return ReadParam(aReader, &aResult->mSelectionChangeData);
case mozilla::widget::NOTIFY_IME_OF_TEXT_CHANGE:
return ReadParam(aReader, &aResult->mTextChangeData);
case mozilla::widget::NOTIFY_IME_OF_MOUSE_BUTTON_EVENT:
return ReadParam(aReader, &aResult->mMouseButtonEventData);
default:
case mozilla::widget::NOTIFY_IME_OF_FOCUS:
case mozilla::widget::NOTIFY_IME_OF_BLUR:
case mozilla::widget::NOTIFY_IME_OF_COMPOSITION_EVENT_HANDLED:
case mozilla::widget::NOTIFY_IME_OF_POSITION_CHANGE:
case mozilla::widget::REQUEST_TO_COMMIT_COMPOSITION:
case mozilla::widget::REQUEST_TO_CANCEL_COMPOSITION:
return true;
}
return false;
}
};
@ -1032,6 +1038,16 @@ struct ParamTraits<mozilla::InputData> {
WriteParam(aWriter, aParam.mLayersId);
}
template <typename T>
static bool Read(MessageReader* aReader, mozilla::InputType aInputType,
T* aResult) {
if (!Read(aReader, static_cast<mozilla::InputData*>(aResult))) {
return false;
}
return aResult->mInputType == aInputType;
}
private:
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, &aResult->mInputType) &&
ReadParam(aReader, &aResult->mTimeStamp) &&
@ -1118,7 +1134,8 @@ struct ParamTraits<mozilla::MultiTouchInput> {
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, static_cast<mozilla::InputData*>(aResult)) &&
return ParamTraits<mozilla::InputData>::Read(
aReader, mozilla::MULTITOUCH_INPUT, aResult) &&
ReadParam(aReader, &aResult->mType) &&
ReadParam(aReader, &aResult->mTouches) &&
ReadParam(aReader, &aResult->mHandledByAPZ) &&
@ -1160,7 +1177,8 @@ struct ParamTraits<mozilla::MouseInput> {
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, static_cast<mozilla::InputData*>(aResult)) &&
return ParamTraits<mozilla::InputData>::Read(aReader, mozilla::MOUSE_INPUT,
aResult) &&
ReadParam(aReader, &aResult->mButtonType) &&
ReadParam(aReader, &aResult->mType) &&
ReadParam(aReader, &aResult->mInputSource) &&
@ -1211,7 +1229,8 @@ struct ParamTraits<mozilla::PanGestureInput>
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, static_cast<mozilla::InputData*>(aResult)) &&
return ParamTraits<mozilla::InputData>::Read(
aReader, mozilla::PANGESTURE_INPUT, aResult) &&
ReadParam(aReader, &aResult->mType) &&
ReadParam(aReader, &aResult->mPanStartPoint) &&
ReadParam(aReader, &aResult->mPanDisplacement) &&
@ -1267,7 +1286,8 @@ struct ParamTraits<mozilla::PinchGestureInput> {
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, static_cast<mozilla::InputData*>(aResult)) &&
return ParamTraits<mozilla::InputData>::Read(
aReader, mozilla::PINCHGESTURE_INPUT, aResult) &&
ReadParam(aReader, &aResult->mType) &&
ReadParam(aReader, &aResult->mSource) &&
ReadParam(aReader, &aResult->mScreenOffset) &&
@ -1299,7 +1319,8 @@ struct ParamTraits<mozilla::TapGestureInput> {
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, static_cast<mozilla::InputData*>(aResult)) &&
return ParamTraits<mozilla::InputData>::Read(
aReader, mozilla::TAPGESTURE_INPUT, aResult) &&
ReadParam(aReader, &aResult->mType) &&
ReadParam(aReader, &aResult->mPoint) &&
ReadParam(aReader, &aResult->mLocalPoint);
@ -1362,7 +1383,8 @@ struct ParamTraits<mozilla::ScrollWheelInput> {
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, static_cast<mozilla::InputData*>(aResult)) &&
return ParamTraits<mozilla::InputData>::Read(
aReader, mozilla::SCROLLWHEEL_INPUT, aResult) &&
ReadParam(aReader, &aResult->mDeltaType) &&
ReadParam(aReader, &aResult->mScrollMode) &&
ReadParam(aReader, &aResult->mOrigin) &&
@ -1406,7 +1428,8 @@ struct ParamTraits<mozilla::KeyboardInput> {
}
static bool Read(MessageReader* aReader, paramType* aResult) {
return ReadParam(aReader, static_cast<mozilla::InputData*>(aResult)) &&
return ParamTraits<mozilla::InputData>::Read(
aReader, mozilla::KEYBOARD_INPUT, aResult) &&
ReadParam(aReader, &aResult->mType) &&
ReadParam(aReader, &aResult->mKeyCode) &&
ReadParam(aReader, &aResult->mCharCode) &&