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

Unified Diff: Source/core/dom/Document.cpp

Issue 14626005: Upgrade elements that are created before a custom element definition is registered (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Feedback+test Created 7 years, 8 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 | « Source/core/dom/CustomElementUpgradeCandidateMap.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 19644ce4102d7ecd46e2777c36551dcc019daeb4..d2102fb38b5291c62d86df739d1290aac39d7bcb 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -31,6 +31,7 @@
#include "CSSValueKeywords.h"
#include "HTMLElementFactory.h"
#include "HTMLNames.h"
+#include "RuntimeEnabledFeatures.h"
#include "XMLNSNames.h"
#include "XMLNames.h"
#include "bindings/v8/Dictionary.h"
@@ -148,7 +149,6 @@
#include "core/page/PageConsole.h"
#include "core/page/PageGroup.h"
#include "core/page/PointerLockController.h"
-#include "RuntimeEnabledFeatures.h"
#include "core/page/SecurityOrigin.h"
#include "core/page/SecurityPolicy.h"
#include "core/page/Settings.h"
@@ -782,7 +782,7 @@ PassRefPtr<Element> Document::createElement(const AtomicString& localName, const
if (!typeExtension.isNull()) {
setTypeExtension(element.get(), typeExtension);
- ensureCustomElementRegistry()->didGiveTypeExtension(element.get());
+ ensureCustomElementRegistry()->didGiveTypeExtension(element.get(), typeExtension);
}
return element;
@@ -808,7 +808,7 @@ PassRefPtr<Element> Document::createElementNS(const AtomicString& namespaceURI,
if (!typeExtension.isNull()) {
setTypeExtension(element.get(), typeExtension);
- ensureCustomElementRegistry()->didGiveTypeExtension(element.get());
+ ensureCustomElementRegistry()->didGiveTypeExtension(element.get(), typeExtension);
}
return element;
« no previous file with comments | « Source/core/dom/CustomElementUpgradeCandidateMap.cpp ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698