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

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

Issue 1982003002: Rename v0 custom element flags to V0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: third_party/WebKit/Source/core/dom/custom/V0CustomElement.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElement.cpp b/third_party/WebKit/Source/core/dom/custom/V0CustomElement.cpp
index 3f4683062d9459793f2bc9c6b5c44232e751014a..be36cefc99a2982f3034cec0c7b9bbb2596ecbee 100644
--- a/third_party/WebKit/Source/core/dom/custom/V0CustomElement.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElement.cpp
@@ -104,13 +104,13 @@ bool V0CustomElement::isValidName(const AtomicString& name, NameSet validNames)
void V0CustomElement::define(Element* element, V0CustomElementDefinition* definition)
{
- switch (element->getCustomElementState()) {
- case Element::NotCustomElement:
- case Element::Upgraded:
+ switch (element->getV0CustomElementState()) {
+ case Element::V0NotCustomElement:
+ case Element::V0Upgraded:
ASSERT_NOT_REACHED();
break;
- case Element::WaitingForUpgrade:
+ case Element::V0WaitingForUpgrade:
element->setCustomElementDefinition(definition);
V0CustomElementScheduler::scheduleCallback(definition->callbacks(), element, V0CustomElementLifecycleCallbacks::CreatedCallback);
break;
@@ -119,13 +119,13 @@ void V0CustomElement::define(Element* element, V0CustomElementDefinition* defini
void V0CustomElement::attributeDidChange(Element* element, const AtomicString& name, const AtomicString& oldValue, const AtomicString& newValue)
{
- DCHECK_EQ(element->getCustomElementState(), Element::Upgraded);
+ DCHECK_EQ(element->getV0CustomElementState(), Element::V0Upgraded);
V0CustomElementScheduler::scheduleAttributeChangedCallback(element->customElementDefinition()->callbacks(), element, name, oldValue, newValue);
}
void V0CustomElement::didAttach(Element* element, const Document& document)
{
- DCHECK_EQ(element->getCustomElementState(), Element::Upgraded);
+ DCHECK_EQ(element->getV0CustomElementState(), Element::V0Upgraded);
if (!document.domWindow())
return;
V0CustomElementScheduler::scheduleCallback(element->customElementDefinition()->callbacks(), element, V0CustomElementLifecycleCallbacks::AttachedCallback);
@@ -133,7 +133,7 @@ void V0CustomElement::didAttach(Element* element, const Document& document)
void V0CustomElement::didDetach(Element* element, const Document& document)
{
- DCHECK_EQ(element->getCustomElementState(), Element::Upgraded);
+ DCHECK_EQ(element->getV0CustomElementState(), Element::V0Upgraded);
if (!document.domWindow())
return;
V0CustomElementScheduler::scheduleCallback(element->customElementDefinition()->callbacks(), element, V0CustomElementLifecycleCallbacks::DetachedCallback);
@@ -141,13 +141,13 @@ void V0CustomElement::didDetach(Element* element, const Document& document)
void V0CustomElement::wasDestroyed(Element* element)
{
- switch (element->getCustomElementState()) {
- case Element::NotCustomElement:
+ switch (element->getV0CustomElementState()) {
+ case Element::V0NotCustomElement:
ASSERT_NOT_REACHED();
break;
- case Element::WaitingForUpgrade:
- case Element::Upgraded:
+ case Element::V0WaitingForUpgrade:
+ case Element::V0Upgraded:
V0CustomElementObserver::notifyElementWasDestroyed(element);
break;
}

Powered by Google App Engine
This is Rietveld 408576698