Bug 508692: Fix build warning - rename nsSubDocumentFrame method so it doesn't hide inherited method (s/GetMargin/GetMarginAttributes/) r=dbaron

This commit is contained in:
Daniel Holbert 2009-08-10 12:42:53 -07:00
Родитель 5142d8d5f5
Коммит d7268d95e2
1 изменённых файлов: 6 добавлений и 3 удалений

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

@ -185,7 +185,9 @@ public:
virtual void ReflowCallbackCanceled();
protected:
nsIntSize GetMargin();
// Helper method to look up the HTML marginwidth & marginheight attributes
nsIntSize GetMarginAttributes();
PRBool IsInline() { return mIsInline; }
nsresult ShowDocShell();
nsresult CreateViewAndWidget(nsContentType aContentType);
@ -802,7 +804,8 @@ nsSubDocumentFrame::HideViewer()
}
}
nsIntSize nsSubDocumentFrame::GetMargin()
nsIntSize
nsSubDocumentFrame::GetMarginAttributes()
{
nsIntSize result(-1, -1);
nsGenericHTMLElement *content = nsGenericHTMLElement::FromContent(mContent);
@ -918,7 +921,7 @@ nsSubDocumentFrame::ShowDocShell()
// pass along marginwidth, marginheight, scrolling so sub document
// can use it
nsIntSize margin = GetMargin();
nsIntSize margin = GetMarginAttributes();
docShell->SetMarginWidth(margin.width);
docShell->SetMarginHeight(margin.height);