RgnHandle widgetPortRgn = (RgnHandle)aWindow->GetNativeData(NS_NATIVE_REGION_IN_PORT); mMacOriginRelativeClipRgn	= DuplicateRgn(widgetPortRgn); mMacPortRelativeClipRgn		= DuplicateRgn(widgetPortRgn);
void GraphicState::Init(nsIWidget* aWindow){	if (mTMatrix == nsnull)		mTMatrix = new nsTransform2D();  mRenderingSurface	= (nsDrawingSurfaceMac)aWindow->GetNativeData(NS_NATIVE_DISPLAY);   mOffx = (PRInt32)aWindow->GetNativeData(NS_NATIVE_OFFSETX);  mOffy = (PRInt32)aWindow->GetNativeData(NS_NATIVE_OFFSETY);	RgnHandle widgetRgn = (RgnHandle)aWindow->GetNativeData(NS_NATIVE_REGION);	mMainRegion			= DuplicateRgn(widgetRgn);  mClipRegion			= nsnull;  mColor 					= NS_RGB(255,255,255);	mFont						= 0;  mFontMetrics		= nsnull;  mCurrFontHandle	= 0;    // Mac specific state	RgnHandle widgetPortRgn = (RgnHandle)aWindow->GetNativeData(NS_NATIVE_REGION_IN_PORT);	mMacOriginRelativeClipRgn	= DuplicateRgn(widgetPortRgn);	mMacPortRelativeClipRgn		= DuplicateRgn(widgetPortRgn);}