Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js b/third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js |
| index e72872cf2d12823338f312a5ea9b54f49aa8a29d..0ca7de1fa8f0eab1e0b4e24dbb181917aeeed891 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js |
| @@ -173,7 +173,12 @@ UI.InspectorView = class extends UI.VBox { |
| * @param {string=} iconTooltip |
| */ |
| setPanelIcon(panelName, iconType, iconTooltip) { |
|
dgozman
2016/12/20 05:42:04
Let's change this one to accept Icon instead.
lushnikov
2016/12/20 06:52:10
Done.
|
| - this._tabbedPane.setTabIcon(panelName, iconType, iconTooltip); |
| + var icon = null; |
| + if (iconType) { |
| + icon = UI.Icon.create(iconType); |
| + icon.title = iconTooltip || ''; |
| + } |
| + this._tabbedPane.setTabIcon(panelName, icon); |
| } |
| /** |