summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/html/custom/custom_element_upgrade_sorter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/html/custom/custom_element_upgrade_sorter.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/html/custom/custom_element_upgrade_sorter.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/html/custom/custom_element_upgrade_sorter.cc b/chromium/third_party/blink/renderer/core/html/custom/custom_element_upgrade_sorter.cc
index 8c2d88e956a..0e045400c20 100644
--- a/chromium/third_party/blink/renderer/core/html/custom/custom_element_upgrade_sorter.cc
+++ b/chromium/third_party/blink/renderer/core/html/custom/custom_element_upgrade_sorter.cc
@@ -15,8 +15,8 @@
namespace blink {
CustomElementUpgradeSorter::CustomElementUpgradeSorter()
- : elements_(new HeapHashSet<Member<Element>>()),
- parent_child_map_(new ParentChildMap()) {}
+ : elements_(MakeGarbageCollected<HeapHashSet<Member<Element>>>()),
+ parent_child_map_(MakeGarbageCollected<ParentChildMap>()) {}
static HTMLLinkElement* GetLinkElementForImport(const Document& import) {
if (HTMLImportLoader* loader = import.ImportLoader())
@@ -33,7 +33,7 @@ CustomElementUpgradeSorter::AddToParentChildMap(Node* parent, Node* child) {
return kParentAlreadyExistsInMap;
}
- ChildSet* child_set = new ChildSet();
+ ChildSet* child_set = MakeGarbageCollected<ChildSet>();
child_set->insert(child);
result.stored_value->value = child_set;
return kParentAddedToMap;