deCOMify nsIPresShell::GetRootFrame. Change callers inside of gklayout to use FrameManager()->GetRootFrame() instead so that the call can be inlined. Bug 253889, r+sr=roc.

This commit is contained in:
bryner@brianryner.com
2004-09-02 03:08:51 +00:00
parent 2a97cf6e31
commit 314059c81d
22 changed files with 70 additions and 92 deletions

View File

@@ -10139,8 +10139,7 @@ nsCSSFrameConstructor::AttributeChanged(nsPresContext* aPresContext,
if (aAttribute == nsXULAtoms::tooltiptext ||
aAttribute == nsXULAtoms::tooltip)
{
nsIFrame* rootFrame = nsnull;
shell->GetRootFrame(&rootFrame);
nsIFrame* rootFrame = shell->FrameManager()->GetRootFrame();
if (rootFrame)
rootFrame = rootFrame->GetFirstChild(nsnull);
nsCOMPtr<nsIRootBox> rootBox(do_QueryInterface(rootFrame));