diff --git a/mozilla/layout/html/base/src/nsInlineReflow.cpp b/mozilla/layout/html/base/src/nsInlineReflow.cpp
index 1634aaa8479..0fc7d4fa136 100644
--- a/mozilla/layout/html/base/src/nsInlineReflow.cpp
+++ b/mozilla/layout/html/base/src/nsInlineReflow.cpp
@@ -653,11 +653,7 @@ nsInlineReflow::PlaceFrame(nsHTMLReflowMetrics& aMetrics)
// applies if the frame ends up with a non-zero height.
if (!emptyFrame) {
// Inform line layout that we have placed a non-empty frame
-#ifdef NS_DEBUG
mLineLayout.AddPlacedFrame(mFrameData->mFrame);
-#else
- mLineLayout.AddPlacedFrame();
-#endif
// Update max-element-size
if (mComputeMaxElementSize) {