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

This commit is contained in:
amusil%netscape.com 1999-03-11 22:50:58 +00:00
Родитель b4857ef200
Коммит 9fa572f75f
2 изменённых файлов: 14 добавлений и 6 удалений

Просмотреть файл

@ -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);

Просмотреть файл

@ -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);