Added nsRenderingContextImpl to Mozilla.. Windows now uses this Implementation..

other platforms to follow.  r=kmclusk
This commit is contained in:
dcone%netscape.com 2000-03-29 15:53:29 +00:00
parent d93b9829a3
commit 985b19482a
4 changed files with 80 additions and 2 deletions

View File

@ -53,6 +53,7 @@ CPP_OBJS=.\$(OBJDIR)\nsColor.obj .\$(OBJDIR)\nsColorNames.obj \
.\$(OBJDIR)\nsDeviceContext.obj \
.\$(OBJDIR)\nsImageNetContextSync.obj \
.\$(OBJDIR)\nsBlender.obj \
.\$(OBJDIR)\nsRenderingContextImpl.obj\
.\$(OBJDIR)\nsScriptableRegion.obj
LINCS=-I$(PUBLIC)\util -I$(PUBLIC)\img \

View File

@ -0,0 +1,38 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsRenderingContextImpl.h"
nsRenderingContextImpl :: nsRenderingContextImpl()
{
}
nsRenderingContextImpl :: ~nsRenderingContextImpl()
{
}

View File

@ -0,0 +1,38 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsRenderingContextImpl.h"
nsRenderingContextImpl :: nsRenderingContextImpl()
{
}
nsRenderingContextImpl :: ~nsRenderingContextImpl()
{
}

View File

@ -35,11 +35,12 @@
#include "nsVoidArray.h"
#include "nsIRenderingContextWin.h"
#include "nsDrawingSurfaceWin.h"
#include "nsRenderingContextImpl.h"
class GraphicsState;
class nsDrawingSurfaceWin;
class nsRenderingContextWin : public nsIRenderingContext,
class nsRenderingContextWin : public nsRenderingContextImpl,
nsIRenderingContextWin
{
public:
@ -178,9 +179,9 @@ public:
protected:
void SetupFontAndColor(void);
private:
~nsRenderingContextWin();
private:
// ConditionRect is used to fix a coordinate overflow problem under WIN95.
void ConditionRect(nsRect aSrcRect, RECT& aDestRect);