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

Unified Diff: Source/core/rendering/RenderMenuList.cpp

Issue 23717008: Remove useless null checks from Node::document() call sites (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « Source/core/page/FocusController.cpp ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/page/FocusController.cpp ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698