зеркало из https://github.com/mozilla/pjs.git
attempt to work around btek lameness
This commit is contained in:
Родитель
04b0d5a8cb
Коммит
308133cc8b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче