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

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

Issue 106503002: Let Node.textContent never throw (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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/Document.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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 void normalize(); 208 void normalize();
209 209
210 bool isSameNode(Node* other) const { return this == other; } 210 bool isSameNode(Node* other) const { return this == other; }
211 bool isEqualNode(Node*) const; 211 bool isEqualNode(Node*) const;
212 bool isDefaultNamespace(const AtomicString& namespaceURI) const; 212 bool isDefaultNamespace(const AtomicString& namespaceURI) const;
213 String lookupPrefix(const AtomicString& namespaceURI) const; 213 String lookupPrefix(const AtomicString& namespaceURI) const;
214 String lookupNamespaceURI(const String& prefix) const; 214 String lookupNamespaceURI(const String& prefix) const;
215 String lookupNamespacePrefix(const AtomicString& namespaceURI, const Element * originalElement) const; 215 String lookupNamespacePrefix(const AtomicString& namespaceURI, const Element * originalElement) const;
216 216
217 String textContent(bool convertBRsToNewlines = false) const; 217 String textContent(bool convertBRsToNewlines = false) const;
218 void setTextContent(const String&, ExceptionState&); 218 void setTextContent(const String&);
219 219
220 Node& lastDescendant() const; 220 Node& lastDescendant() const;
221 221
222 // Other methods (not part of DOM) 222 // Other methods (not part of DOM)
223 223
224 bool isElementNode() const { return getFlag(IsElementFlag); } 224 bool isElementNode() const { return getFlag(IsElementFlag); }
225 bool isContainerNode() const { return getFlag(IsContainerFlag); } 225 bool isContainerNode() const { return getFlag(IsContainerFlag); }
226 bool isTextNode() const { return getFlag(IsTextFlag); } 226 bool isTextNode() const { return getFlag(IsTextFlag); }
227 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } 227 bool isHTMLElement() const { return getFlag(IsHTMLFlag); }
228 bool isSVGElement() const { return getFlag(IsSVGFlag); } 228 bool isSVGElement() const { return getFlag(IsSVGFlag); }
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 952
953 } // namespace WebCore 953 } // namespace WebCore
954 954
955 #ifndef NDEBUG 955 #ifndef NDEBUG
956 // Outside the WebCore namespace for ease of invocation from gdb. 956 // Outside the WebCore namespace for ease of invocation from gdb.
957 void showTree(const WebCore::Node*); 957 void showTree(const WebCore::Node*);
958 void showNodePath(const WebCore::Node*); 958 void showNodePath(const WebCore::Node*);
959 #endif 959 #endif
960 960
961 #endif 961 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698