mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 02:14:43 +00:00
Bug 937843 - Make an argument to nsLayoutUtils::FindIDFor const. r=tn
This commit is contained in:
parent
cd1b5c727f
commit
5a524e26f6
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user