attempt to work around btek lameness

This commit is contained in:
bryner%brianryner.com 2004-09-06 04:47:24 +00:00
Родитель 04b0d5a8cb
Коммит 308133cc8b
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -123,7 +123,9 @@ GetPrimaryPresShell(nsIFrame* aFrame)
if (!aFrame)
return nsnull;
nsPresContext *context = aFrame->GetPresContext();
// this is a workaround for the egcs 1.1.2 not inliningg
// aFrame->GetPresContext(), which causes an undefined symbol
nsPresContext *context = aFrame->GetStyleContext()->GetRuleNode()->GetPresContext();
return context ? context->GetPresShell() : nsnull;
}