Bug 937843 - Make an argument to nsLayoutUtils::FindIDFor const. r=tn

This commit is contained in:
Kartikaya Gupta 2013-11-13 13:22:24 -05:00
parent cd1b5c727f
commit 5a524e26f6
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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