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

Unified Diff: third_party/WebKit/Source/core/dom/Node.h

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/Element.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.h
diff --git a/third_party/WebKit/Source/core/dom/Node.h b/third_party/WebKit/Source/core/dom/Node.h
index fd9fb760361d7aca9e9af0cb081449f77477bd14..afffe79fcdbc94363f4de9c79bbcb6cc9cff3770 100644
--- a/third_party/WebKit/Source/core/dom/Node.h
+++ b/third_party/WebKit/Source/core/dom/Node.h
@@ -244,19 +244,19 @@ public:
bool isFirstLetterPseudoElement() const { return getPseudoId() == PseudoIdFirstLetter; }
virtual PseudoId getPseudoId() const { return PseudoIdNone; }
- bool isCustomElement() const { return getFlag(CustomElementFlag); }
- enum CustomElementState {
- NotCustomElement = 0,
- WaitingForUpgrade = 1 << 0,
- Upgraded = 1 << 1
+ bool isV0CustomElement() const { return getFlag(V0CustomElementFlag); }
+ enum V0CustomElementState {
+ V0NotCustomElement = 0,
+ V0WaitingForUpgrade = 1 << 0,
+ V0Upgraded = 1 << 1
};
- CustomElementState getCustomElementState() const
+ V0CustomElementState getV0CustomElementState() const
{
- return isCustomElement()
- ? (getFlag(CustomElementUpgradedFlag) ? Upgraded : WaitingForUpgrade)
- : NotCustomElement;
+ return isV0CustomElement()
+ ? (getFlag(V0CustomElementUpgradedFlag) ? V0Upgraded : V0WaitingForUpgrade)
+ : V0NotCustomElement;
}
- void setCustomElementState(CustomElementState newState);
+ void setV0CustomElementState(V0CustomElementState newState);
virtual bool isMediaControlElement() const { return false; }
virtual bool isMediaControls() const { return false; }
@@ -713,8 +713,8 @@ private:
ChildNeedsStyleRecalcFlag = 1 << 18,
StyleChangeMask = 1 << nodeStyleChangeShift | 1 << (nodeStyleChangeShift + 1),
- CustomElementFlag = 1 << 21,
- CustomElementUpgradedFlag = 1 << 22,
+ V0CustomElementFlag = 1 << 21,
+ V0CustomElementUpgradedFlag = 1 << 22,
HasNameOrIsEditingTextFlag = 1 << 23,
HasWeakReferencesFlag = 1 << 24,
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698