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