From b4563de9533bf2275e04b80bbbf24bad68f36afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 12 Sep 2026 17:55:57 +0200 Subject: [PATCH] Bug 2071197 - Fix NewPresState() after field reorder. --- layout/base/nsLayoutHistoryState.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layout/base/nsLayoutHistoryState.cpp b/layout/base/nsLayoutHistoryState.cpp index 079698885515..fdf39f1246f3 100644 --- a/layout/base/nsLayoutHistoryState.cpp +++ b/layout/base/nsLayoutHistoryState.cpp @@ -163,13 +163,13 @@ namespace mozilla { UniquePtr NewPresState() { return MakeUnique( /* contentData */ mozilla::void_t(), - /* scrollState */ nsPoint(0, 0), - /* allowScrollOriginDowngrade */ true, + /* scrollState */ nsPoint(), + /* scrollEventGeneration */ 0, + /* scrollEndEventGeneration */ 0, /* resolution */ 1.0, + /* allowScrollOriginDowngrade */ true, /* disabledSet */ false, /* disabled */ false, - /* droppedDown */ false, - /* scrollEventGeneration */ 0, - /* scrollEndEventGeneration */ 0); + /* droppedDown */ false); } } // namespace mozilla