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

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

Issue 1807833002: Welcome isSameNode back as a per-spec method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.idl » ('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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 226
227 PassRefPtrWillBeRawPtr<Node> insertBefore(PassRefPtrWillBeRawPtr<Node> newCh ild, Node* refChild, ExceptionState& = ASSERT_NO_EXCEPTION); 227 PassRefPtrWillBeRawPtr<Node> insertBefore(PassRefPtrWillBeRawPtr<Node> newCh ild, Node* refChild, ExceptionState& = ASSERT_NO_EXCEPTION);
228 PassRefPtrWillBeRawPtr<Node> replaceChild(PassRefPtrWillBeRawPtr<Node> newCh ild, PassRefPtrWillBeRawPtr<Node> oldChild, ExceptionState& = ASSERT_NO_EXCEPTIO N); 228 PassRefPtrWillBeRawPtr<Node> replaceChild(PassRefPtrWillBeRawPtr<Node> newCh ild, PassRefPtrWillBeRawPtr<Node> oldChild, ExceptionState& = ASSERT_NO_EXCEPTIO N);
229 PassRefPtrWillBeRawPtr<Node> removeChild(PassRefPtrWillBeRawPtr<Node> child, ExceptionState& = ASSERT_NO_EXCEPTION); 229 PassRefPtrWillBeRawPtr<Node> removeChild(PassRefPtrWillBeRawPtr<Node> child, ExceptionState& = ASSERT_NO_EXCEPTION);
230 PassRefPtrWillBeRawPtr<Node> appendChild(PassRefPtrWillBeRawPtr<Node> newChi ld, ExceptionState& = ASSERT_NO_EXCEPTION); 230 PassRefPtrWillBeRawPtr<Node> appendChild(PassRefPtrWillBeRawPtr<Node> newChi ld, ExceptionState& = ASSERT_NO_EXCEPTION);
231 231
232 bool hasChildren() const { return firstChild(); } 232 bool hasChildren() const { return firstChild(); }
233 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) = 0; 233 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) = 0;
234 void normalize(); 234 void normalize();
235 235
236 // TODO(yosin): Once we drop |Node.prototype.isSameNode()|, we should
237 // get rid of |isSameNodeDeprecated()|.
238 bool isSameNodeDeprecated(Node* other) const { return this == other; }
239 bool isEqualNode(Node*) const; 236 bool isEqualNode(Node*) const;
237 bool isSameNode(Node* other) const { return this == other; }
240 bool isDefaultNamespace(const AtomicString& namespaceURI) const; 238 bool isDefaultNamespace(const AtomicString& namespaceURI) const;
241 const AtomicString& lookupPrefix(const AtomicString& namespaceURI) const; 239 const AtomicString& lookupPrefix(const AtomicString& namespaceURI) const;
242 const AtomicString& lookupNamespaceURI(const String& prefix) const; 240 const AtomicString& lookupNamespaceURI(const String& prefix) const;
243 241
244 String textContent(bool convertBRsToNewlines = false) const; 242 String textContent(bool convertBRsToNewlines = false) const;
245 void setTextContent(const String&); 243 void setTextContent(const String&);
246 244
247 bool supportsAltText(); 245 bool supportsAltText();
248 246
249 // Other methods (not part of DOM) 247 // Other methods (not part of DOM)
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 } // namespace blink 926 } // namespace blink
929 927
930 #ifndef NDEBUG 928 #ifndef NDEBUG
931 // Outside the WebCore namespace for ease of invocation from gdb. 929 // Outside the WebCore namespace for ease of invocation from gdb.
932 void showNode(const blink::Node*); 930 void showNode(const blink::Node*);
933 void showTree(const blink::Node*); 931 void showTree(const blink::Node*);
934 void showNodePath(const blink::Node*); 932 void showNodePath(const blink::Node*);
935 #endif 933 #endif
936 934
937 #endif // Node_h 935 #endif // Node_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698