From d43191b9c19684298dc4b906be1bd1730cb03af7 Mon Sep 17 00:00:00 2001 From: "pavlov%netscape.com" Date: Fri, 4 Feb 2000 03:03:08 +0000 Subject: [PATCH] remove the non-needed push/pop states r=sfraser --- layout/base/nsCaret.cpp | 5 ----- layout/base/src/nsCaret.cpp | 5 ----- 2 files changed, 10 deletions(-) diff --git a/layout/base/nsCaret.cpp b/layout/base/nsCaret.cpp index 5d79e28de578..99cf5fe4f9ac 100644 --- a/layout/base/nsCaret.cpp +++ b/layout/base/nsCaret.cpp @@ -589,8 +589,6 @@ void nsCaret::DrawCaretWithContext(nsIRenderingContext* inRendContext) return; } - localRC->PushState(); - if (!mDrawn) { nsPoint framePos(0, 0); @@ -630,9 +628,6 @@ void nsCaret::DrawCaretWithContext(nsIRenderingContext* inRendContext) localRC->SetColor(NS_RGB(255,255,255)); localRC->InvertRect(mCaretRect); ToggleDrawnStatus(); - - PRBool dummy; - localRC->PopState(dummy); } //----------------------------------------------------------------------------- diff --git a/layout/base/src/nsCaret.cpp b/layout/base/src/nsCaret.cpp index 5d79e28de578..99cf5fe4f9ac 100644 --- a/layout/base/src/nsCaret.cpp +++ b/layout/base/src/nsCaret.cpp @@ -589,8 +589,6 @@ void nsCaret::DrawCaretWithContext(nsIRenderingContext* inRendContext) return; } - localRC->PushState(); - if (!mDrawn) { nsPoint framePos(0, 0); @@ -630,9 +628,6 @@ void nsCaret::DrawCaretWithContext(nsIRenderingContext* inRendContext) localRC->SetColor(NS_RGB(255,255,255)); localRC->InvertRect(mCaretRect); ToggleDrawnStatus(); - - PRBool dummy; - localRC->PopState(dummy); } //-----------------------------------------------------------------------------