| Index: sky/engine/core/dom/custom/CustomElement.cpp
|
| diff --git a/sky/engine/core/dom/custom/CustomElement.cpp b/sky/engine/core/dom/custom/CustomElement.cpp
|
| index 440c7b3aaac591d6bd131bd03ad102b2a6f28b18..a8ccb84e492b6c28700e42fb71e0c0144c690dc8 100644
|
| --- a/sky/engine/core/dom/custom/CustomElement.cpp
|
| +++ b/sky/engine/core/dom/custom/CustomElement.cpp
|
| @@ -49,26 +49,9 @@ void CustomElement::didFinishLoadingImport(Document& master)
|
| master.customElementMicrotaskRunQueue()->requestDispatchIfNeeded();
|
| }
|
|
|
| -Vector<AtomicString>& CustomElement::embedderCustomElementNames()
|
| +bool CustomElement::isValidName(const AtomicString& name)
|
| {
|
| - DEFINE_STATIC_LOCAL(Vector<AtomicString>, names, ());
|
| - return names;
|
| -}
|
| -
|
| -void CustomElement::addEmbedderCustomElementName(const AtomicString& name)
|
| -{
|
| - AtomicString lower = name.lower();
|
| - if (isValidName(lower, EmbedderNames))
|
| - return;
|
| - embedderCustomElementNames().append(lower);
|
| -}
|
| -
|
| -bool CustomElement::isValidName(const AtomicString& name, NameSet validNames)
|
| -{
|
| - if ((validNames & EmbedderNames) && kNotFound != embedderCustomElementNames().find(name))
|
| - return Document::isValidName(name);
|
| -
|
| - if ((validNames & StandardNames) && kNotFound != name.find('-'))
|
| + if (kNotFound != name.find('-'))
|
| return Document::isValidName(name.string());
|
|
|
| return false;
|
|
|