зеркало из https://github.com/mozilla/gecko-dev.git
Added an XXX to CreateFrame() as a reminder that we're resolving the
style context more than once...
This commit is contained in:
Родитель
caa0bff3c4
Коммит
b8ac3006fb
|
@ -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 =
|
||||
|
|
Загрузка…
Ссылка в новой задаче