Updated files for the Debug plugin. Not part of the build.
This commit is contained in:
@@ -174,18 +174,18 @@ void nsPluginInstance::getVersion(char* *aVersion)
|
||||
}
|
||||
|
||||
//-----------------------------------------------------
|
||||
|
||||
void
|
||||
nsPluginInstance::DumpLayout(nsISupports *aWindow, const PRUnichar *aFilePath, const PRUnichar *aFileName)
|
||||
|
||||
void nsPluginInstance::OutPutLayoutFrames(nsISupports *aWindow, const PRUnichar *aFilePath, const PRUnichar *aFileName, PRInt32 *aRetVal)
|
||||
{
|
||||
|
||||
nsIDebugObject *theDebugObject=NULL;
|
||||
|
||||
*aRetVal = NS_ERROR_FAILURE;
|
||||
|
||||
if (gServiceManager) {
|
||||
// get service using its contract id and use it to allocate the memory
|
||||
gServiceManager->GetServiceByContractID("@mozilla.org/debug/debugobject;1", NS_GET_IID(nsIDebugObject), (void **)&theDebugObject);
|
||||
if(theDebugObject){
|
||||
theDebugObject->DumpContent(aWindow,aFilePath,aFileName);
|
||||
*aRetVal = theDebugObject->DumpContent(aWindow,aFilePath,aFileName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user