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

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

Issue 2277713002: Rename CustomElementsRegistry to CustomElementRegistry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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: third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
index 2f6f6bf2f21b12d2ecf89ea0bd169ebb4c49c894..83ea081e5c28ee8f238f89efccea556ac7a1932e 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp
@@ -9,7 +9,7 @@
#include "core/dom/custom/CEReactionsScope.h"
#include "core/dom/custom/CustomElementDefinition.h"
#include "core/dom/custom/CustomElementReactionStack.h"
-#include "core/dom/custom/CustomElementsRegistry.h"
+#include "core/dom/custom/CustomElementRegistry.h"
#include "core/dom/custom/V0CustomElement.h"
#include "core/dom/custom/V0CustomElementRegistrationContext.h"
#include "core/frame/LocalDOMWindow.h"
@@ -20,12 +20,12 @@
namespace blink {
-CustomElementsRegistry* CustomElement::registry(const Element& element)
+CustomElementRegistry* CustomElement::registry(const Element& element)
{
return registry(element.document());
}
-CustomElementsRegistry* CustomElement::registry(const Document& document)
+CustomElementRegistry* CustomElement::registry(const Document& document)
{
if (LocalDOMWindow* window = document.executingWindow())
return window->customElements();
@@ -93,7 +93,7 @@ bool CustomElement::shouldCreateCustomElement(const QualifiedName& tagName)
static CustomElementDefinition* definitionForName(const Document& document, const QualifiedName& name)
{
- if (CustomElementsRegistry* registry = CustomElement::registry(document))
+ if (CustomElementRegistry* registry = CustomElement::registry(document))
return registry->definitionForName(name.localName());
return nullptr;
}
@@ -238,7 +238,7 @@ void CustomElement::tryToUpgrade(Element* element)
DCHECK_EQ(element->getCustomElementState(), CustomElementState::Undefined);
- CustomElementsRegistry* registry = CustomElement::registry(*element);
+ CustomElementRegistry* registry = CustomElement::registry(*element);
if (!registry)
return;
if (CustomElementDefinition* definition = registry->definitionForName(element->localName()))

Powered by Google App Engine
This is Rietveld 408576698