commit e8d5fdd3ed1739f166bf8d7e4034d3925518e478
parent b5b2dc960d2377fcb372f9c1d5bc965e8beb2497
Author: Frédéric Wang <fwang@igalia.com>
Date: Sat, 11 Oct 2025 19:10:26 +0000
Bug 1925478 - Remove nsMathMLContainerFrame::DidReflow. r=layout-reviewers,emilio
nsMathMLContainerFrame (and its derived classes) relies on a
FinishReflow() method that is called at the end of Reflow(). So just
clear the NS_MATHML_STRETCH_DONE bit there instead of DidReflow().
Differential Revision: https://phabricator.services.mozilla.com/D226118
Diffstat:
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/layout/mathml/nsMathMLContainerFrame.cpp b/layout/mathml/nsMathMLContainerFrame.cpp
@@ -551,6 +551,7 @@ nsresult nsMathMLContainerFrame::FinalizeReflow(DrawTarget* aDrawTarget,
GatherAndStoreOverflow(&aDesiredSize);
}
+ mPresentationData.flags &= ~NS_MATHML_STRETCH_DONE;
return NS_OK;
}
diff --git a/layout/mathml/nsMathMLContainerFrame.h b/layout/mathml/nsMathMLContainerFrame.h
@@ -85,14 +85,6 @@ class nsMathMLContainerFrame : public nsContainerFrame, public nsMathMLFrame {
const ReflowInput& aReflowInput,
nsReflowStatus& aStatus) override;
- void DidReflow(nsPresContext* aPresContext,
- const ReflowInput* aReflowInput) override
-
- {
- mPresentationData.flags &= ~NS_MATHML_STRETCH_DONE;
- return nsContainerFrame::DidReflow(aPresContext, aReflowInput);
- }
-
void BuildDisplayList(nsDisplayListBuilder* aBuilder,
const nsDisplayListSet& aLists) override;