Minor API change. Added support for tags that don't specify SRC or DATA params.

git-svn-id: svn://10.0.0.236/trunk@23783 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
amusil%netscape.com 1999-03-11 22:50:58 +00:00
parent f6cd375f7c
commit d2ecbb2bef
2 changed files with 14 additions and 6 deletions

View File

@ -661,10 +661,14 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
SetFullURL(fullURL);
NS_IF_RELEASE(group);
}
}
}
nsIView *parentWithView;
// if there's no fullURL at this point, we need to set one
if(!fullURL && baseURL)
SetFullURL(baseURL);
nsIView *parentWithView;
nsPoint origin;
// we need to recalculate this now that we have access to the nsPluginInstanceOwner
@ -693,7 +697,7 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
#ifdef XP_UNIX
window->ws_info = nsnull; //XXX need to figure out what this is. MMP
#endif
rv = pm->InstantiateEmbededPlugin(buf, src, mInstanceOwner);
rv = pm->InstantiateEmbededPlugin(buf, fullURL, mInstanceOwner);
NS_IF_RELEASE(fullURL);
NS_IF_RELEASE(baseURL);

View File

@ -661,10 +661,14 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
SetFullURL(fullURL);
NS_IF_RELEASE(group);
}
}
}
nsIView *parentWithView;
// if there's no fullURL at this point, we need to set one
if(!fullURL && baseURL)
SetFullURL(baseURL);
nsIView *parentWithView;
nsPoint origin;
// we need to recalculate this now that we have access to the nsPluginInstanceOwner
@ -693,7 +697,7 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
#ifdef XP_UNIX
window->ws_info = nsnull; //XXX need to figure out what this is. MMP
#endif
rv = pm->InstantiateEmbededPlugin(buf, src, mInstanceOwner);
rv = pm->InstantiateEmbededPlugin(buf, fullURL, mInstanceOwner);
NS_IF_RELEASE(fullURL);
NS_IF_RELEASE(baseURL);