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

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

Issue 410733004: Stop passing dummy ParentDetails to NodeRenderingTraversal::parent() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/css/resolver/StyleResolver.cpp ('k') | 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 455479be8165d7c6e55e5b3be73dd939eb6097f5..33ec60d8378315f8fbfed9fa03443b13546d6363 100644
--- a/Source/core/dom/NodeRenderingTraversal.h
+++ b/Source/core/dom/NodeRenderingTraversal.h
@@ -55,8 +55,7 @@ private:
const InsertionPoint* m_insertionPoint;
};
-ContainerNode* parent(const Node*);
-ContainerNode* parent(const Node*, ParentDetails*);
+ContainerNode* parent(const Node*, ParentDetails* = 0);
bool contains(const ContainerNode*, const Node*);
Node* nextSibling(const Node*);
Node* previousSibling(const Node*);
@@ -66,12 +65,6 @@ RenderObject* nextSiblingRenderer(const Node*);
RenderObject* previousSiblingRenderer(const Node*);
RenderObject* nextInTopLayer(const Element*);
-inline ContainerNode* parent(const Node* node)
-{
- ParentDetails unusedDetails;
- return parent(node, &unusedDetails);
-}
-
inline Element* parentElement(const Node* node)
{
ParentDetails unusedDetails;
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698