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

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

Issue 420323002: Move Node::lastDescendantOrSelf() to NodeTraversal and rename to lastWithinOrSelf() (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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 bool isSameNode(Node* other) const { return this == other; } 213 bool isSameNode(Node* other) const { return this == other; }
214 bool isEqualNode(Node*) const; 214 bool isEqualNode(Node*) const;
215 bool isDefaultNamespace(const AtomicString& namespaceURI) const; 215 bool isDefaultNamespace(const AtomicString& namespaceURI) const;
216 const AtomicString& lookupPrefix(const AtomicString& namespaceURI) const; 216 const AtomicString& lookupPrefix(const AtomicString& namespaceURI) const;
217 const AtomicString& lookupNamespaceURI(const String& prefix) const; 217 const AtomicString& lookupNamespaceURI(const String& prefix) const;
218 218
219 String textContent(bool convertBRsToNewlines = false) const; 219 String textContent(bool convertBRsToNewlines = false) const;
220 void setTextContent(const String&); 220 void setTextContent(const String&);
221 221
222 Node& lastDescendantOrSelf() const;
223
224 // Other methods (not part of DOM) 222 // Other methods (not part of DOM)
225 223
226 bool isElementNode() const { return getFlag(IsElementFlag); } 224 bool isElementNode() const { return getFlag(IsElementFlag); }
227 bool isContainerNode() const { return getFlag(IsContainerFlag); } 225 bool isContainerNode() const { return getFlag(IsContainerFlag); }
228 bool isTextNode() const { return getFlag(IsTextFlag); } 226 bool isTextNode() const { return getFlag(IsTextFlag); }
229 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } 227 bool isHTMLElement() const { return getFlag(IsHTMLFlag); }
230 bool isSVGElement() const { return getFlag(IsSVGFlag); } 228 bool isSVGElement() const { return getFlag(IsSVGFlag); }
231 229
232 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; } 230 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; }
233 bool isBeforePseudoElement() const { return pseudoId() == BEFORE; } 231 bool isBeforePseudoElement() const { return pseudoId() == BEFORE; }
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 } // namespace blink 894 } // namespace blink
897 895
898 #ifndef NDEBUG 896 #ifndef NDEBUG
899 // Outside the WebCore namespace for ease of invocation from gdb. 897 // Outside the WebCore namespace for ease of invocation from gdb.
900 void showNode(const blink::Node*); 898 void showNode(const blink::Node*);
901 void showTree(const blink::Node*); 899 void showTree(const blink::Node*);
902 void showNodePath(const blink::Node*); 900 void showNodePath(const blink::Node*);
903 #endif 901 #endif
904 902
905 #endif 903 #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