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

Side by Side 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 unified diff | Download patch
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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved.
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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 void beginParsingChildren() { setIsFinishedParsingChildren(false); } 619 void beginParsingChildren() { setIsFinishedParsingChildren(false); }
620 620
621 PseudoElement* pseudoElement(PseudoId) const; 621 PseudoElement* pseudoElement(PseudoId) const;
622 LayoutObject* pseudoElementLayoutObject(PseudoId) const; 622 LayoutObject* pseudoElementLayoutObject(PseudoId) const;
623 623
624 virtual bool matchesDefaultPseudoClass() const { return false; } 624 virtual bool matchesDefaultPseudoClass() const { return false; }
625 virtual bool matchesEnabledPseudoClass() const { return false; } 625 virtual bool matchesEnabledPseudoClass() const { return false; }
626 virtual bool matchesReadOnlyPseudoClass() const { return false; } 626 virtual bool matchesReadOnlyPseudoClass() const { return false; }
627 virtual bool matchesReadWritePseudoClass() const { return false; } 627 virtual bool matchesReadWritePseudoClass() const { return false; }
628 virtual bool matchesValidityPseudoClasses() const { return false; } 628 virtual bool matchesValidityPseudoClasses() const { return false; }
629 bool matches(const String& selectors, ExceptionState&); 629
630 Element* closest(const String& selectors, ExceptionState&); 630 // https://dom.spec.whatwg.org/#dom-element-matches
631 bool matches(const AtomicString& selectors,
632 ExceptionState& = ASSERT_NO_EXCEPTION);
633
634 // https://dom.spec.whatwg.org/#dom-element-closest
635 Element* closest(const AtomicString& selectors,
636 ExceptionState& = ASSERT_NO_EXCEPTION);
637
631 virtual bool shouldAppearIndeterminate() const { return false; } 638 virtual bool shouldAppearIndeterminate() const { return false; }
632 639
633 DOMTokenList& classList(); 640 DOMTokenList& classList();
634 641
635 DOMStringMap& dataset(); 642 DOMStringMap& dataset();
636 643
637 virtual bool isDateTimeEditElement() const { return false; } 644 virtual bool isDateTimeEditElement() const { return false; }
638 virtual bool isDateTimeFieldElement() const { return false; } 645 virtual bool isDateTimeFieldElement() const { return false; }
639 virtual bool isPickerIndicatorElement() const { return false; } 646 virtual bool isPickerIndicatorElement() const { return false; }
640 647
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1196 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1203 #define DECLARE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1197 static T* create(const QualifiedName&, Document&) 1204 static T* create(const QualifiedName&, Document&)
1198 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 1205 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
1199 T* T::create(const QualifiedName& tagName, Document& document) { \ 1206 T* T::create(const QualifiedName& tagName, Document& document) { \
1200 return new T(tagName, document); \ 1207 return new T(tagName, document); \
1201 } 1208 }
1202 1209
1203 } // namespace blink 1210 } // namespace blink
1204 1211
1205 #endif // Element_h 1212 #endif // Element_h
OLDNEW
« 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