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

@ -5167,6 +5167,9 @@ UniquePtr<RangePaintInfo> PresShell::CreateRangePaintInfo(
// XXX deal with frame being null due to display:contents
for (; frame;
frame = nsLayoutUtils::GetNextContinuationOrIBSplitSibling(frame)) {
if (frame->HasAnyStateBits(NS_FRAME_IS_NONDISPLAY)) {
continue;
}
info->mBuilder.SetVisibleRect(frame->InkOverflowRect());
info->mBuilder.SetDirtyRect(frame->InkOverflowRect());
frame->BuildDisplayListForStackingContext(&info->mBuilder, &info->mList);
@ -7864,17 +7867,13 @@ bool PresShell::EventHandler::MaybeFlushPendingNotifications(
switch (aGUIEvent->mMessage) {
case eMouseDown:
case eMouseUp: {
RefPtr<nsPresContext> presContext = mPresShell->GetPresContext();
if (NS_WARN_IF(!presContext)) {
case eMouseUp: // XXX How about eContextMenu?
{
if (NS_WARN_IF(!mPresShell->GetPresContext())) {
return false;
}
uint64_t framesConstructedCount = presContext->FramesConstructedCount();
uint64_t framesReflowedCount = presContext->FramesReflowedCount();
MOZ_KnownLive(mPresShell)->FlushPendingNotifications(FlushType::Layout);
return framesConstructedCount != presContext->FramesConstructedCount() ||
framesReflowedCount != presContext->FramesReflowedCount();
return true;
}
default:
return false;
@ -7944,18 +7943,19 @@ nsIFrame* PresShell::EventHandler::GetFrameToHandleNonTouchEvent(
// If target is in a child document, we've not flushed its layout yet.
PresShell* childPresShell = targetFrame->PresShell();
EventHandler childEventHandler(*childPresShell);
bool layoutChanged =
const AutoWeakFrame targetFrameWeak(targetFrame);
const DebugOnly<bool> flushedPendingNotifications =
childEventHandler.MaybeFlushPendingNotifications(aGUIEvent);
if (!aWeakRootFrameToHandleEvent.IsAlive()) {
// Stop handling the event if the root frame to handle event is destroyed
// by the reflow. (but why?)
return nullptr;
}
if (!layoutChanged) {
// If the layout in the child PresShell hasn't been changed, we don't
// need to recompute the target.
if (targetFrameWeak.IsAlive()) {
// If the target frame is alive, we don't need to recompute the target.
return targetFrame;
}
MOZ_ASSERT(flushedPendingNotifications);
// Finally, we need to recompute the target with the latest layout.
targetFrame =