Bug 937843 - Make some things in APZCCallbackHelper const. r=botond

This commit is contained in:
Kartikaya Gupta 2013-11-13 13:22:34 -05:00
Родитель 5a524e26f6
Коммит 45045d0c0b
2 изменённых файлов: 6 добавлений и 6 удалений

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

@ -112,7 +112,7 @@ APZCCallbackHelper::UpdateSubFrame(nsIContent* aContent,
}
already_AddRefed<nsIDOMWindowUtils>
APZCCallbackHelper::GetDOMWindowUtils(nsIDocument* aDoc)
APZCCallbackHelper::GetDOMWindowUtils(const nsIDocument* aDoc)
{
nsCOMPtr<nsIDOMWindowUtils> utils;
nsCOMPtr<nsIDOMWindow> window = aDoc->GetDefaultView();
@ -123,7 +123,7 @@ APZCCallbackHelper::GetDOMWindowUtils(nsIDocument* aDoc)
}
already_AddRefed<nsIDOMWindowUtils>
APZCCallbackHelper::GetDOMWindowUtils(nsIContent* aContent)
APZCCallbackHelper::GetDOMWindowUtils(const nsIContent* aContent)
{
nsCOMPtr<nsIDOMWindowUtils> utils;
nsIDocument* doc = aContent->GetCurrentDoc();
@ -134,7 +134,7 @@ APZCCallbackHelper::GetDOMWindowUtils(nsIContent* aContent)
}
bool
APZCCallbackHelper::GetScrollIdentifiers(nsIContent* aContent,
APZCCallbackHelper::GetScrollIdentifiers(const nsIContent* aContent,
uint32_t* aPresShellIdOut,
FrameMetrics::ViewID* aViewIdOut)
{

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

@ -43,15 +43,15 @@ public:
const FrameMetrics& aMetrics);
/* Get the DOMWindowUtils for the window corresponding to the given document. */
static already_AddRefed<nsIDOMWindowUtils> GetDOMWindowUtils(nsIDocument* aDoc);
static already_AddRefed<nsIDOMWindowUtils> GetDOMWindowUtils(const nsIDocument* aDoc);
/* Get the DOMWindowUtils for the window corresponding to the givent content
element. This might be an iframe inside the tab, for instance. */
static already_AddRefed<nsIDOMWindowUtils> GetDOMWindowUtils(nsIContent* aContent);
static already_AddRefed<nsIDOMWindowUtils> GetDOMWindowUtils(const nsIContent* aContent);
/* Get the presShellId and view ID for the given content element, if they can be
found. Returns false if the values could not be found, true if they could. */
static bool GetScrollIdentifiers(nsIContent* aContent,
static bool GetScrollIdentifiers(const nsIContent* aContent,
uint32_t* aPresShellIdOut,
FrameMetrics::ViewID* aViewIdOut);
};