Bug 570620, part c: Add two trivial helper methods to nsFrameLoader. r=smaug

This commit is contained in:
Chris Jones 2010-08-05 17:11:23 -05:00
Родитель 163a702870
Коммит a4efd1f9bb
1 изменённых файлов: 16 добавлений и 0 удалений

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

@ -152,6 +152,22 @@ public:
// When IPC is enabled, destroy any associated child process.
void DestroyChild();
/**
* Return the primary frame for our owning content, or null if it
* can't be found.
*/
nsIFrame* GetPrimaryFrameOfOwningContent() const
{
return mOwnerContent ? mOwnerContent->GetPrimaryFrame() : nsnull;
}
/**
* Return the document that owns this, or null if we don't have
* an owner.
*/
nsIDocument* GetOwnerDoc() const
{ return mOwnerContent ? mOwnerContent->GetOwnerDoc() : nsnull; }
#ifdef MOZ_IPC
PBrowserParent* GetRemoteBrowser();
#endif