From 5f3734c16a8585d1c6305d5ccd315cba48a3a83d Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Wed, 13 Nov 2013 13:22:24 -0500 Subject: [PATCH] Bug 937843 - Make an argument to nsLayoutUtils::FindIDFor const. r=tn --- layout/base/nsLayoutUtils.cpp | 2 +- layout/base/nsLayoutUtils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/base/nsLayoutUtils.cpp b/layout/base/nsLayoutUtils.cpp index 8c5bb2fd4a6..c592be4e4c3 100644 --- a/layout/base/nsLayoutUtils.cpp +++ b/layout/base/nsLayoutUtils.cpp @@ -516,7 +516,7 @@ static void DestroyViewID(void* aObject, nsIAtom* aPropertyName, */ bool -nsLayoutUtils::FindIDFor(nsIContent* aContent, ViewID* aOutViewId) +nsLayoutUtils::FindIDFor(const nsIContent* aContent, ViewID* aOutViewId) { void* scrollIdProperty = aContent->GetProperty(nsGkAtoms::RemoteId); if (scrollIdProperty) { diff --git a/layout/base/nsLayoutUtils.h b/layout/base/nsLayoutUtils.h index dfcc3582d1d..535622503e3 100644 --- a/layout/base/nsLayoutUtils.h +++ b/layout/base/nsLayoutUtils.h @@ -85,7 +85,7 @@ public: * Finds previously assigned ViewID for the given content element, if any. * Returns whether a ViewID was previously assigned. */ - static bool FindIDFor(nsIContent* aContent, ViewID* aOutViewId); + static bool FindIDFor(const nsIContent* aContent, ViewID* aOutViewId); /** * Finds previously assigned or generates a unique ViewID for the given