diff --git a/layout/generic/nsFrameFrame.cpp b/layout/generic/nsFrameFrame.cpp index 20009bcda7a..2d7a701e6fa 100644 --- a/layout/generic/nsFrameFrame.cpp +++ b/layout/generic/nsFrameFrame.cpp @@ -443,8 +443,7 @@ nsSubDocumentFrame::ComputeSize(nsIRenderingContext *aRenderingContext, nsIFrame* subDocRoot = ObtainIntrinsicSizeFrame(); if (subDocRoot) { return nsLayoutUtils::ComputeSizeWithIntrinsicDimensions( - aRenderingContext, - const_cast(this), + aRenderingContext, this, subDocRoot->GetIntrinsicSize(), subDocRoot->GetIntrinsicRatio(), aCBSize, aMargin, aBorder, aPadding);