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

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

Issue 885713004: Remove CustomElementDescriptor. (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/CustomElementRegistrationContext.cpp
diff --git a/sky/engine/core/dom/custom/CustomElementRegistrationContext.cpp b/sky/engine/core/dom/custom/CustomElementRegistrationContext.cpp
index 2ea7da1947e0b560965bee4429101db2a6d9f9d1..d0883cf3a57ea23a458711d525f6fc0d42482d7f 100644
--- a/sky/engine/core/dom/custom/CustomElementRegistrationContext.cpp
+++ b/sky/engine/core/dom/custom/CustomElementRegistrationContext.cpp
@@ -64,15 +64,13 @@ PassRefPtr<Element> CustomElementRegistrationContext::createCustomTagElement(Doc
void CustomElementRegistrationContext::resolveOrScheduleResolution(Element* element)
{
- CustomElementDescriptor descriptor(element->localName());
ASSERT(element->customElementState() == Element::WaitingForUpgrade);
-
- CustomElementScheduler::resolveOrScheduleResolution(this, element, descriptor);
+ CustomElementScheduler::resolveOrScheduleResolution(this, element);
}
-void CustomElementRegistrationContext::resolve(Element* element, const CustomElementDescriptor& descriptor)
+void CustomElementRegistrationContext::resolve(Element* element)
{
- if (CustomElementDefinition* definition = m_registry.find(descriptor))
+ if (CustomElementDefinition* definition = m_registry.find(element->localName()))
CustomElement::define(element, definition);
}
« no previous file with comments | « sky/engine/core/dom/custom/CustomElementRegistrationContext.h ('k') | sky/engine/core/dom/custom/CustomElementRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698