Support for Blending added. r=beard

This commit is contained in:
dcone%netscape.com 2000-03-16 05:05:12 +00:00
Родитель 9355e9d912
Коммит 6aef4d77aa
3 изменённых файлов: 1151 добавлений и 1077 удалений

Просмотреть файл

@ -273,7 +273,7 @@ NS_IMETHODIMP nsView :: Paint(nsIRenderingContext& rc, const nsRect& rect,
if (nsnull != mClientData) {
nsCOMPtr<nsIViewObserver> observer;
if (NS_OK == mViewManager->GetViewObserver(*getter_AddRefs(observer))) {
if ((mClip.mLeft != 0) && (mClip.mRight != 0) && (mClip.mTop != 0) && (mClip.mBottom != 0)) {
if ((mClip.mLeft != mClip.mRight) && (mClip.mTop != mClip.mBottom)) {
nsRect crect;
crect.x = mClip.mLeft;
crect.y = mClip.mTop;
@ -972,9 +972,9 @@ NS_IMETHODIMP nsView :: SetClip(nscoord aLeft, nscoord aTop, nscoord aRight, nsc
NS_IMETHODIMP nsView :: GetClip(nscoord *aLeft, nscoord *aTop, nscoord *aRight, nscoord *aBottom,
PRBool &aResult) const
{
if ((mClip.mLeft == 0) && (mClip.mRight == 0) && (mClip.mTop == 0) && (mClip.mBottom == 0))
if ((mClip.mLeft == mClip.mRight) || (mClip.mTop == mClip.mBottom)) {
aResult = PR_FALSE;
else {
} else {
*aLeft = mClip.mLeft;
*aTop = mClip.mTop;
*aRight = mClip.mRight;

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,4 +1,4 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: true; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
@ -240,7 +240,8 @@ private:
PRInt32 mDisplayListCount;
PRInt32 mOpaqueViewCount;
PRInt32 mTranslucentViewCount;
nsRect mTranslucentBounds;
nsRect mTranslucentArea; // bounding box of all translucent views.
nsSize mTranslucentSize; // size of the blending buffers.
nsIScrollableView *mRootScrollable;
//from here to public should be static and locked... MMP
@ -252,8 +253,8 @@ private:
static nsDrawingSurface gOffScreen;
static nsDrawingSurface gRed;
static nsDrawingSurface gBlue;
static PRInt32 gBlendWidth;
static PRInt32 gBlendHeight;
static nsSize gOffScreenSize;
static nsSize gBlendSize;
//compositor regions
nsIRegion *mTransRgn;