-
apavlov@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=77619 Reviewed by Vsevolod Vlasov. Source/WebCore: XPath is optimized whenever an element has the "id" attribute. Test: inspector/elements/node-xpath.xhtml * English.lproj/localizedStrings.js: * inspector/front-end/DOMAgent.js: (WebInspector.DOMNode.XPathStep): (WebInspector.DOMNode.XPathStep.prototype.toString): (WebInspector.DOMNode.prototype.copyXPath): (WebInspector.DOMNode.prototype.isXMLNode): (WebInspector.DOMNode.prototype.xPath): (WebInspector.DOMNode.prototype._xPathValue): (WebInspector.DOMNode.prototype._xPathIndex): * inspector/front-end/ElementsTreeOutline.js: (WebInspector.ElementsTreeElement.prototype._populateNodeContextMenu): LayoutTests: * inspector/elements/node-xpath-expected.txt: Added. * inspector/elements/node-xpath.xhtml: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
cd99b22b