Commit 5a75fb3a authored by graouts@apple.com's avatar graouts@apple.com

Web Inspector: Keep DOM tree expanded on page reload

https://bugs.webkit.org/show_bug.cgi?id=121665

Reviewed by Darin Adler.

Allow the node that was selected before reloading the page to be selected
at the page is reloaded. Credit goes to Joseph Pecoraro for the fix.

* UserInterface/DOMTreeContentView.js:
(WebInspector.DOMTreeContentView.prototype._rootDOMNodeAvailable.selectNode):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bfab3436
2013-09-26 Antoine Quint <graouts@apple.com>
Web Inspector: Keep DOM tree expanded on page reload
https://bugs.webkit.org/show_bug.cgi?id=121665
Reviewed by Darin Adler.
Allow the node that was selected before reloading the page to be selected
at the page is reloaded. Credit goes to Joseph Pecoraro for the fix.
* UserInterface/DOMTreeContentView.js:
(WebInspector.DOMTreeContentView.prototype._rootDOMNodeAvailable.selectNode):
2013-09-24 Joseph Pecoraro <pecoraro@apple.com>
Web Inspector: Using Breakpoint Actions Breaks iOS inspection
......
......@@ -295,10 +295,6 @@ WebInspector.DOMTreeContentView.prototype = {
function selectNode(lastSelectedNode)
{
// A selection was made while waiting for the async reply. Just bail now.
if (this._domTreeOutline.selectedTreeElement)
return;
var nodeToFocus = lastSelectedNode;
if (!nodeToFocus)
nodeToFocus = rootDOMNode.body || rootDOMNode.documentElement;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment