From b2841806b6e6cd21e7e6bf27dba052d332cc243f Mon Sep 17 00:00:00 2001 From: "amardare%qnx.com" Date: Thu, 27 May 2004 20:01:17 +0000 Subject: [PATCH] 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 --- mozilla/gfx/src/photon/nsDeviceContextPh.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/gfx/src/photon/nsDeviceContextPh.cpp b/mozilla/gfx/src/photon/nsDeviceContextPh.cpp index 667d21c2147..51a02533fcb 100644 --- a/mozilla/gfx/src/photon/nsDeviceContextPh.cpp +++ b/mozilla/gfx/src/photon/nsDeviceContextPh.cpp @@ -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 ) {