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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js

Issue 2270033003: DevTools: include traces when exporting console log via 'Save as' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: take out post-lgtm repeat logic Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js ('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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 function writeNextChunk(stream, error) 652 function writeNextChunk(stream, error)
653 { 653 {
654 if (messageIndex >= this.itemCount() || error) { 654 if (messageIndex >= this.itemCount() || error) {
655 stream.close(); 655 stream.close();
656 progressIndicator.done(); 656 progressIndicator.done();
657 return; 657 return;
658 } 658 }
659 var lines = []; 659 var lines = [];
660 for (var i = 0; i < chunkSize && i + messageIndex < this.itemCount() ; ++i) { 660 for (var i = 0; i < chunkSize && i + messageIndex < this.itemCount() ; ++i) {
661 var message = this.itemElement(messageIndex + i); 661 var message = this.itemElement(messageIndex + i);
662 lines.push(message.searchableElement().deepTextContent()); 662 lines.push(message.formattedMessage().deepTextContent());
663 } 663 }
664 messageIndex += i; 664 messageIndex += i;
665 stream.write(lines.join("\n") + "\n", writeNextChunk.bind(this)); 665 stream.write(lines.join("\n") + "\n", writeNextChunk.bind(this));
666 progressIndicator.setWorked(messageIndex); 666 progressIndicator.setWorked(messageIndex);
667 } 667 }
668 668
669 }, 669 },
670 670
671 /** 671 /**
672 * @param {!WebInspector.ConsoleViewMessage} lastMessage 672 * @param {!WebInspector.ConsoleViewMessage} lastMessage
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 return true; 1415 return true;
1416 } 1416 }
1417 return false; 1417 return false;
1418 } 1418 }
1419 } 1419 }
1420 1420
1421 /** 1421 /**
1422 * @typedef {{messageIndex: number, matchIndex: number}} 1422 * @typedef {{messageIndex: number, matchIndex: number}}
1423 */ 1423 */
1424 WebInspector.ConsoleView.RegexMatchRange; 1424 WebInspector.ConsoleView.RegexMatchRange;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698