| Index: Source/core/dom/CustomElementUpgradeCandidateMap.h
|
| diff --git a/Source/core/dom/CustomElementUpgradeCandidateMap.h b/Source/core/dom/CustomElementUpgradeCandidateMap.h
|
| index 84d3d9186c13e27ccb19e3dca35b6d30ee5dd1c9..851bce27eed224fcf8f5a7e81e2b11b15e4d80a7 100644
|
| --- a/Source/core/dom/CustomElementUpgradeCandidateMap.h
|
| +++ b/Source/core/dom/CustomElementUpgradeCandidateMap.h
|
| @@ -36,6 +36,7 @@
|
| #include "wtf/HashMap.h"
|
| #include "wtf/HashSet.h"
|
| #include "wtf/Noncopyable.h"
|
| +#include "wtf/Vector.h"
|
| #include "wtf/text/AtomicString.h"
|
| #include "wtf/text/AtomicStringHash.h"
|
|
|
| @@ -46,21 +47,19 @@ class CustomElementUpgradeCandidateMap {
|
| public:
|
| CustomElementUpgradeCandidateMap() { }
|
|
|
| - typedef HashSet<Element*> ElementSet;
|
| -
|
| void add(CustomElementDefinition::CustomElementKind, const AtomicString& type, Element*);
|
| - bool contains(Element*) const;
|
| void remove(Element*);
|
| - ElementSet takeUpgradeCandidatesFor(CustomElementDefinition*);
|
| + Vector<Element*> takeUpgradeCandidatesFor(CustomElementDefinition*);
|
|
|
| private:
|
| typedef std::pair<CustomElementDefinition::CustomElementKind, AtomicString> RequiredDefinition;
|
| - typedef HashMap<Element*, RequiredDefinition> UnresolvedElementMap;
|
| + typedef HashMap<Element*, RequiredDefinition> UpgradeCandidateMap;
|
| + typedef HashSet<Element*> ElementSet;
|
| typedef HashMap<AtomicString, ElementSet> UnresolvedDefinitionMap;
|
|
|
| bool matches(CustomElementDefinition*, Element*);
|
|
|
| - UnresolvedElementMap m_unresolvedElements;
|
| + UpgradeCandidateMap m_upgradeCandidates;
|
| UnresolvedDefinitionMap m_unresolvedDefinitions;
|
| };
|
|
|
|
|