| Index: sky/engine/core/dom/Node.cpp
|
| diff --git a/sky/engine/core/dom/Node.cpp b/sky/engine/core/dom/Node.cpp
|
| index 3c6739b6f9983a021a585eb02bbe53bea68bdec2..e56d01eca8cf877500002a04d241c5a7e5436865 100644
|
| --- a/sky/engine/core/dom/Node.cpp
|
| +++ b/sky/engine/core/dom/Node.cpp
|
| @@ -1659,19 +1659,17 @@ bool Node::isUserActionElementFocused() const
|
|
|
| void Node::setCustomElementState(CustomElementState newState)
|
| {
|
| - CustomElementState oldState = customElementState();
|
| -
|
| switch (newState) {
|
| case NotCustomElement:
|
| ASSERT_NOT_REACHED(); // Everything starts in this state
|
| return;
|
|
|
| case WaitingForUpgrade:
|
| - ASSERT(NotCustomElement == oldState);
|
| + ASSERT(NotCustomElement == customElementState());
|
| break;
|
|
|
| case Upgraded:
|
| - ASSERT(WaitingForUpgrade == oldState);
|
| + ASSERT(WaitingForUpgrade == customElementState());
|
| break;
|
| }
|
|
|
|
|