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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp

Issue 1996213002: Add a tuple of name, local name for hashing custom element definitions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bring patch to head. Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/custom/CustomElementDescriptorTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp
index 6163dced4530d47532ca1639222c3e9ac9f85fd2..3478c6b4cf5f6f23811b1f505bae7a320310c749 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementsRegistry.cpp
@@ -130,7 +130,10 @@ void CustomElementsRegistry::define(ScriptState* scriptState,
Id id = m_definitions.size();
v8::Local<v8::Value> idValue = v8::Integer::NewFromUnsigned(isolate, id);
- m_definitions.append(new CustomElementDefinition(this, id, name));
+ m_definitions.append(new CustomElementDefinition(
+ this,
+ id,
+ CustomElementDescriptor(name, name)));
// This map is stored in a hidden reference from the
// CustomElementsRegistry wrapper.
v8::Local<v8::Map> map = idMap(scriptState);
« no previous file with comments | « third_party/WebKit/Source/core/dom/custom/CustomElementDescriptorTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698