diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 9ba9a2fb558b..78265312ce3b 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -2511,9 +2511,11 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder, buildingDisplayList.SetReferenceFrameAndCurrentOffset(outerReferenceFrame, GetOffsetToCrossDoc(outerReferenceFrame)); - nsDisplayTransform *transformItem = - new (aBuilder) nsDisplayTransform(aBuilder, this, &resultList, dirtyRect); - resultList.AppendNewToTop(transformItem); + if (!aBuilder->IsForGenerateGlyphPath()) { + nsDisplayTransform *transformItem = + new (aBuilder) nsDisplayTransform(aBuilder, this, &resultList, dirtyRect); + resultList.AppendNewToTop(transformItem); + } if (HasPerspective()) { if (!useFixedPosition && !useStickyPosition) {