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

git-svn-id: svn://10.0.0.236/trunk@197734 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%brianryner.com
2006-05-17 02:38:36 +00:00
parent 74de9e9a39
commit 822be4fd91
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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