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

Unified Diff: Source/core/dom/Node.cpp

Issue 1175743002: Minor simplification in Node::previousNodeConsideringAtomicNodes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index de1d4a50790fbef964e178edb3967bd097e03f1d..aa67a5ea3fc523d3fff4d823531b89ee4e66fac3 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -1006,10 +1006,7 @@ Node* Node::previousNodeConsideringAtomicNodes() const
n = n->lastChild();
return n;
}
- if (parentNode()) {
- return parentNode();
- }
- return nullptr;
+ return parentNode();
}
Node* Node::nextNodeConsideringAtomicNodes() const
« 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