diff --git a/layout/generic/nsPageFrame.cpp b/layout/generic/nsPageFrame.cpp index 16b81b89147..0700ad487e3 100644 --- a/layout/generic/nsPageFrame.cpp +++ b/layout/generic/nsPageFrame.cpp @@ -316,7 +316,7 @@ nsPageFrame::DrawHeaderFooter(nsIRenderingContext& aRenderingContext, } // Draw a header or footer string -// @param aRenderingContext - rendering content ot draw into +// @param aRenderingContext - rendering context to draw into // @param aHeaderFooter - indicates whether it is a header or footer // @param aJust - indicates where the string is located within the header/footer // @param aStr - the string to be drawn @@ -389,7 +389,7 @@ nsPageFrame::DrawHeaderFooter(nsIRenderingContext& aRenderingContext, // set up new clip and draw the text aRenderingContext.PushState(); aRenderingContext.SetColor(NS_RGB(0,0,0)); - aRenderingContext.SetClipRect(aRect, nsClipCombine_kReplace); + aRenderingContext.SetClipRect(aRect, nsClipCombine_kIntersect); nsLayoutUtils::DrawString(this, &aRenderingContext, str.get(), str.Length(), nsPoint(x, y + aAscent)); aRenderingContext.PopState(); }