Index: third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp |
diff --git a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp |
index f68a509f2c66ca3a4cdde296a33d6417eaf63f96..382a94d3ac83141f084f5618ab3f5a663b45c94b 100644 |
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp |
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp |
@@ -100,8 +100,6 @@ bool DocumentLifecycle::canAdvanceTo(LifecycleState nextState) const |
case Inactive: |
if (nextState == StyleClean) |
return true; |
- if (nextState == Disposed) |
- return true; |
break; |
case VisualUpdatePending: |
if (nextState == InPreLayout) |
@@ -239,11 +237,7 @@ bool DocumentLifecycle::canAdvanceTo(LifecycleState nextState) const |
case Stopping: |
return nextState == Stopped; |
case Stopped: |
- return nextState == Disposed; |
- case Disposed: |
- // FIXME: We can dispose a document multiple times. This seems wrong. |
- // See https://code.google.com/p/chromium/issues/detail?id=301668. |
- return nextState == Disposed; |
+ return false; |
} |
return false; |
} |
@@ -320,7 +314,6 @@ const char* DocumentLifecycle::stateAsDebugString(const LifecycleState state) |
DEBUG_STRING_CASE(PaintClean); |
DEBUG_STRING_CASE(Stopping); |
DEBUG_STRING_CASE(Stopped); |
- DEBUG_STRING_CASE(Disposed); |
} |
ASSERT_NOT_REACHED(); |