| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 { | 211 { |
| 212 RefPtrWillBeRawPtr<ScriptArguments> arguments = scriptArguments; | 212 RefPtrWillBeRawPtr<ScriptArguments> arguments = scriptArguments; |
| 213 if (!acceptNoArguments && (!arguments || !arguments->argumentCount())) | 213 if (!acceptNoArguments && (!arguments || !arguments->argumentCount())) |
| 214 return; | 214 return; |
| 215 | 215 |
| 216 if (scriptState && !scriptState->contextIsValid()) | 216 if (scriptState && !scriptState->contextIsValid()) |
| 217 arguments.clear(); | 217 arguments.clear(); |
| 218 String message; | 218 String message; |
| 219 if (arguments) | 219 if (arguments) |
| 220 arguments->getFirstArgumentAsString(message); | 220 arguments->getFirstArgumentAsString(message); |
| 221 |
| 221 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(C
onsoleAPIMessageSource, level, message); | 222 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = ConsoleMessage::create(C
onsoleAPIMessageSource, level, message); |
| 222 consoleMessage->setType(type); | 223 consoleMessage->setType(type); |
| 223 consoleMessage->setScriptState(scriptState); | 224 consoleMessage->setScriptState(scriptState); |
| 224 consoleMessage->setScriptArguments(arguments); | 225 consoleMessage->setScriptArguments(arguments); |
| 225 consoleMessage->setCallStack(ScriptCallStack::captureForConsole()); | 226 consoleMessage->setCallStack(ScriptCallStack::captureForConsole()); |
| 226 reportMessageToConsole(consoleMessage.release()); | 227 reportMessageToConsole(consoleMessage.release()); |
| 227 } | 228 } |
| 228 | 229 |
| 229 } // namespace blink | 230 } // namespace blink |
| OLD | NEW |