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

Unified Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistrationContext.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/custom/V0CustomElement.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/V0CustomElementRegistrationContext.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistrationContext.cpp b/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistrationContext.cpp
index bcdbdd25b036e42c4a7541a180ccef7558ddcc1d..771316f70f28b159362a12669477cea2912f02ce 100644
--- a/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistrationContext.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementRegistrationContext.cpp
@@ -81,7 +81,7 @@ Element* V0CustomElementRegistrationContext::createCustomTagElement(Document& do
return Element::create(tagName, &document);
}
- element->setCustomElementState(Element::WaitingForUpgrade);
+ element->setV0CustomElementState(Element::V0WaitingForUpgrade);
resolveOrScheduleResolution(element, nullAtom);
return element;
}
@@ -101,7 +101,7 @@ void V0CustomElementRegistrationContext::resolveOrScheduleResolution(Element* el
DCHECK(!type.isNull());
V0CustomElementDescriptor descriptor(type, element->namespaceURI(), element->localName());
- DCHECK_EQ(element->getCustomElementState(), Element::WaitingForUpgrade);
+ DCHECK_EQ(element->getV0CustomElementState(), Element::V0WaitingForUpgrade);
V0CustomElementScheduler::resolveOrScheduleResolution(this, element, descriptor);
}
@@ -112,7 +112,7 @@ void V0CustomElementRegistrationContext::resolve(Element* element, const V0Custo
if (definition) {
V0CustomElement::define(element, definition);
} else {
- DCHECK_EQ(element->getCustomElementState(), Element::WaitingForUpgrade);
+ DCHECK_EQ(element->getV0CustomElementState(), Element::V0WaitingForUpgrade);
m_candidates->add(descriptor, element);
}
}
@@ -134,7 +134,7 @@ void V0CustomElementRegistrationContext::setTypeExtension(Element* element, cons
if (!context)
return;
- if (element->isCustomElement()) {
+ if (element->isV0CustomElement()) {
// This can happen if:
// 1. The element has a custom tag, which takes precedence over
// type extensions.
@@ -149,7 +149,7 @@ void V0CustomElementRegistrationContext::setTypeExtension(Element* element, cons
if (!V0CustomElement::isValidName(type))
return;
- element->setCustomElementState(Element::WaitingForUpgrade);
+ element->setV0CustomElementState(Element::V0WaitingForUpgrade);
context->didGiveTypeExtension(element, element->document().convertLocalName(type));
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/custom/V0CustomElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698