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

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

Issue 15652006: Let HTMLTablePartElement::findParentTable() about come across shadow boundary. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated to use NodeRenderingTraversal Created 7 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
Index: Source/core/dom/NodeRenderingTraversal.h
diff --git a/Source/core/dom/NodeRenderingTraversal.h b/Source/core/dom/NodeRenderingTraversal.h
index 6fb020d33fac98f566ce12ace2ae9dfd75e086bd..23bee1db1b15f177235b8240178681967a1574ae 100644
--- a/Source/core/dom/NodeRenderingTraversal.h
+++ b/Source/core/dom/NodeRenderingTraversal.h
@@ -64,6 +64,7 @@ private:
bool m_outOfComposition;
};
+ContainerNode* parent(const Node*);
ContainerNode* parent(const Node*, ParentDetails*);
ContainerNode* parentSlow(const Node*, ParentDetails*);
Node* nextSibling(const Node*);
@@ -76,6 +77,12 @@ Node* previousInScope(const Node*);
Node* parentInScope(const Node*);
Node* lastChildInScope(const Node*);
+inline ContainerNode* parent(const Node* node)
+{
+ ParentDetails unusedDetails;
+ return parent(node, &unusedDetails);
+}
+
inline ContainerNode* parent(const Node* node, ParentDetails* details)
{
if (!node->needsShadowTreeWalker()) {

Powered by Google App Engine
This is Rietveld 408576698