OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 if (!cell) | 250 if (!cell) |
251 return; | 251 return; |
252 | 252 |
253 if (cell.hasStyleClass("time-column")) | 253 if (cell.hasStyleClass("time-column")) |
254 this.showTimeAsPercent.set(!this.showTimeAsPercent.get()); | 254 this.showTimeAsPercent.set(!this.showTimeAsPercent.get()); |
255 else | 255 else |
256 return; | 256 return; |
257 | 257 |
258 this.refreshShowAsPercents(); | 258 this.refreshShowAsPercents(); |
259 | 259 |
260 event.consume(); | 260 event.consume(true); |
261 } | 261 } |
262 } | 262 } |
263 | 263 |
264 WebInspector.CSSSelectorProfileView.prototype.__proto__ = WebInspector.View.prot
otype; | 264 WebInspector.CSSSelectorProfileView.prototype.__proto__ = WebInspector.View.prot
otype; |
265 | 265 |
266 /** | 266 /** |
267 * @constructor | 267 * @constructor |
268 */ | 268 */ |
269 WebInspector.CSSSelectorProfileType = function() | 269 WebInspector.CSSSelectorProfileType = function() |
270 { | 270 { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 return new WebInspector.ProfileSidebarTreeElement(profile, profile.title
, "profile-sidebar-tree-item"); | 345 return new WebInspector.ProfileSidebarTreeElement(profile, profile.title
, "profile-sidebar-tree-item"); |
346 }, | 346 }, |
347 | 347 |
348 createView: function(profile) | 348 createView: function(profile) |
349 { | 349 { |
350 return new WebInspector.CSSSelectorProfileView(profile); | 350 return new WebInspector.CSSSelectorProfileView(profile); |
351 } | 351 } |
352 } | 352 } |
353 | 353 |
354 WebInspector.CSSSelectorProfileType.prototype.__proto__ = WebInspector.ProfileTy
pe.prototype; | 354 WebInspector.CSSSelectorProfileType.prototype.__proto__ = WebInspector.ProfileTy
pe.prototype; |
OLD | NEW |