Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
| index f999a81d9b1304205843b15027257e674418e82d..d78ad6d2f3631517f46b232bd5274908ea54cf20 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
| @@ -1927,9 +1927,10 @@ UI.ThemeSupport.ColorUsage = { |
| * @param {string=} linkText |
| * @param {string=} className |
| * @param {boolean=} preventClick |
| + * @param {boolean=} unstyled |
| * @return {!Element} |
| */ |
| -UI.createExternalLink = function(url, linkText, className, preventClick) { |
| +UI.createExternalLink = function(url, linkText, className, preventClick, unstyled) { |
|
chenwilliam
2017/02/09 23:39:48
I want to convert all the optional parameters to a
|
| if (!linkText) |
| linkText = url; |
| @@ -1956,7 +1957,8 @@ UI.createExternalLink = function(url, linkText, className, preventClick) { |
| a.title = url; |
| a.textContent = linkText.trimMiddle(UI.MaxLengthForDisplayedURLs); |
| a.setAttribute('target', '_blank'); |
| - |
| + if (unstyled) |
| + a.className = className; |
| return a; |
| }; |