зеркало из https://github.com/mozilla/gecko-dev.git
Added nsRenderingContextImpl to Mozilla.. Windows now uses this Implementation..
other platforms to follow. r=kmclusk
This commit is contained in:
Родитель
d93b9829a3
Коммит
985b19482a
|
@ -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 \
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -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()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче