| Index: third_party/WebKit/Source/core/dom/SelectorQuery.h
|
| diff --git a/third_party/WebKit/Source/core/dom/SelectorQuery.h b/third_party/WebKit/Source/core/dom/SelectorQuery.h
|
| index 15906d8190ed1f6d5d9cd3fcf92d30c8323bdacd..5cdd31502182aceffaef5450531c43c58c2f225d 100644
|
| --- a/third_party/WebKit/Source/core/dom/SelectorQuery.h
|
| +++ b/third_party/WebKit/Source/core/dom/SelectorQuery.h
|
| @@ -64,6 +64,20 @@ class CORE_EXPORT SelectorQuery {
|
| // https://dom.spec.whatwg.org/#dom-parentnode-queryselector
|
| Element* queryFirst(ContainerNode& rootNode) const;
|
|
|
| + struct QueryStats {
|
| + unsigned totalCount;
|
| + unsigned fastId;
|
| + unsigned fastClass;
|
| + unsigned fastTagName;
|
| + unsigned fastScan;
|
| + unsigned slowScan;
|
| + unsigned slowTraversingShadowTreeScan;
|
| + };
|
| + // Used by unit tests to get information about what paths were taken during
|
| + // the last query. Always reset between queries. This system is disabled in
|
| + // non DCHECK builds to avoid the overhead on the query process.
|
| + static QueryStats lastQueryStats();
|
| +
|
| private:
|
| explicit SelectorQuery(CSSSelectorList);
|
|
|
|
|