Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc

This commit is contained in:
bryner%brianryner.com 2006-05-17 02:38:40 +00:00
Родитель 0ae244a418
Коммит f860a941af
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -167,7 +167,7 @@ inFlasher::DrawElementOutline(nsIDOMElement* aElement)
if (!window) return NS_OK; if (!window) return NS_OK;
nsCOMPtr<nsIPresShell> presShell = inLayoutUtils::GetPresShellFor(window); nsCOMPtr<nsIPresShell> presShell = inLayoutUtils::GetPresShellFor(window);
nsCOMPtr<nsIPresContext> presContext; nsCOMPtr<nsPresContext> presContext;
presShell->GetPresContext(getter_AddRefs(presContext)); presShell->GetPresContext(getter_AddRefs(presContext));
float p2t; float p2t;

Просмотреть файл

@ -50,7 +50,7 @@
#include "nsIPresShell.h" #include "nsIPresShell.h"
#include "nsIViewManager.h" #include "nsIViewManager.h"
#include "nsIWidget.h" #include "nsIWidget.h"
#include "nsIPresContext.h" #include "nsPresContext.h"
#include "nsXULAtoms.h" #include "nsXULAtoms.h"
#include "nsHTMLAtoms.h" #include "nsHTMLAtoms.h"
@ -125,7 +125,7 @@ inLayoutUtils::GetEventStateManagerFor(nsIDOMElement *aElement)
nsIPresShell *shell = doc->GetShellAt(0); nsIPresShell *shell = doc->GetShellAt(0);
NS_ASSERTION(shell, "No pres shell"); NS_ASSERTION(shell, "No pres shell");
nsCOMPtr<nsIPresContext> presContext; nsCOMPtr<nsPresContext> presContext;
shell->GetPresContext(getter_AddRefs(presContext)); shell->GetPresContext(getter_AddRefs(presContext));
NS_ASSERTION(presContext, "No pres context"); NS_ASSERTION(presContext, "No pres context");
@ -133,7 +133,7 @@ inLayoutUtils::GetEventStateManagerFor(nsIDOMElement *aElement)
} }
nsPoint nsPoint
inLayoutUtils::GetClientOrigin(nsIPresContext* aPresContext, inLayoutUtils::GetClientOrigin(nsPresContext* aPresContext,
nsIFrame* aFrame) nsIFrame* aFrame)
{ {
nsPoint result(0,0); nsPoint result(0,0);
@ -171,7 +171,7 @@ inLayoutUtils::GetScreenOrigin(nsIDOMElement* aElement)
// Flush all pending notifications so that our frames are uptodate // Flush all pending notifications so that our frames are uptodate
doc->FlushPendingNotifications(Flush_Layout); doc->FlushPendingNotifications(Flush_Layout);
nsCOMPtr<nsIPresContext> presContext; nsCOMPtr<nsPresContext> presContext;
presShell->GetPresContext(getter_AddRefs(presContext)); presShell->GetPresContext(getter_AddRefs(presContext));
if (presContext) { if (presContext) {

Просмотреть файл

@ -69,7 +69,7 @@ public:
* @param aPresContext the presentation context * @param aPresContext the presentation context
* @return the offset * @return the offset
*/ */
static nsPoint GetClientOrigin(nsIPresContext* aPresContext, static nsPoint GetClientOrigin(nsPresContext* aPresContext,
nsIFrame* aFrame); nsIFrame* aFrame);
static nsRect& GetScreenOrigin(nsIDOMElement* aElement); static nsRect& GetScreenOrigin(nsIDOMElement* aElement);