gecko-dev/devtools/shared/inspector
Julian Descottes 799e9aa4fd Bug 1449972 - part2: Move getCssPath and getXPath to toolkit css-selector;r=bgrins
getCssPath and getXPath will need to reuse the same logic as findCssSelector
to handle shadowDOM support.

This patch moves the methods next to findCssSelector, in toolkit's css-selector.js
to avoid duplicating logic between devtools/ and toolkit/

The content of the methods is stricltly the same, except for the Node global
not available in css-selector.js. Instead we use `ele.ownerGlobal.Node` here.

MozReview-Commit-ID: J0KuORWLUoO

--HG--
extra : rebase_source : 26a1801670e5554577f0f77b62667527f7b497bb
2018-07-18 07:33:21 +02:00
..
css-logic.js Bug 1449972 - part2: Move getCssPath and getXPath to toolkit css-selector;r=bgrins 2018-07-18 07:33:21 +02:00
moz.build