Commit ec938bc5 authored by Alexander Surkov's avatar Alexander Surkov
Browse files

Bug 1820791 - do not reflow nsMathMLContainerFrame for hidden content visibility, r=emilio

parent a86cb333
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -824,6 +824,10 @@ void nsMathMLContainerFrame::Reflow(nsPresContext* aPresContext,
                                    ReflowOutput& aDesiredSize,
                                    const ReflowInput& aReflowInput,
                                    nsReflowStatus& aStatus) {
  if (IsHiddenByContentVisibilityOfInFlowParentForLayout()) {
    return;
  }

  MarkInReflow();
  MOZ_ASSERT(aStatus.IsEmpty(), "Caller should pass a fresh reflow status!");