Index: Source/core/rendering/RenderMenuList.cpp |
diff --git a/Source/core/rendering/RenderMenuList.cpp b/Source/core/rendering/RenderMenuList.cpp |
index f614d032aeb2959a8b4ff72756794c8ef1a67399..d7710c39dcd35685c43ca140e8786e1a8de2edf0 100644 |
--- a/Source/core/rendering/RenderMenuList.cpp |
+++ b/Source/core/rendering/RenderMenuList.cpp |
@@ -348,7 +348,7 @@ void RenderMenuList::valueChanged(unsigned listIndex, bool fireOnChange) |
// Check to ensure a page navigation has not occurred while |
// the popup was up. |
Document* doc = toElement(node())->document(); |
- if (!doc || doc != doc->frame()->document()) |
+ if (doc != doc->frame()->document()) |
return; |
HTMLSelectElement* select = selectElement(); |