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

Side by Side Diff: Source/WebCore/inspector/front-end/inspector.js

Issue 8343053: Merge 98489 - Web Inspector: Need workaround for the red crossed circle in the status bar not bri... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « Source/WebCore/inspector/front-end/inspector.css ('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) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 if (!errors && !warnings) { 343 if (!errors && !warnings) {
344 errorWarningElement.addStyleClass("hidden"); 344 errorWarningElement.addStyleClass("hidden");
345 return; 345 return;
346 } 346 }
347 347
348 errorWarningElement.removeStyleClass("hidden"); 348 errorWarningElement.removeStyleClass("hidden");
349 349
350 errorWarningElement.removeChildren(); 350 errorWarningElement.removeChildren();
351 351
352 if (errors) { 352 if (errors) {
353 var errorImageElement = document.createElement("img");
354 errorImageElement.id = "error-count-img";
355 errorWarningElement.appendChild(errorImageElement);
353 var errorElement = document.createElement("span"); 356 var errorElement = document.createElement("span");
354 errorElement.id = "error-count"; 357 errorElement.id = "error-count";
355 errorElement.textContent = errors; 358 errorElement.textContent = errors;
356 errorWarningElement.appendChild(errorElement); 359 errorWarningElement.appendChild(errorElement);
357 } 360 }
358 361
359 if (warnings) { 362 if (warnings) {
363 var warningsImageElement = document.createElement("img");
364 warningsImageElement.id = "warning-count-img";
365 errorWarningElement.appendChild(warningsImageElement);
360 var warningsElement = document.createElement("span"); 366 var warningsElement = document.createElement("span");
361 warningsElement.id = "warning-count"; 367 warningsElement.id = "warning-count";
362 warningsElement.textContent = warnings; 368 warningsElement.textContent = warnings;
363 errorWarningElement.appendChild(warningsElement); 369 errorWarningElement.appendChild(warningsElement);
364 } 370 }
365 371
366 if (errors) { 372 if (errors) {
367 if (warnings) { 373 if (warnings) {
368 if (errors == 1) { 374 if (errors == 1) {
369 if (warnings == 1) 375 if (warnings == 1)
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 } 1361 }
1356 } 1362 }
1357 1363
1358 WebInspector.installSourceMappingForTest = function(url) 1364 WebInspector.installSourceMappingForTest = function(url)
1359 { 1365 {
1360 // FIXME: remove this method when it's possible to set compiler source mappi ngs via UI. 1366 // FIXME: remove this method when it's possible to set compiler source mappi ngs via UI.
1361 var provider = new WebInspector.CompilerSourceMappingProvider(url); 1367 var provider = new WebInspector.CompilerSourceMappingProvider(url);
1362 var uiSourceCode = WebInspector.panels.scripts.visibleView._delegate._uiSour ceCode; 1368 var uiSourceCode = WebInspector.panels.scripts.visibleView._delegate._uiSour ceCode;
1363 uiSourceCode.rawSourceCode.setCompilerSourceMappingProvider(provider); 1369 uiSourceCode.rawSourceCode.setCompilerSourceMappingProvider(provider);
1364 } 1370 }
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/inspector.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698