mMacOriginRelativeClipRgn	= DuplicateRgn(aGS->mMacOriginRelativeClipRgn); mMacPortRelativeClipRgn		= DuplicateRgn(aGS->mMacPortRelativeClipRgn);
void GraphicState::Duplicate(GraphicState* aGS){	if (aGS->mTMatrix)		mTMatrix = new nsTransform2D(aGS->mTMatrix);	else		mTMatrix = new nsTransform2D();	mRenderingSurface = aGS->mRenderingSurface;	mOffx						= aGS->mOffx;	mOffy						= aGS->mOffy;	mMainRegion			= DuplicateRgn(aGS->mMainRegion);	mClipRegion			= DuplicateRgn(aGS->mClipRegion);	mColor					= aGS->mColor;	mFont						= aGS->mFont;	mFontMetrics		= aGS->mFontMetrics;	NS_IF_ADDREF(mFontMetrics);	mCurrFontHandle	= aGS->mCurrFontHandle;	mMacOriginRelativeClipRgn	= DuplicateRgn(aGS->mMacOriginRelativeClipRgn);	mMacPortRelativeClipRgn		= DuplicateRgn(aGS->mMacPortRelativeClipRgn);}