From e0876002ed41dff0bf25b2b642f5db3640f30829 Mon Sep 17 00:00:00 2001 From: "attinasi%netscape.com" Date: Mon, 5 Jun 2000 21:21:48 +0000 Subject: [PATCH] Removed code that was printing the word 'embed'. b=37558 r=buster a=leger --- layout/generic/nsObjectFrame.cpp | 11 ----------- layout/html/base/src/nsObjectFrame.cpp | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/layout/generic/nsObjectFrame.cpp b/layout/generic/nsObjectFrame.cpp index 9af2d0b3464c..5a36634500eb 100644 --- a/layout/generic/nsObjectFrame.cpp +++ b/layout/generic/nsObjectFrame.cpp @@ -1174,17 +1174,6 @@ nsObjectFrame::Paint(nsIPresContext* aPresContext, aRenderingContext.FillRect(0, 0, mRect.width, mRect.height); aRenderingContext.SetColor(NS_RGB(0, 0, 0)); aRenderingContext.DrawRect(0, 0, mRect.width, mRect.height); - float p2t; - aPresContext->GetPixelsToTwips(&p2t); - nscoord px3 = NSIntPixelsToTwips(3, p2t); - nsAutoString tmp; - nsIAtom* atom; - mContent->GetTag(atom); - if (nsnull != atom) { - atom->ToString(tmp); - NS_RELEASE(atom); - aRenderingContext.DrawString(tmp, px3, px3); - } } #else // delegate all painting to the plugin instance. diff --git a/layout/html/base/src/nsObjectFrame.cpp b/layout/html/base/src/nsObjectFrame.cpp index 9af2d0b3464c..5a36634500eb 100644 --- a/layout/html/base/src/nsObjectFrame.cpp +++ b/layout/html/base/src/nsObjectFrame.cpp @@ -1174,17 +1174,6 @@ nsObjectFrame::Paint(nsIPresContext* aPresContext, aRenderingContext.FillRect(0, 0, mRect.width, mRect.height); aRenderingContext.SetColor(NS_RGB(0, 0, 0)); aRenderingContext.DrawRect(0, 0, mRect.width, mRect.height); - float p2t; - aPresContext->GetPixelsToTwips(&p2t); - nscoord px3 = NSIntPixelsToTwips(3, p2t); - nsAutoString tmp; - nsIAtom* atom; - mContent->GetTag(atom); - if (nsnull != atom) { - atom->ToString(tmp); - NS_RELEASE(atom); - aRenderingContext.DrawString(tmp, px3, px3); - } } #else // delegate all painting to the plugin instance.