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

Unified Diff: sky/engine/core/dom/Node.cpp

Issue 854803003: Fix the build. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698