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

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

Issue 23009004: Process Custom Elements in post-order. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing. Created 7 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
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.h
diff --git a/Source/core/dom/Node.h b/Source/core/dom/Node.h
index 2361c8c843d20009c14e279aa0f244cff7aacaa9..641775865a3f31320ec5ce969b66f9b3dafbd06e 100644
--- a/Source/core/dom/Node.h
+++ b/Source/core/dom/Node.h
@@ -245,11 +245,12 @@ public:
enum CustomElementState {
NotCustomElement,
+ WaitingForParser,
WaitingForUpgrade,
Upgraded
};
bool isCustomElement() const { return customElementState() != NotCustomElement; }
- CustomElementState customElementState() const { return CustomElementState((getFlag(CustomElementWaitingForUpgrade) ? 1 : 0) | (getFlag(CustomElementIsUpgraded) ? 2 : 0)); }
+ CustomElementState customElementState() const { return CustomElementState((getFlag(CustomElementWaitingForParserOrIsUpgraded) ? 1 : 0) | (getFlag(CustomElementWaitingForUpgradeOrIsUpgraded) ? 2 : 0)); }
void setCustomElementState(CustomElementState newState);
virtual bool isMediaControlElement() const { return false; }
@@ -749,8 +750,8 @@ private:
NotifyRendererWithIdenticalStyles = 1 << 26,
- CustomElementWaitingForUpgrade = 1 << 27,
- CustomElementIsUpgraded = 1 << 28,
+ CustomElementWaitingForParserOrIsUpgraded = 1 << 27,
+ CustomElementWaitingForUpgradeOrIsUpgraded = 1 << 28,
ChildNeedsDistributionRecalc = 1 << 29,
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698