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

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

Issue 26678003: Remove several unused Node methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/Element.h ('k') | no next file » | 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 160
161 static bool isSupported(const String& feature, const String& version); 161 static bool isSupported(const String& feature, const String& version);
162 static void dumpStatistics(); 162 static void dumpStatistics();
163 163
164 virtual ~Node(); 164 virtual ~Node();
165 void willBeDeletedFrom(Document*); 165 void willBeDeletedFrom(Document*);
166 166
167 // DOM methods & attributes for Node 167 // DOM methods & attributes for Node
168 168
169 bool hasTagName(const QualifiedName&) const; 169 bool hasTagName(const QualifiedName&) const;
170 bool hasLocalName(const AtomicString&) const;
171 virtual String nodeName() const = 0; 170 virtual String nodeName() const = 0;
172 virtual String nodeValue() const; 171 virtual String nodeValue() const;
173 virtual void setNodeValue(const String&); 172 virtual void setNodeValue(const String&);
174 virtual NodeType nodeType() const = 0; 173 virtual NodeType nodeType() const = 0;
175 ContainerNode* parentNode() const; 174 ContainerNode* parentNode() const;
176 Element* parentElement() const; 175 Element* parentElement() const;
177 Node* previousSibling() const { return m_previous; } 176 Node* previousSibling() const { return m_previous; }
178 Node* nextSibling() const { return m_next; } 177 Node* nextSibling() const { return m_next; }
179 PassRefPtr<NodeList> childNodes(); 178 PassRefPtr<NodeList> childNodes();
180 Node* firstChild() const; 179 Node* firstChild() const;
181 Node* lastChild() const; 180 Node* lastChild() const;
182 bool hasAttributes() const;
183 NamedNodeMap* attributes() const;
184 181
185 // ChildNode interface API 182 // ChildNode interface API
186 Element* previousElementSibling() const; 183 Element* previousElementSibling() const;
187 Element* nextElementSibling() const; 184 Element* nextElementSibling() const;
188 void remove(ExceptionState&); 185 void remove(ExceptionState&);
189 186
190 Node* pseudoAwareNextSibling() const; 187 Node* pseudoAwareNextSibling() const;
191 Node* pseudoAwarePreviousSibling() const; 188 Node* pseudoAwarePreviousSibling() const;
192 Node* pseudoAwareFirstChild() const; 189 Node* pseudoAwareFirstChild() const;
193 Node* pseudoAwareLastChild() const; 190 Node* pseudoAwareLastChild() const;
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 926
930 } //namespace 927 } //namespace
931 928
932 #ifndef NDEBUG 929 #ifndef NDEBUG
933 // Outside the WebCore namespace for ease of invocation from gdb. 930 // Outside the WebCore namespace for ease of invocation from gdb.
934 void showTree(const WebCore::Node*); 931 void showTree(const WebCore::Node*);
935 void showNodePath(const WebCore::Node*); 932 void showNodePath(const WebCore::Node*);
936 #endif 933 #endif
937 934
938 #endif 935 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Element.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698