summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-05 10:30:04 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:23 -0500
commitca596f2823f90c1416db8a317ac8eb22c9119bbf (patch)
treed227d4d7ac562d9898df2c1c7ea5a6cd4611f232
parent3d44a0b7f022b9eb9c72042da2e76ac24278f496 (diff)
downloadUXP-ca596f2823f90c1416db8a317ac8eb22c9119bbf.tar
UXP-ca596f2823f90c1416db8a317ac8eb22c9119bbf.tar.gz
UXP-ca596f2823f90c1416db8a317ac8eb22c9119bbf.tar.lz
UXP-ca596f2823f90c1416db8a317ac8eb22c9119bbf.tar.xz
UXP-ca596f2823f90c1416db8a317ac8eb22c9119bbf.zip
Bug 1299363 - Part 3: Remove unused argument in UpgradeCandidates.
Tag UXP Issue #1344
-rw-r--r--dom/base/CustomElementRegistry.cpp5
-rw-r--r--dom/base/CustomElementRegistry.h3
2 files changed, 3 insertions, 5 deletions
diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp
index bd26e4ff3..82f15f683 100644
--- a/dom/base/CustomElementRegistry.cpp
+++ b/dom/base/CustomElementRegistry.cpp
@@ -408,8 +408,7 @@ CustomElementRegistry::GetCustomPrototype(nsIAtom* aAtom,
}
void
-CustomElementRegistry::UpgradeCandidates(JSContext* aCx,
- nsIAtom* aKey,
+CustomElementRegistry::UpgradeCandidates(nsIAtom* aKey,
CustomElementDefinition* aDefinition,
ErrorResult& aRv)
{
@@ -719,7 +718,7 @@ CustomElementRegistry::Define(const nsAString& aName,
* 13. 14. 15. Upgrade candidates
*/
// TODO: Bug 1299363 - Implement custom element v1 upgrade algorithm
- UpgradeCandidates(cx, nameAtom, definition, aRv);
+ UpgradeCandidates(nameAtom, definition, aRv);
/**
* 16. If this CustomElementRegistry's when-defined promise map contains an
diff --git a/dom/base/CustomElementRegistry.h b/dom/base/CustomElementRegistry.h
index 84a7fe3ac..db208bf71 100644
--- a/dom/base/CustomElementRegistry.h
+++ b/dom/base/CustomElementRegistry.h
@@ -346,8 +346,7 @@ private:
void RegisterUnresolvedElement(Element* aElement,
nsIAtom* aTypeName = nullptr);
- void UpgradeCandidates(JSContext* aCx,
- nsIAtom* aKey,
+ void UpgradeCandidates(nsIAtom* aKey,
CustomElementDefinition* aDefinition,
ErrorResult& aRv);