зеркало из https://github.com/mozilla/gecko-dev.git
take 2 static CID's out of two different functions and combine them into 1 r=alecf fixes bug #15776
This commit is contained in:
Родитель
e1b3f6ad9c
Коммит
a9baa2ba22
|
@ -166,6 +166,8 @@ NS_IMETHODIMP DeviceContextImpl :: GetCanonicalPixelScale(float &aScale) const
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
static NS_DEFINE_CID(kRCCID, NS_RENDERING_CONTEXT_CID);
|
||||
|
||||
NS_IMETHODIMP DeviceContextImpl :: CreateRenderingContext(nsIView *aView, nsIRenderingContext *&aContext)
|
||||
{
|
||||
nsIRenderingContext *pContext;
|
||||
|
@ -173,8 +175,6 @@ NS_IMETHODIMP DeviceContextImpl :: CreateRenderingContext(nsIView *aView, nsIRen
|
|||
aView->GetWidget(win);
|
||||
nsresult rv;
|
||||
|
||||
static NS_DEFINE_CID(kRCCID, NS_RENDERING_CONTEXT_CID);
|
||||
|
||||
aContext = nsnull;
|
||||
rv = nsComponentManager::CreateInstance(kRCCID, nsnull, NS_GET_IID(nsIRenderingContext), (void **)&pContext);
|
||||
|
||||
|
@ -195,8 +195,6 @@ NS_IMETHODIMP DeviceContextImpl :: CreateRenderingContext(nsIWidget *aWidget, ns
|
|||
nsIRenderingContext *pContext;
|
||||
nsresult rv;
|
||||
|
||||
static NS_DEFINE_CID(kRCCID, NS_RENDERING_CONTEXT_CID);
|
||||
|
||||
aContext = nsnull;
|
||||
rv = nsComponentManager::CreateInstance(kRCCID, nsnull, NS_GET_IID(nsIRenderingContext), (void **)&pContext);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче