Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Unified Diff: sky/engine/core/dom/custom/CustomElement.cpp

Issue 838463004: Remove embedder custom elements. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « sky/engine/core/dom/custom/CustomElement.h ('k') | sky/engine/core/dom/custom/CustomElementRegistrationContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698