Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 if (consoleMessage->callStack() && consoleMessage->callStack()->size()) { | 89 if (consoleMessage->callStack() && consoleMessage->callStack()->size()) { |
| 90 lineNumber = consoleMessage->callStack()->at(0).lineNumber(); | 90 lineNumber = consoleMessage->callStack()->at(0).lineNumber(); |
| 91 messageURL = consoleMessage->callStack()->at(0).sourceURL(); | 91 messageURL = consoleMessage->callStack()->at(0).sourceURL(); |
| 92 } else { | 92 } else { |
| 93 lineNumber = consoleMessage->lineNumber(); | 93 lineNumber = consoleMessage->lineNumber(); |
| 94 messageURL = consoleMessage->url(); | 94 messageURL = consoleMessage->url(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 messageStorage()->reportMessage(consoleMessage); | 97 messageStorage()->reportMessage(consoleMessage); |
| 98 | 98 |
| 99 if (consoleMessage->source() == CSSMessageSource || consoleMessage->source() == NetworkMessageSource) | |
|
eseidel
2014/11/06 23:08:52
Why did you need to remove this?
rafaelw
2014/11/06 23:10:45
Loggin to stddout happens the call below to .chrom
rafaelw
2014/11/06 23:14:11
Note: I didn't fully follow the path that Blink/De
| |
| 100 return; | |
| 101 | |
| 102 RefPtr<ScriptCallStack> reportedCallStack = nullptr; | 99 RefPtr<ScriptCallStack> reportedCallStack = nullptr; |
| 103 if (consoleMessage->source() != ConsoleAPIMessageSource) { | 100 if (consoleMessage->source() != ConsoleAPIMessageSource) { |
| 104 if (consoleMessage->callStack() && m_frame.chromeClient().shouldReportDe tailedMessageForSource(messageURL)) | 101 if (consoleMessage->callStack() && m_frame.chromeClient().shouldReportDe tailedMessageForSource(messageURL)) |
| 105 reportedCallStack = consoleMessage->callStack(); | 102 reportedCallStack = consoleMessage->callStack(); |
| 106 } else { | 103 } else { |
| 107 if (!m_frame.host() || (consoleMessage->scriptArguments() && consoleMess age->scriptArguments()->argumentCount() == 0)) | 104 if (!m_frame.host() || (consoleMessage->scriptArguments() && consoleMess age->scriptArguments()->argumentCount() == 0)) |
| 108 return; | 105 return; |
| 109 | 106 |
| 110 if (!allClientReportingMessageTypes().contains(consoleMessage->type())) | 107 if (!allClientReportingMessageTypes().contains(consoleMessage->type())) |
| 111 return; | 108 return; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 172 { | 169 { |
| 173 messageStorage()->clear(); | 170 messageStorage()->clear(); |
| 174 } | 171 } |
| 175 | 172 |
| 176 void FrameConsole::trace(Visitor* visitor) | 173 void FrameConsole::trace(Visitor* visitor) |
| 177 { | 174 { |
| 178 visitor->trace(m_consoleMessageStorage); | 175 visitor->trace(m_consoleMessageStorage); |
| 179 } | 176 } |
| 180 | 177 |
| 181 } // namespace blink | 178 } // namespace blink |
| OLD | NEW |