зеркало из https://github.com/mozilla/pjs.git
Change nsIPresContext to nsPresContext globally, follow-up to bug 253470. rs=roc
This commit is contained in:
Родитель
0ae244a418
Коммит
f860a941af
|
@ -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);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче