Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1121)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 2649023007: DevTools: implement release note behind an experiment (Closed)
Patch Set: fixup Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
};

Powered by Google App Engine
This is Rietveld 408576698