Changes for qnx(photon) platform. They should not affect runtime/building other platforms.

The nsDeviceContext::CommonInit() was called twice ( from nsDeviceContextPh::Init(w) )


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_7_BRANCH@157026 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
amardare%qnx.com
2004-05-27 20:01:17 +00:00
parent 0417235a46
commit b2841806b6

View File

@@ -140,6 +140,9 @@ nsresult nsDeviceContextPh :: Init( nsNativeDeviceContext aContext, nsIDeviceCon
mWidthFloat = w;
mHeightFloat = h;
/* Call Base Class */
DeviceContextImpl::CommonInit( );
return NS_OK;
}
@@ -217,9 +220,6 @@ void nsDeviceContextPh :: CommonInit( nsNativeDeviceContext aDC ) {
/* Revisit: the scroll bar sizes is a gross guess based on Phab */
mScrollbarHeight = 17;
mScrollbarWidth = 17;
/* Call Base Class */
DeviceContextImpl::CommonInit( );
}
NS_IMETHODIMP nsDeviceContextPh :: CreateRenderingContext( nsIRenderingContext *&aContext ) {