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