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

Unified Diff: Source/core/dom/NodeRenderingTraversal.h

Issue 482873002: Simplify NodeRenderingTraversal::parentElement() a bit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « 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/NodeRenderingTraversal.h
diff --git a/Source/core/dom/NodeRenderingTraversal.h b/Source/core/dom/NodeRenderingTraversal.h
index 33ec60d8378315f8fbfed9fa03443b13546d6363..d4dc7eb89382d085562329926ad9929d300b9da6 100644
--- a/Source/core/dom/NodeRenderingTraversal.h
+++ b/Source/core/dom/NodeRenderingTraversal.h
@@ -67,8 +67,7 @@ RenderObject* nextInTopLayer(const Element*);
inline Element* parentElement(const Node* node)
{
- ParentDetails unusedDetails;
- Node* found = parent(node, &unusedDetails);
+ ContainerNode* found = parent(node);
return found && found->isElementNode() ? toElement(found) : 0;
}
« 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