DevTools: [SSP] force StylesSidebarPane refresh on undo/redo command happens.

The StylesSidebarPane should be force-refreshed on undo/redo command
happens.

BUG=501310
R=pfeldman

Review URL: https://codereview.chromium.org/1221663002

git-svn-id: svn://svn.chromium.org/blink/trunk@198002 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent ced39b1f
......@@ -709,8 +709,10 @@ WebInspector.ElementsPanel.prototype = {
if (!treeOutline.editing()) {
handleUndoRedo.call(null, treeOutline);
if (event.handled)
if (event.handled) {
this.sidebarPanes.styles.onUndoOrRedoHappened();
return;
}
}
treeOutline.handleShortcut(event);
......
......@@ -137,6 +137,11 @@ WebInspector.StylesSidebarPane.ignoreErrorsForProperty = function(property) {
}
WebInspector.StylesSidebarPane.prototype = {
onUndoOrRedoHappened: function()
{
this.setNode(this.node());
},
/**
* @param {!WebInspector.Event} event
*/
......
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