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

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

Issue 270503006: Make pseudo-classes selector queries work on DocumentFragment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address Esprehn's comments Created 6 years, 7 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/ContainerNode.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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // DOM methods & attributes for Node 163 // DOM methods & attributes for Node
164 164
165 bool hasTagName(const QualifiedName&) const; 165 bool hasTagName(const QualifiedName&) const;
166 virtual String nodeName() const = 0; 166 virtual String nodeName() const = 0;
167 virtual String nodeValue() const; 167 virtual String nodeValue() const;
168 virtual void setNodeValue(const String&); 168 virtual void setNodeValue(const String&);
169 virtual NodeType nodeType() const = 0; 169 virtual NodeType nodeType() const = 0;
170 ContainerNode* parentNode() const; 170 ContainerNode* parentNode() const;
171 Element* parentElement() const; 171 Element* parentElement() const;
172 ContainerNode* parentElementOrShadowRoot() const; 172 ContainerNode* parentElementOrShadowRoot() const;
173 ContainerNode* parentElementOrDocumentFragment() const;
173 Node* previousSibling() const { return m_previous; } 174 Node* previousSibling() const { return m_previous; }
174 Node* nextSibling() const { return m_next; } 175 Node* nextSibling() const { return m_next; }
175 PassRefPtr<NodeList> childNodes(); 176 PassRefPtr<NodeList> childNodes();
176 Node* firstChild() const; 177 Node* firstChild() const;
177 Node* lastChild() const; 178 Node* lastChild() const;
178 179
179 void remove(ExceptionState&); 180 void remove(ExceptionState&);
180 181
181 Node* pseudoAwareNextSibling() const; 182 Node* pseudoAwareNextSibling() const;
182 Node* pseudoAwarePreviousSibling() const; 183 Node* pseudoAwarePreviousSibling() const;
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 } // namespace WebCore 926 } // namespace WebCore
926 927
927 #ifndef NDEBUG 928 #ifndef NDEBUG
928 // Outside the WebCore namespace for ease of invocation from gdb. 929 // Outside the WebCore namespace for ease of invocation from gdb.
929 void showNode(const WebCore::Node*); 930 void showNode(const WebCore::Node*);
930 void showTree(const WebCore::Node*); 931 void showTree(const WebCore::Node*);
931 void showNodePath(const WebCore::Node*); 932 void showNodePath(const WebCore::Node*);
932 #endif 933 #endif
933 934
934 #endif 935 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ContainerNode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698