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

Unified Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 2769783002: Centralize more querySelector logic behind QuerySelectorCache. (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Element.h
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h
index 7a640326ea91f546cd304d3be6e6edf918c4bd0a..9653383d2b405b2d3e3c40a637d517d47c3dfcd8 100644
--- a/third_party/WebKit/Source/core/dom/Element.h
+++ b/third_party/WebKit/Source/core/dom/Element.h
@@ -626,8 +626,15 @@ class CORE_EXPORT Element : public ContainerNode {
virtual bool matchesReadOnlyPseudoClass() const { return false; }
virtual bool matchesReadWritePseudoClass() const { return false; }
virtual bool matchesValidityPseudoClasses() const { return false; }
- bool matches(const String& selectors, ExceptionState&);
- Element* closest(const String& selectors, ExceptionState&);
+
+ // https://dom.spec.whatwg.org/#dom-element-matches
+ bool matches(const AtomicString& selectors,
+ ExceptionState& = ASSERT_NO_EXCEPTION);
+
+ // https://dom.spec.whatwg.org/#dom-element-closest
+ Element* closest(const AtomicString& selectors,
+ ExceptionState& = ASSERT_NO_EXCEPTION);
+
virtual bool shouldAppearIndeterminate() const { return false; }
DOMTokenList& classList();
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698