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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentInit.cpp

Issue 1914923002: Rename all existing custom element classes as V0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CustomElementV0 -> V0CustomElement Created 4 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 | « third_party/WebKit/Source/core/dom/DocumentInit.h ('k') | third_party/WebKit/Source/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/DocumentInit.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentInit.cpp b/third_party/WebKit/Source/core/dom/DocumentInit.cpp
index eceaecddc58d75857cab49eefc8cd389b7d6900b..012522200ac30d42579724206ed08b28b5684ab2 100644
--- a/third_party/WebKit/Source/core/dom/DocumentInit.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentInit.cpp
@@ -28,7 +28,7 @@
#include "core/dom/DocumentInit.h"
#include "core/dom/Document.h"
-#include "core/dom/custom/CustomElementRegistrationContext.h"
+#include "core/dom/custom/V0CustomElementRegistrationContext.h"
#include "core/frame/LocalFrame.h"
#include "core/html/HTMLFrameOwnerElement.h"
#include "core/html/imports/HTMLImportsController.h"
@@ -148,7 +148,7 @@ KURL DocumentInit::parentBaseURL() const
return m_parent->baseURL();
}
-DocumentInit& DocumentInit::withRegistrationContext(CustomElementRegistrationContext* registrationContext)
+DocumentInit& DocumentInit::withRegistrationContext(V0CustomElementRegistrationContext* registrationContext)
{
DCHECK(!m_createNewRegistrationContext);
DCHECK(!m_registrationContext);
@@ -164,13 +164,13 @@ DocumentInit& DocumentInit::withNewRegistrationContext()
return *this;
}
-CustomElementRegistrationContext* DocumentInit::registrationContext(Document* document) const
+V0CustomElementRegistrationContext* DocumentInit::registrationContext(Document* document) const
{
if (!document->isHTMLDocument() && !document->isXHTMLDocument())
return nullptr;
if (m_createNewRegistrationContext)
- return CustomElementRegistrationContext::create();
+ return V0CustomElementRegistrationContext::create();
return m_registrationContext.get();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentInit.h ('k') | third_party/WebKit/Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698