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

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

Issue 347643002: Reduce forward declarations in core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 years, 6 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/ScriptLoader.h ('k') | Source/core/dom/ShadowTreeStyleSheetCollection.h » ('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) 2011, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2013 Apple Inc. All rights reserved.
3 * Copyright (C) 2014 Samsung Electronics. All rights reserved. 3 * Copyright (C) 2014 Samsung Electronics. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 22 matching lines...) Expand all
33 #include "wtf/Vector.h" 33 #include "wtf/Vector.h"
34 #include "wtf/text/AtomicStringHash.h" 34 #include "wtf/text/AtomicStringHash.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class CSSSelector; 38 class CSSSelector;
39 class ContainerNode; 39 class ContainerNode;
40 class Document; 40 class Document;
41 class Element; 41 class Element;
42 class ExceptionState; 42 class ExceptionState;
43 class Node;
44 class SimpleNodeList;
45 class StaticNodeList; 43 class StaticNodeList;
46 class SpaceSplitString;
47 44
48 class SelectorDataList { 45 class SelectorDataList {
49 public: 46 public:
50 void initialize(const CSSSelectorList&); 47 void initialize(const CSSSelectorList&);
51 bool matches(Element&) const; 48 bool matches(Element&) const;
52 PassRefPtrWillBeRawPtr<StaticNodeList> queryAll(ContainerNode& rootNode) con st; 49 PassRefPtrWillBeRawPtr<StaticNodeList> queryAll(ContainerNode& rootNode) con st;
53 PassRefPtrWillBeRawPtr<Element> queryFirst(ContainerNode& rootNode) const; 50 PassRefPtrWillBeRawPtr<Element> queryFirst(ContainerNode& rootNode) const;
54 51
55 private: 52 private:
56 bool canUseFastQuery(const ContainerNode& rootNode) const; 53 bool canUseFastQuery(const ContainerNode& rootNode) const;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 SelectorQuery* add(const AtomicString&, const Document&, ExceptionState&); 103 SelectorQuery* add(const AtomicString&, const Document&, ExceptionState&);
107 void invalidate(); 104 void invalidate();
108 105
109 private: 106 private:
110 HashMap<AtomicString, OwnPtr<SelectorQuery> > m_entries; 107 HashMap<AtomicString, OwnPtr<SelectorQuery> > m_entries;
111 }; 108 };
112 109
113 } 110 }
114 111
115 #endif 112 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptLoader.h ('k') | Source/core/dom/ShadowTreeStyleSheetCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698