summaryrefslogtreecommitdiffstats
path: root/dom/base/CustomElementRegistry.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 07:38:16 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 07:38:16 -0400
commitf605c68f1369935026e38ad2f535608f06d50d73 (patch)
treecb1495a7bcf55c3d5e2d2bbee7503d4a0cc167e5 /dom/base/CustomElementRegistry.cpp
parent53df3a74f46fa6b5d3778f9635a1afb7522c345f (diff)
downloadUXP-f605c68f1369935026e38ad2f535608f06d50d73.tar
UXP-f605c68f1369935026e38ad2f535608f06d50d73.tar.gz
UXP-f605c68f1369935026e38ad2f535608f06d50d73.tar.lz
UXP-f605c68f1369935026e38ad2f535608f06d50d73.tar.xz
UXP-f605c68f1369935026e38ad2f535608f06d50d73.zip
Bug 1417829 - Remove unresolved pseudoclass
Tag #1375
Diffstat (limited to 'dom/base/CustomElementRegistry.cpp')
-rw-r--r--dom/base/CustomElementRegistry.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/dom/base/CustomElementRegistry.cpp b/dom/base/CustomElementRegistry.cpp
index df2201407..d9acd4d6d 100644
--- a/dom/base/CustomElementRegistry.cpp
+++ b/dom/base/CustomElementRegistry.cpp
@@ -291,7 +291,6 @@ CustomElementRegistry::RegisterUnresolvedElement(Element* aElement, nsIAtom* aTy
nsTArray<nsWeakPtr>* unresolved = mCandidatesMap.LookupOrAdd(typeName);
nsWeakPtr* elem = unresolved->AppendElement();
*elem = do_GetWeakReference(aElement);
- aElement->AddStates(NS_EVENT_STATE_UNRESOLVED);
return;
}
@@ -865,8 +864,6 @@ CustomElementRegistry::Upgrade(Element* aElement,
CustomElementDefinition* aDefinition,
ErrorResult& aRv)
{
- aElement->RemoveStates(NS_EVENT_STATE_UNRESOLVED);
-
RefPtr<CustomElementData> data = aElement->GetCustomElementData();
MOZ_ASSERT(data, "CustomElementData should exist");