commit 95039bc0c5e056fff625a2e340a418b88319d1f9
parent d77d42c8dec1e97c3500802f2aee86aca69b5aea
Author: Ting-Yu Lin <tlin@mozilla.com>
Date: Mon, 13 Oct 2025 21:36:14 +0000
Bug 1983345 Part 7 - Remove the redundant zero-initialization for nsHypotheticalPos. r=layout-reviewers,emilio
They are zero-initialized by default.
https://searchfox.org/firefox-main/rev/dc1c78e9c37aba6ed05a4ec47c4bfcb16f57b51d/layout/generic/ReflowInput.cpp#1235-1238
Differential Revision: https://phabricator.services.mozilla.com/D268303
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/layout/generic/ReflowInput.cpp b/layout/generic/ReflowInput.cpp
@@ -1718,8 +1718,6 @@ void ReflowInput::InitAbsoluteConstraints(const ReflowInput* aCBReflowInput,
if (mFlags.mStaticPosIsCBOrigin) {
hypotheticalPos.mWritingMode = cbwm;
- hypotheticalPos.mIStart = nscoord(0);
- hypotheticalPos.mBStart = nscoord(0);
if (placeholderParent->IsGridContainerFrame() &&
placeholderParent->HasAnyStateBits(NS_STATE_GRID_IS_COL_MASONRY |
NS_STATE_GRID_IS_ROW_MASONRY)) {