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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user