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

Unified Diff: third_party/WebKit/Source/core/dom/Node.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/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 11e0f7a62d04e203ec3c88c9543bd5e6dd4cc10b..7018a3bc473fb3124ca0479161f0bceaf3d82b9b 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -2303,29 +2303,29 @@ bool Node::isUserActionElementFocused() const
return document().userActionElements().isFocused(this);
}
-void Node::setCustomElementState(CustomElementState newState)
+void Node::setV0CustomElementState(V0CustomElementState newState)
{
- CustomElementState oldState = getCustomElementState();
+ V0CustomElementState oldState = getV0CustomElementState();
switch (newState) {
- case NotCustomElement:
+ case V0NotCustomElement:
ASSERT_NOT_REACHED(); // Everything starts in this state
return;
- case WaitingForUpgrade:
- DCHECK_EQ(NotCustomElement, oldState);
+ case V0WaitingForUpgrade:
+ DCHECK_EQ(V0NotCustomElement, oldState);
break;
- case Upgraded:
- DCHECK_EQ(WaitingForUpgrade, oldState);
+ case V0Upgraded:
+ DCHECK_EQ(V0WaitingForUpgrade, oldState);
break;
}
DCHECK(isHTMLElement() || isSVGElement());
- setFlag(CustomElementFlag);
- setFlag(newState == Upgraded, CustomElementUpgradedFlag);
+ setFlag(V0CustomElementFlag);
+ setFlag(newState == V0Upgraded, V0CustomElementUpgradedFlag);
- if (oldState == NotCustomElement || newState == Upgraded)
+ if (oldState == V0NotCustomElement || newState == V0Upgraded)
toElement(this)->pseudoStateChanged(CSSSelector::PseudoUnresolved);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.h ('k') | third_party/WebKit/Source/core/dom/custom/V0CustomElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698