Core SelectorChecker methods are currently templated to support distributed shadow trees. Without shadow DOM distribution support this is no longer needed.
Created attachment 200335 [details] patch
Comment on attachment 200335 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=200335&action=review r=me > Source/WebCore/css/SelectorChecker.cpp:65 > +static inline bool isFirstChildElement(Element* element) I'd make this take a const Element*. > Source/WebCore/css/SelectorChecker.cpp:70 > +static inline bool isLastChildElement(Element* element) Ditto. > Source/WebCore/css/SelectorChecker.cpp:75 > +static inline bool isFirstOfType(Element* element, const QualifiedName& type) Ditto. > Source/WebCore/css/SelectorChecker.cpp:84 > +static inline bool isLastOfType(Element* element, const QualifiedName& type) Ditto. > Source/WebCore/css/SelectorChecker.cpp:93 > +static inline int countElementsBefore(Element* element) Ditto. > Source/WebCore/css/SelectorChecker.cpp:107 > +static inline int countElementsOfTypeBefore(Element* element, const QualifiedName& type) Ditto. > Source/WebCore/css/SelectorChecker.cpp:117 > +static inline int countElementsAfter(Element* element) Ditto. > Source/WebCore/css/SelectorChecker.cpp:125 > +static inline int countElementsOfTypeAfter(Element* element, const QualifiedName& type) Ditto. > Source/WebCore/css/SiblingTraversalStrategies.h:1 > +// Remove this file. wat
http://trac.webkit.org/changeset/149498