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

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

Issue 108543003: Consistently use AtomicString for namespaceURI / prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 virtual PassRefPtr<Node> cloneNode(bool deep = false) = 0; 203 virtual PassRefPtr<Node> cloneNode(bool deep = false) = 0;
204 virtual const AtomicString& localName() const; 204 virtual const AtomicString& localName() const;
205 virtual const AtomicString& namespaceURI() const; 205 virtual const AtomicString& namespaceURI() const;
206 virtual const AtomicString& prefix() const; 206 virtual const AtomicString& prefix() const;
207 virtual void setPrefix(const AtomicString&, ExceptionState&); 207 virtual void setPrefix(const AtomicString&, ExceptionState&);
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 const AtomicString& lookupPrefix(const AtomicString& namespaceURI) const;
214 String lookupNamespaceURI(const String& prefix) const; 214 const AtomicString& lookupNamespaceURI(const String& prefix) const;
215 String lookupNamespacePrefix(const AtomicString& namespaceURI, const Element * originalElement) const; 215 const AtomicString& 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&); 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); }
(...skipping 726 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

Powered by Google App Engine
This is Rietveld 408576698