Bug 1443722 - Implement customElements.upgrade(), static void TryUpgrade , r=mrbkap
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Wed, 20 Jun 2018 02:14:05 +0300
changeset 479780 c14e3d00d74076f7908f4c1259ccd7e869e60a31
parent 479779 693b36bb1292c4b999c4ef8b9ed6b06256be0bca
child 479781 fcf6bdd122add51175a57fdf4953aec895f18bfb
push id1757
push userffxbld-merge
push dateFri, 24 Aug 2018 17:02:43 +0000
treeherdermozilla-release@736023aebdb1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs1443722
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1443722 - Implement customElements.upgrade(), static void TryUpgrade , r=mrbkap
dom/base/CustomElementRegistry.cpp
--- a/dom/base/CustomElementRegistry.cpp
+++ b/dom/base/CustomElementRegistry.cpp
@@ -976,17 +976,17 @@ CustomElementRegistry::SetElementCreatio
     return;
   }
 
   RefPtr<CustomElementCreationCallback> callback = &aCallback;
   mElementCreationCallbacks.Put(nameAtom, callback.forget());
   return;
 }
 
-void
+static void
 TryUpgrade(nsINode& aNode)
 {
   Element* element = aNode.IsElement() ? aNode.AsElement() : nullptr;
   if (element) {
     CustomElementData* ceData = element->GetCustomElementData();
     if (ceData) {
       NodeInfo* nodeInfo = element->NodeInfo();
       nsAtom* typeAtom = ceData->GetCustomElementType();