| OLD | NEW |
| 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 Loading... |
| 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; |
| OLD | NEW |