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

Side by Side Diff: Source/core/dom/Node.h

Issue 425383002: Move highestAncestorOrSelf() from Node to NodeTraversal (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ContainerNode.h ('k') | Source/core/dom/NodeTraversal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 ShadowRoot* containingShadowRoot() const; 278 ShadowRoot* containingShadowRoot() const;
279 ShadowRoot* youngestShadowRoot() const; 279 ShadowRoot* youngestShadowRoot() const;
280 280
281 // Returns 0, a child of ShadowRoot, or a legacy shadow root. 281 // Returns 0, a child of ShadowRoot, or a legacy shadow root.
282 Node* nonBoundaryShadowTreeRootNode(); 282 Node* nonBoundaryShadowTreeRootNode();
283 283
284 // Node's parent, shadow tree host. 284 // Node's parent, shadow tree host.
285 ContainerNode* parentOrShadowHostNode() const; 285 ContainerNode* parentOrShadowHostNode() const;
286 Element* parentOrShadowHostElement() const; 286 Element* parentOrShadowHostElement() const;
287 void setParentOrShadowHostNode(ContainerNode*); 287 void setParentOrShadowHostNode(ContainerNode*);
288 Node& highestAncestorOrSelf() const;
289 288
290 // Knows about all kinds of hosts. 289 // Knows about all kinds of hosts.
291 ContainerNode* parentOrShadowHostOrTemplateHostNode() const; 290 ContainerNode* parentOrShadowHostOrTemplateHostNode() const;
292 291
293 // Returns the parent node, but 0 if the parent node is a ShadowRoot. 292 // Returns the parent node, but 0 if the parent node is a ShadowRoot.
294 ContainerNode* nonShadowBoundaryParentNode() const; 293 ContainerNode* nonShadowBoundaryParentNode() const;
295 294
296 bool selfOrAncestorHasDirAutoAttribute() const { return getFlag(SelfOrAncest orHasDirAutoFlag); } 295 bool selfOrAncestorHasDirAutoAttribute() const { return getFlag(SelfOrAncest orHasDirAutoFlag); }
297 void setSelfOrAncestorHasDirAutoAttribute(bool flag) { setFlag(flag, SelfOrA ncestorHasDirAutoFlag); } 296 void setSelfOrAncestorHasDirAutoAttribute(bool flag) { setFlag(flag, SelfOrA ncestorHasDirAutoFlag); }
298 297
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 } // namespace blink 883 } // namespace blink
885 884
886 #ifndef NDEBUG 885 #ifndef NDEBUG
887 // Outside the WebCore namespace for ease of invocation from gdb. 886 // Outside the WebCore namespace for ease of invocation from gdb.
888 void showNode(const blink::Node*); 887 void showNode(const blink::Node*);
889 void showTree(const blink::Node*); 888 void showTree(const blink::Node*);
890 void showNodePath(const blink::Node*); 889 void showNodePath(const blink::Node*);
891 #endif 890 #endif
892 891
893 #endif 892 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ContainerNode.h ('k') | Source/core/dom/NodeTraversal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698