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

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

Issue 23516004: Have CSSParserContext take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/ProcessingInstruction.cpp ('k') | Source/core/dom/SelectorQuery.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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 PassRefPtr<NodeList> queryAll(Node* rootNode) const; 81 PassRefPtr<NodeList> queryAll(Node* rootNode) const;
82 PassRefPtr<Element> queryFirst(Node* rootNode) const; 82 PassRefPtr<Element> queryFirst(Node* rootNode) const;
83 private: 83 private:
84 SelectorDataList m_selectors; 84 SelectorDataList m_selectors;
85 CSSSelectorList m_selectorList; 85 CSSSelectorList m_selectorList;
86 }; 86 };
87 87
88 class SelectorQueryCache { 88 class SelectorQueryCache {
89 WTF_MAKE_FAST_ALLOCATED; 89 WTF_MAKE_FAST_ALLOCATED;
90 public: 90 public:
91 SelectorQuery* add(const AtomicString&, Document*, ExceptionState&); 91 SelectorQuery* add(const AtomicString&, const Document&, ExceptionState&);
92 void invalidate(); 92 void invalidate();
93 93
94 private: 94 private:
95 HashMap<AtomicString, OwnPtr<SelectorQuery> > m_entries; 95 HashMap<AtomicString, OwnPtr<SelectorQuery> > m_entries;
96 }; 96 };
97 97
98 } 98 }
99 99
100 #endif 100 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ProcessingInstruction.cpp ('k') | Source/core/dom/SelectorQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698