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

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

Issue 417093006: Have Node::enclosingLinkEventParentOrSelf() return an Element (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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 | « no previous file | 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-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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 // Knows about all kinds of hosts. 289 // Knows about all kinds of hosts.
290 ContainerNode* parentOrShadowHostOrTemplateHostNode() const; 290 ContainerNode* parentOrShadowHostOrTemplateHostNode() const;
291 291
292 // 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.
293 ContainerNode* nonShadowBoundaryParentNode() const; 293 ContainerNode* nonShadowBoundaryParentNode() const;
294 294
295 bool selfOrAncestorHasDirAutoAttribute() const { return getFlag(SelfOrAncest orHasDirAutoFlag); } 295 bool selfOrAncestorHasDirAutoAttribute() const { return getFlag(SelfOrAncest orHasDirAutoFlag); }
296 void setSelfOrAncestorHasDirAutoAttribute(bool flag) { setFlag(flag, SelfOrA ncestorHasDirAutoFlag); } 296 void setSelfOrAncestorHasDirAutoAttribute(bool flag) { setFlag(flag, SelfOrA ncestorHasDirAutoFlag); }
297 297
298 // Returns the enclosing event parent node (or self) that, when clicked, wou ld trigger a navigation. 298 // Returns the enclosing event parent Element (or self) that, when clicked, would trigger a navigation.
299 Node* enclosingLinkEventParentOrSelf(); 299 Element* enclosingLinkEventParentOrSelf();
300 300
301 // These low-level calls give the caller responsibility for maintaining the integrity of the tree. 301 // These low-level calls give the caller responsibility for maintaining the integrity of the tree.
302 void setPreviousSibling(Node* previous) { m_previous = previous; } 302 void setPreviousSibling(Node* previous) { m_previous = previous; }
303 void setNextSibling(Node* next) { m_next = next; } 303 void setNextSibling(Node* next) { m_next = next; }
304 304
305 virtual bool canContainRangeEndPoint() const { return false; } 305 virtual bool canContainRangeEndPoint() const { return false; }
306 306
307 // FIXME: These two functions belong in editing -- "atomic node" is an editi ng concept. 307 // FIXME: These two functions belong in editing -- "atomic node" is an editi ng concept.
308 Node* previousNodeConsideringAtomicNodes() const; 308 Node* previousNodeConsideringAtomicNodes() const;
309 Node* nextNodeConsideringAtomicNodes() const; 309 Node* nextNodeConsideringAtomicNodes() const;
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 } // namespace blink 881 } // namespace blink
882 882
883 #ifndef NDEBUG 883 #ifndef NDEBUG
884 // Outside the WebCore namespace for ease of invocation from gdb. 884 // Outside the WebCore namespace for ease of invocation from gdb.
885 void showNode(const blink::Node*); 885 void showNode(const blink::Node*);
886 void showTree(const blink::Node*); 886 void showTree(const blink::Node*);
887 void showNodePath(const blink::Node*); 887 void showNodePath(const blink::Node*);
888 #endif 888 #endif
889 889
890 #endif 890 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698