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

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

Issue 742353004: Implement computedRole and computedName (behind a flag) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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-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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 bool isSameNode(Node* other) const { return this == other; } 217 bool isSameNode(Node* other) const { return this == other; }
218 bool isEqualNode(Node*) const; 218 bool isEqualNode(Node*) const;
219 bool isDefaultNamespace(const AtomicString& namespaceURI) const; 219 bool isDefaultNamespace(const AtomicString& namespaceURI) const;
220 const AtomicString& lookupPrefix(const AtomicString& namespaceURI) const; 220 const AtomicString& lookupPrefix(const AtomicString& namespaceURI) const;
221 const AtomicString& lookupNamespaceURI(const String& prefix) const; 221 const AtomicString& lookupNamespaceURI(const String& prefix) const;
222 222
223 String textContent(bool convertBRsToNewlines = false) const; 223 String textContent(bool convertBRsToNewlines = false) const;
224 void setTextContent(const String&); 224 void setTextContent(const String&);
225 225
226 const AtomicString& computedRole();
227 const String computedText();
228
226 // Other methods (not part of DOM) 229 // Other methods (not part of DOM)
227 230
228 bool isElementNode() const { return getFlag(IsElementFlag); } 231 bool isElementNode() const { return getFlag(IsElementFlag); }
229 bool isContainerNode() const { return getFlag(IsContainerFlag); } 232 bool isContainerNode() const { return getFlag(IsContainerFlag); }
230 bool isTextNode() const { return getFlag(IsTextFlag); } 233 bool isTextNode() const { return getFlag(IsTextFlag); }
231 bool isHTMLElement() const { return getFlag(IsHTMLFlag); } 234 bool isHTMLElement() const { return getFlag(IsHTMLFlag); }
232 bool isSVGElement() const { return getFlag(IsSVGFlag); } 235 bool isSVGElement() const { return getFlag(IsSVGFlag); }
233 236
234 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; } 237 bool isPseudoElement() const { return pseudoId() != NOPSEUDO; }
235 bool isBeforePseudoElement() const { return pseudoId() == BEFORE; } 238 bool isBeforePseudoElement() const { return pseudoId() == BEFORE; }
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 } // namespace blink 897 } // namespace blink
895 898
896 #ifndef NDEBUG 899 #ifndef NDEBUG
897 // Outside the WebCore namespace for ease of invocation from gdb. 900 // Outside the WebCore namespace for ease of invocation from gdb.
898 void showNode(const blink::Node*); 901 void showNode(const blink::Node*);
899 void showTree(const blink::Node*); 902 void showTree(const blink::Node*);
900 void showNodePath(const blink::Node*); 903 void showNodePath(const blink::Node*);
901 #endif 904 #endif
902 905
903 #endif // Node_h 906 #endif // Node_h
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Node.cpp » ('j') | Source/core/dom/Node.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698