Added an XXX to CreateFrame() as a reminder that we're resolving the

style context more than once...
This commit is contained in:
troy 1998-04-28 20:58:46 +00:00
Родитель caa0bff3c4
Коммит b8ac3006fb
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -187,6 +187,8 @@ nsIFrame* nsHTMLContainer::CreateFrame(nsIPresContext* aPresContext,
nsIFrame* aParentFrame)
{
// Resolve style for the piece of content
// XXX The caller has also resolved the style context, which means we're
// resolving it more than once. That's inefficient, and we need to fix it...
nsIStyleContext* styleContext =
aPresContext->ResolveStyleContextFor(this, aParentFrame);
nsStyleDisplay* styleDisplay =