Fix compile error on HPUX by using inline getter instead of protected member.

Bug 278390, patch suggested by Bertram Franz <bertramf@gmx.net>, r+sr=jst
This commit is contained in:
bzbarsky%mit.edu 2005-01-27 19:30:26 +00:00
parent 34d6553453
commit b6d7cff558

View File

@ -101,7 +101,7 @@ nsDOMWindowUtils::GetDocumentMetadata(const nsAString& aName,
nsAString& aValue)
{
if (mWindow) {
nsCOMPtr<nsIDocument> doc(do_QueryInterface(mWindow->mDocument));
nsCOMPtr<nsIDocument> doc(do_QueryInterface(mWindow->GetExtantDocument()));
if (doc) {
nsCOMPtr<nsIAtom> name = do_GetAtom(aName);
doc->GetHeaderData(name, aValue);