| Index: Source/core/dom/Node.cpp
|
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
|
| index 59130835bd32f8038896112ec26dfcc804314a51..7462ba095b3b337f155b6c6f1b45a0471da86268 100644
|
| --- a/Source/core/dom/Node.cpp
|
| +++ b/Source/core/dom/Node.cpp
|
| @@ -2636,22 +2636,18 @@ void Node::setCustomElementState(CustomElementState newState)
|
| ASSERT_NOT_REACHED(); // Everything starts in this state
|
| return;
|
|
|
| - case WaitingForParser:
|
| - ASSERT(NotCustomElement == oldState);
|
| - break;
|
| -
|
| case WaitingForUpgrade:
|
| - ASSERT(NotCustomElement == oldState || WaitingForParser == oldState);
|
| + ASSERT(NotCustomElement == oldState);
|
| break;
|
|
|
| case Upgraded:
|
| - ASSERT(WaitingForParser == oldState || WaitingForUpgrade == oldState);
|
| + ASSERT(WaitingForUpgrade == oldState);
|
| break;
|
| }
|
|
|
| ASSERT(isHTMLElement() || isSVGElement());
|
| - setFlag(newState & 1, CustomElementWaitingForParserOrIsUpgraded);
|
| - setFlag(newState & 2, CustomElementWaitingForUpgradeOrIsUpgraded);
|
| + setFlag(CustomElement);
|
| + setFlag(newState == Upgraded, CustomElementUpgraded);
|
|
|
| if (oldState == NotCustomElement || newState == Upgraded)
|
| setNeedsStyleRecalc(); // :unresolved has changed
|
|
|