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

Side by Side Diff: Source/devtools/front_end/Linkifier.js

Issue 16917007: DevTools: Trim stylesheet URLs in the Styles sidebar to 30 characters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Tests rebaselined Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/inspector/styles/styles-source-lines-inline-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 __proto__: WebInspector.LinkifierFormatter.prototype 153 __proto__: WebInspector.LinkifierFormatter.prototype
154 } 154 }
155 155
156 /** 156 /**
157 * @constructor 157 * @constructor
158 * @extends {WebInspector.Linkifier.DefaultFormatter} 158 * @extends {WebInspector.Linkifier.DefaultFormatter}
159 */ 159 */
160 WebInspector.Linkifier.DefaultCSSFormatter = function() 160 WebInspector.Linkifier.DefaultCSSFormatter = function()
161 { 161 {
162 WebInspector.Linkifier.DefaultFormatter.call(this); 162 WebInspector.Linkifier.DefaultFormatter.call(this, WebInspector.Linkifier.De faultCSSFormatter.MaxLengthForDisplayedURLs);
163 } 163 }
164 164
165 WebInspector.Linkifier.DefaultCSSFormatter.MaxLengthForDisplayedURLs = 30;
166
165 WebInspector.Linkifier.DefaultCSSFormatter.prototype = { 167 WebInspector.Linkifier.DefaultCSSFormatter.prototype = {
166 /** 168 /**
167 * @param {Element} anchor 169 * @param {Element} anchor
168 * @param {WebInspector.UILocation} uiLocation 170 * @param {WebInspector.UILocation} uiLocation
169 */ 171 */
170 formatLiveAnchor: function(anchor, uiLocation) 172 formatLiveAnchor: function(anchor, uiLocation)
171 { 173 {
172 WebInspector.Linkifier.DefaultFormatter.prototype.formatLiveAnchor.call( this, anchor, uiLocation); 174 WebInspector.Linkifier.DefaultFormatter.prototype.formatLiveAnchor.call( this, anchor, uiLocation);
173 anchor.classList.add("webkit-html-resource-link"); 175 anchor.classList.add("webkit-html-resource-link");
174 anchor.setAttribute("data-uncopyable", anchor.textContent); 176 anchor.setAttribute("data-uncopyable", anchor.textContent);
175 anchor.textContent = ""; 177 anchor.textContent = "";
176 }, 178 },
177 __proto__: WebInspector.Linkifier.DefaultFormatter.prototype 179 __proto__: WebInspector.Linkifier.DefaultFormatter.prototype
178 } 180 }
179 181
180 /** 182 /**
181 * The maximum number of characters to display in a URL. 183 * The maximum number of characters to display in a URL.
182 * @const 184 * @const
183 * @type {number} 185 * @type {number}
184 */ 186 */
185 WebInspector.Linkifier.MaxLengthForDisplayedURLs = 150; 187 WebInspector.Linkifier.MaxLengthForDisplayedURLs = 150;
OLDNEW
« no previous file with comments | « LayoutTests/inspector/styles/styles-source-lines-inline-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698