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.

git-svn-id: svn://10.0.0.236/trunk@161637 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com
2004-09-02 03:08:51 +00:00
parent 16f0a79561
commit ae9e02402a
23 changed files with 71 additions and 94 deletions

View File

@@ -426,8 +426,7 @@ DumpFramesRecur(nsIDocShell* aDocShell, FILE* out)
fprintf(out, "webshell=%p \n", NS_STATIC_CAST(void*, aDocShell));
nsCOMPtr<nsIPresShell> shell(pres_shell(aDocShell));
if (shell) {
nsIFrame* root;
shell->GetRootFrame(&root);
nsIFrame* root = shell->GetRootFrame();
if (root) {
nsIFrameDebug* fdbg;
if (NS_SUCCEEDED(CallQueryInterface(root, &fdbg))) {
@@ -524,8 +523,7 @@ nsLayoutDebuggingTools::DumpStyleContexts()
FILE *out = stdout;
nsCOMPtr<nsIPresShell> shell(pres_shell(mDocShell));
if (shell) {
nsIFrame* root;
shell->GetRootFrame(&root);
nsIFrame* root = shell->GetRootFrame();
if (!root) {
fputs("null root frame\n", out);
} else {