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

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

Issue 48633006: Teach V8GCController how to traverse TemplateContentDocumentFragment::host (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 1 month 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/bindings/v8/V8GCController.cpp ('k') | Source/core/dom/Node.cpp » ('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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 // Returns 0, a child of ShadowRoot, or a legacy shadow root. 284 // Returns 0, a child of ShadowRoot, or a legacy shadow root.
285 Node* nonBoundaryShadowTreeRootNode(); 285 Node* nonBoundaryShadowTreeRootNode();
286 286
287 // Node's parent, shadow tree host. 287 // Node's parent, shadow tree host.
288 ContainerNode* parentOrShadowHostNode() const; 288 ContainerNode* parentOrShadowHostNode() const;
289 Element* parentOrShadowHostElement() const; 289 Element* parentOrShadowHostElement() const;
290 void setParentOrShadowHostNode(ContainerNode*); 290 void setParentOrShadowHostNode(ContainerNode*);
291 Node* highestAncestor() const; 291 Node* highestAncestor() const;
292 292
293 // Knows about all kinds of hosts.
294 ContainerNode* parentOrShadowHostOrTemplateHostNode() const;
295
293 // Use when it's guaranteed to that shadowHost is 0. 296 // Use when it's guaranteed to that shadowHost is 0.
294 ContainerNode* parentNodeGuaranteedHostFree() const; 297 ContainerNode* parentNodeGuaranteedHostFree() const;
295 // Returns the parent node, but 0 if the parent node is a ShadowRoot. 298 // Returns the parent node, but 0 if the parent node is a ShadowRoot.
296 ContainerNode* nonShadowBoundaryParentNode() const; 299 ContainerNode* nonShadowBoundaryParentNode() const;
297 300
298 bool selfOrAncestorHasDirAutoAttribute() const { return getFlag(SelfOrAncest orHasDirAutoFlag); } 301 bool selfOrAncestorHasDirAutoAttribute() const { return getFlag(SelfOrAncest orHasDirAutoFlag); }
299 void setSelfOrAncestorHasDirAutoAttribute(bool flag) { setFlag(flag, SelfOrA ncestorHasDirAutoFlag); } 302 void setSelfOrAncestorHasDirAutoAttribute(bool flag) { setFlag(flag, SelfOrA ncestorHasDirAutoFlag); }
300 303
301 // Returns the enclosing event parent node (or self) that, when clicked, wou ld trigger a navigation. 304 // Returns the enclosing event parent node (or self) that, when clicked, wou ld trigger a navigation.
302 Node* enclosingLinkEventParentOrSelf(); 305 Node* enclosingLinkEventParentOrSelf();
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 941
939 } // namespace WebCore 942 } // namespace WebCore
940 943
941 #ifndef NDEBUG 944 #ifndef NDEBUG
942 // Outside the WebCore namespace for ease of invocation from gdb. 945 // Outside the WebCore namespace for ease of invocation from gdb.
943 void showTree(const WebCore::Node*); 946 void showTree(const WebCore::Node*);
944 void showNodePath(const WebCore::Node*); 947 void showNodePath(const WebCore::Node*);
945 #endif 948 #endif
946 949
947 #endif 950 #endif
OLDNEW
« no previous file with comments | « Source/bindings/v8/V8GCController.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698