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

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

Issue 138743008: Make sure the root node of selector queries is a ContainerNode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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 | « Source/core/dom/ContainerNode.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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 #endif 589 #endif
590 590
591 void invalidateNodeListCachesInAncestors(const QualifiedName* attrName = 0, Element* attributeOwnerElement = 0); 591 void invalidateNodeListCachesInAncestors(const QualifiedName* attrName = 0, Element* attributeOwnerElement = 0);
592 NodeListsNodeData* nodeLists(); 592 NodeListsNodeData* nodeLists();
593 void clearNodeLists(); 593 void clearNodeLists();
594 594
595 virtual bool willRespondToMouseMoveEvents(); 595 virtual bool willRespondToMouseMoveEvents();
596 virtual bool willRespondToMouseClickEvents(); 596 virtual bool willRespondToMouseClickEvents();
597 virtual bool willRespondToTouchEvents(); 597 virtual bool willRespondToTouchEvents();
598 598
599 PassRefPtr<Element> querySelector(const AtomicString& selectors, ExceptionSt ate&);
600 PassRefPtr<NodeList> querySelectorAll(const AtomicString& selectors, Excepti onState&);
601
602 unsigned short compareDocumentPosition(const Node*) const; 599 unsigned short compareDocumentPosition(const Node*) const;
603 600
604 enum ShadowTreesTreatment { 601 enum ShadowTreesTreatment {
605 TreatShadowTreesAsDisconnected, 602 TreatShadowTreesAsDisconnected,
606 TreatShadowTreesAsComposed 603 TreatShadowTreesAsComposed
607 }; 604 };
608 605
609 unsigned short compareDocumentPositionInternal(const Node*, ShadowTreesTreat ment) const; 606 unsigned short compareDocumentPositionInternal(const Node*, ShadowTreesTreat ment) const;
610 607
611 virtual Node* toNode() OVERRIDE FINAL; 608 virtual Node* toNode() OVERRIDE FINAL;
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 899
903 } // namespace WebCore 900 } // namespace WebCore
904 901
905 #ifndef NDEBUG 902 #ifndef NDEBUG
906 // Outside the WebCore namespace for ease of invocation from gdb. 903 // Outside the WebCore namespace for ease of invocation from gdb.
907 void showTree(const WebCore::Node*); 904 void showTree(const WebCore::Node*);
908 void showNodePath(const WebCore::Node*); 905 void showNodePath(const WebCore::Node*);
909 #endif 906 #endif
910 907
911 #endif 908 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ContainerNode.cpp ('k') | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698